Skip to main content

Schema


Input Schema

name string
Name for your generation (3-30 characters)
Default "My Image"

prompt string
A text description of the image you want to generate (40-2000 characters)

output_number integer
Number of images to generate (currently fixed at 1)
Default 1

aspect_ratio string
Aspect ratio for generated image
Default "1:1"

image_input array
Optional. Input image(s) to transform or use as reference (1-10 images max, 2MB each, 20MB total)
Default []

output_format string
Output format for generated image
Default "png"

Output Schema

success boolean
Indicates if the request was successful

data object
Response data containing generation information

data.generationId string
Unique identifier for the generation

data.status string
Initial status of the generation
Returns "starting"

data.creditCost integer
Number of credits deducted for this generation