Skip to main content
Use image generation for product shots, ad creative, hero images, social posts, and reference frames for video.

Endpoints

Orientation cheatsheet

ratio is validated per model: any ratio the model advertises in Models (or GET /v1/models) is accepted, and anything else returns 400 invalid_request with the accepted list in the error message.

Create Parameters

Idempotency-Key is required on every POST /v1/image-generations.

Example: vertical product shot with Nano Banana Pro

Example: hero banner with Flux-2 Pro

Example: Grok Imagine bulk creative

Example: Instagram portrait (4:5) with Nano Banana Pro

Example: cheap draft render with Z-Image

Example: image edit with references (Nano Banana 2)

Accepted Response

Completed Response

Possible Errors