Skip to main content
POST
/
v1
/
tasks
Imagen 4.0
curl --request POST \
  --url https://www.qingbo.dev/v1/tasks \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "action": "<string>",
  "prompt": "<string>",
  "n": 123,
  "seed": 123,
  "aspect_ratio": "<string>",
  "resolution": "<string>",
  "callback_url": "<string>",
  "callback_events": [
    "<string>"
  ]
}
'
{
  "task_id": "task-wave1775285160b950328499",
  "model": "imagen-4.0",
  "action": "generate",
  "status": "queued",
  "created_at": 1775285160040,
  "progress": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.qingbo.dev/llms.txt

Use this file to discover all available pages before exploring further.

Imagen 4.0 from Google DeepMind — native 2K output, photorealistic lighting and materials, with high accuracy for Chinese and English text rendering. Suited for poster key visuals, marketing hero images, and artistic illustrations where image quality and text rendering matter. Per-image pricing, unified 2K output.

Pricing

ModelPrice (per image)
imagen-4.0$0.0425

Examples

curl -X POST https://www.qingbo.dev/v1/tasks \
  -H "Authorization: Bearer $WAVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "imagen-4.0",
    "prompt": "Sunrise on a mountaintop, sea of clouds rolling, distant snow peaks glowing gold, photorealistic photography style"
  }'
{
  "task_id": "task-wave1775285160b950328499",
  "model": "imagen-4.0",
  "action": "generate",
  "status": "queued",
  "created_at": 1775285160040,
  "progress": 0
}
After submission, poll status with GET /v1/tasks/{task_id}. See Task System for details.

Available Models

Model IDDescription
imagen-4.0Google DeepMind flagship text-to-image, native 2K, photorealistic, accurate Chinese and English text

Common Parameters

model
string
required
Choose one from the Available Models list
action
string
default:"generate"
Operation type. Imagen 4.0 supports only:
  • generate — Text-to-image (default)
prompt
string
required
Image description. Supports Chinese and English. Imagen 4.0 excels at scene detail, lighting, and text rendering
n
integer
default:"1"
Number of images to generate (returned in a single call)
seed
integer
default:"-1"
Random seed. -1 for random; a fixed value reproduces similar results
aspect_ratio
string
default:"1:1"
Aspect ratio. Options:
  • 1:1 — Square
  • 4:3 / 3:4 — Standard landscape / portrait
  • 16:9 / 9:16 — Widescreen landscape / portrait
resolution
string
Output resolution. Imagen 4.0 defaults to native 2K with no resolution tiers — leave empty
callback_url
string
Webhook callback URL, invoked when the task reaches a terminal state. See Callback Mechanism
callback_events
string[]
Event types to receive callbacks for. Defaults to all terminal events

Resource Limits

ItemLimit
Supported actiongenerate only (text-to-image)
Output resolutionNative 2K (fixed, no tier selection)
Aspect ratio1:1 / 4:3 / 3:4 / 16:9 / 9:16 (5 options)
Output fileJPG, URL valid for 24 hours