Guides
- Quickstart
- Authentication and keys
- Key protection
- Models, aliases and fallbacks
- Chat completions
- Streaming
- Structured outputs and tools
- Logprobs
- Vision
- Responses, Claude and Ollama
- Embeddings, rerank, audio, images
- Files and batches
- LoRA adapters
- Project tags and costs
- Prefix caching
- Headers, rate limits and spend caps
- Errors
- Privacy and retention
- Verifiable receipts
- Pricing
- Billing
- Status
- SDKs
- Integrations
- Run a node
- Architecture
- Changelog
API reference
API reference
Images
Image generation and edits, billed per image.
Base URL https://api.siliconnetwork.io
Image Generations
Billed per image returned. Images come back as b64_json. An image model serves only where an operator has enabled and loaded one: check GET /v1/models for one first.
silicon - zsh
curl -X POST https://api.siliconnetwork.io/v1/images/generations \
-H "Authorization: Bearer sn_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "flux-schnell",
"prompt": "A hexagonal S mark carved in basalt, studio light",
"n": 1,
"size": "1024x1024"
}'request.py
from siliconnetwork import SiliconNetwork
client = SiliconNetwork()
data, meta = client.request("POST", "/v1/images/generations", json={
"model": "flux-schnell",
"prompt": "A hexagonal S mark carved in basalt, studio light",
"n": 1,
"size": "1024x1024"
})
print(data, meta.request_id)Responses: 200 Successful Response, 422 Validation Error
POST/v1/images/edits
Image Edits
Multipart: the source image plus a prompt. Billed per image returned.
silicon - zsh
curl -X POST https://api.siliconnetwork.io/v1/images/edits \
-H "Authorization: Bearer sn_live_..." \
-F "image=@source.png" \
-F "prompt=make the sky dusk pink" \
-F "model=qwen-image-edit"Responses: 200 Successful Response, 422 Validation Error
Silicon Network›Docs›API›Images37 items