Docs

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

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