Skip to main content
GPT ImageNano BananaFLUXSeedream

Generate an image

Send a prompt. Get an image URL.
POST /api/v1/images/generations
Response
With default durable storage, your image URL is in data[0].url. The response also includes cost and request details.

Parameters

size is a strict enum — 1024x1024 and other values are rejected with validation_error. Pick one of the three.

Which model?

Explore all image models and pricing →

In code

Try prompts live in the Playground — every run shows the exact request. Or let an agent drive: the MCP server offers a curated selection of these models through your agent.