Image models
Imagen 4
On this page
Imagen 4 — fast, high-fidelity AI image generation & editing.
| modelId | google-imagen4-fast |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to image | POST /api/v1/generate | Base generation from a text prompt. |
| Poll task | GET /api/v1/task/{id}?model=google-imagen4-fast | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Enter a detailed description of the image you want to generate... |
| negative_prompt | textarea | optional | Enter descriptions of what you want to avoid in the image... |
| aspect_ratio | select | optional | 1:1, 16:9, 9:16, 3:4, 4:3, auto |
| seed | number | optional | Enter seed number... |
| nsfw_checker | select | optional | false, true |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"google-imagen4-fast","input":{"prompt":"A single paper origami crane resting on a rain-speckled windowsill at blue hour, soft city-light bokeh glowing beyond the wet glass.","negative_prompt":"…","aspect_ratio":"16:9","seed":8,"nsfw_checker":"true"}}'