Create image generation

http
POST /projects/{project_reference}/image-generations

Generate 1 to 10 images from a text prompt with the EU image model and return their URLs; every image is billed in credits. Requires project.files.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
promptstringYesText description of the desired image (max 1000 characters)
countintegerNumber of images to generate (1-10, default: 1)
seedintegerRandom seed for reproducible generation

Responses

StatusDescription
200Images are generated by the EU Azure FLUX.2-pro deployment and stored as project uploads. Returned as API upload URLs.
400Invalid input - prompt too long or invalid count
401Unauthorized
402Payment required - not enough credits for the first image
403Forbidden - insufficient permissions
404Project not found
500Server error - Image generation failed
503Service unavailable - Image generation not configured, the AI provider spend limit is reached, provider spend cannot be verified, or no image was produced