Images
Synthesize high-fidelity photorealistic imagery, diagrams, and graphic mockups using Plannix Imagine endpoints.
POST/v1/images/generations
Image generation
Creates one or more images given a text prompt.
| Parameter | Type | Description |
|---|---|---|
| promptrequired string | string | A text description of the desired image(s). Max 1000 characters. |
| size string | string | Resolution: 1024x1024, 1344x768, or 768x1344. |
| quality string | string | The quality of the image: standard or hd. |
cURL Requestbash
curl https://api.plannix.web.id/v1/images/generations \
-H "Authorization: Bearer ${PLANNIX_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "plannix-imagine-v2",
"prompt": "Modern server room architecture diagram",
"size": "1024x1024"
}'POST/v1/images/edits
Image edit
Creates an edited or extended image given an original image and a prompt specifying what to alter.
GET/v1/images/deferred/{task_id}
Get deferred image results
Fetches generation status and signed download URLs for high-resolution images generated via batch jobs.