Skip to content

Images

POST/v1/images/generations
FieldDescription
promptRequired. A description of the image to generate.
modelOptional. Defaults to dall-e-3.
nOptional. Number of images, 1–10.
sizeOptional. Passed through to the provider as-is.
curl https://api-dev.satulink.ai/v1/images/generations \
  -H "Authorization: Bearer $SATULINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dall-e-3",
    "prompt": "Kucing astronaut, gaya cat air",
    "n": 1,
    "size": "1024x1024"
  }'
200 OK
json
{
  "created": 1760000000,
  "data": [
    {
      "url": "https://…/gambar.png",
      "revised_prompt": "Sebuah ilustrasi…"
    }
  ],
  "usage": { "cost_idr": 750 }
}
No image model is active yet. Requests fail until an administrator adds a route.

Still haven't found the answer? Try it directly in Playground or view the list of active models.