Guides
- Quickstart
- Quickstarts by language
- Migration guides
- Authentication and keys
- Key protection
- Models, aliases and fallbacks
- Automatic model choice (silicon/auto)
- Chat completions
- Streaming
- Structured outputs and tools
- Logprobs
- Vision
- Responses, Claude and Ollama
- Embeddings, rerank, audio, images
- Files and batches
- Documents and search
- LoRA adapters
- Project tags and costs
- Prefix caching
- Headers, rate limits and spend caps
- Errors
- Versioning and the sandbox
- Privacy and retention
- Verifiable receipts
- Data residency
- Pricing
- Billing
- Pay per request (x402)
- On-chain oracle
- Agent credit (backed compute lines)
- Status
- SDKs
- Swift SDK
- Integrations
- Run a node
- Linux agent
- Mac mini fleets
- Compute API
- Architecture
- Changelog
- Glossary
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›Images54 items