About
Draws an image from a prompt, on /v1/images/generations.
It is called on /v1/images/generations, never on chat, and billed per image.
- Image generation
Call it
Send the model id with your API key. Keys are made in the dashboard; the quickstart has the rest.
silicon - zsh
curl https://api.siliconnetwork.io/v1/images/generations \
-H "Authorization: Bearer $SILICON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"flux-dev","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-dev",
"prompt": "A hexagonal S mark carved in basalt, studio light",
})
print(meta.request_id)More in Images5
FLUX.1 Schnell
FLUX
Draws an image from a prompt, on /v1/images/generations.
- Image generation
Rate unavailable
GetFLUX.1 Krea
FLUX
Draws an image from a prompt, on /v1/images/generations.
- Image generation
Rate unavailable
GetFLUX.1 Kontext
FLUX
Edits an image from a prompt, on /v1/images/edits.
- Image editing
Rate unavailable
GetQwen Image
Qwen
Draws an image from a prompt, on /v1/images/generations.
- Image generation
Rate unavailable
GetQwen Image Edit
Qwen
Edits an image from a prompt, on /v1/images/edits.
- Image editing
Rate unavailable
Get