Images
POST
/v1/images/generations| Field | Description |
|---|---|
prompt | Required. A description of the image to generate. |
model | Optional. Defaults to dall-e-3. |
n | Optional. Number of images, 1–10. |
size | Optional. Passed through to the provider as-is. |
Request
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"
}'// client dibuat seperti di bagian SDK
const image = await client.images.generate({
model: "dall-e-3",
prompt: "Kucing astronaut, gaya cat air",
n: 1,
size: "1024x1024",
});
console.log(image.data[0].url);# client dibuat seperti di bagian SDK
image = client.images.generate(
model="dall-e-3",
prompt="Kucing astronaut, gaya cat air",
n=1,
size="1024x1024",
)
print(image.data[0].url)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.

