API docs / Image models

Imagen 4 API

Generates images from text prompts with superior detail rendering and style versatility. Creates images in various aspect ratios up to 2K resolution, excelling in both photorealistic and abstract styles. Features significantly enhanced text rendering capabilities for greeting cards, posters, and comics, with improved clarity for intricate elements like fabrics, water droplets, and animal fur.

Model id
google/imagen-4
Provider
google
Output
Image
Price
From 14 credits per run, the same as on voor.ai. Options such as length or resolution can change it.

Request

POST https://voor.ai/v1/generations with "model": "google/imagen-4". Poll GET /v1/tasks/{id} or receive the signed webhook. See the overview for keys, idempotency, webhooks and errors.

curl https://voor.ai/v1/generations \
  -H "Authorization: Bearer $VOOR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "google/imagen-4",
  "input": {
    "prompt": "A red fox standing in fresh snow at golden hour, soft light"
  },
  "callback_url": "https://example.com/webhooks/voor"
}'

# Then poll the task (or wait for the webhook):
curl https://voor.ai/v1/tasks/TASK_ID \
  -H "Authorization: Bearer $VOOR_API_KEY"

Input parameters

NameTypeDetails
promptrequiredstring

Text prompt for image generation

aspect_ratiostring

Default: 1:1

One of: 1:1, 9:16, 16:9, 3:4, 4:3

resolutionstring

Default: 1k

One of: 1k, 2k

output_formatstring

Default: jpg

One of: jpg, png