Skip to main content

Generate

Text-to-image, image-to-video, text-to-speech, and image-to-3D generation. Use Generate as the starting point for most workflows.

Every endpoint returns a job_id and has a matching GET …/status/{job_id} route, see Jobs. The fields output_format (webp, jpeg, or png), callback_url (a webhook), and server_id (Enterprise: pin to a dedicated pod) are accepted by every endpoint below.

POST /generate/image/v1, only prompt is required.

curl -X POST https://api.imagepipeline.io/generate/image/v1 \
-H "X-API-Key: $IMAGEPIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a person in a red jacket on a rooftop at golden hour",
"width": 1024,
"height": 1024,
"output_format": "webp"
}'
FieldTypeDefaultNotes
promptstring,Required. Text prompt describing the image.
width / heightinteger1024Output dimensions in pixels (max 1024).
num_inference_stepsintegermodelNumber of denoising steps. More = more detail, slower.
guidance_scalenumbermodelHow strictly to follow the prompt. Omit for the model default.
seedinteger-1-1 randomizes; set a value for reproducibility.
enhance_promptbooleanfalseRun the prompt through a lightweight AI enhancer first.
logo_urlstring,Public URL of a logo (PNG/WebP with transparency) to include.
palettestring[],Brand colours as hex codes, e.g. ["#FF5733", "#3498DB"].
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Receive a webhook on completion.
server_idstring,Enterprise: pin to a dedicated pod.

Response — poll GET …/status/{job_id} until status is completed:

{
"job_id": "job_8f2a3c1b",
"status": "completed",
"result_url": "https://cdn.imagepipeline.io/o/8f2a3c1b.webp",
"processing_time_seconds": 7.4,
"balance_remaining_usd": 187.52
}