Skip to main content

GenerateImageResponse

media_idstring<uuid>

Use this ID to attach the image to a post via media_ids

modelstring

Model that was used

Example: nano-banana-pro
aspect_ratiostring
Example: 16:9
credits_usedinteger

Credits consumed by this generation

Example: 15
credits_remaininginteger

Credits remaining after this generation

Example: 485
messagestring
Example: Image generated successfully. Attach it to a post using media_ids.
GenerateImageResponse
{
"media_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model": "nano-banana-pro",
"aspect_ratio": "16:9",
"credits_used": 15,
"credits_remaining": 485,
"message": "Image generated successfully. Attach it to a post using media_ids."
}