latestOpenAPI 3.0.22026-08-19125272497.5 KB
73707bc35f34
images-generate
Generate transparent-background images with Ideogram 3.0
Generate one or more images on a transparent background with Ideogram 3.0, delivered as PNGs with alpha. An optional upscale_factor increases the output size after generation.
By default the request blocks until the images are ready and returns them in data. Set async to true to return immediately after the request is accepted, then poll for completion and results with GET /v1/generations/{generation_id} using the returned generation_id.
post/v2/images/generate/ideogram-v3-transparent
Request body
Example request
{
"magic_prompt": "",
"aspect_ratio": null,
"async": false,
"seed": 12345,
"upscale_factor": "X2",
"rendering_speed": "",
"negative_prompt": "negative_prompt",
"enable_copyright_detection": true,
"prompt": "prompt",
"num_images": 1
}Response
The generated images (synchronous requests), or an acknowledgement to poll with GET /v1/generations/{generation_id} (async requests).
Example response
{
"data": [
{
"seed": 12345,
"prompt": "prompt",
"resolution": "1024x1024",
"url": "https://openapi-generator.tech",
"is_image_safe": true
},
{
"seed": 12345,
"prompt": "prompt",
"resolution": "1024x1024",
"url": "https://openapi-generator.tech",
"is_image_safe": true
}
],
"seed": 12345,
"generation_id": "generation_id"
}