API docs / Image models
Imagen 4 Fast API
Generates images from text prompts using Google's Imagen 4 model optimized for speed and cost efficiency. Supports multiple aspect ratios including 1:1, 9:16, 16:9, 3:4, and 4:3. Includes configurable safety filtering with three levels of content moderation: strict, medium, and permissive blocking.
- Model id
google/imagen-4-fast- Provider
- Output
- Image
- Price
- From 7 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-fast". 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-fast",
"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
| Name | Type | Details |
|---|---|---|
promptrequired | string | Text prompt for image generation |
aspect_ratio | string | Default: One of: 1:1, 9:16, 16:9, 3:4, 4:3 |
output_format | string | Default: One of: jpg, png |