Skip to main content

Endpoint

POST https://qingbo.dev/v1/tasks
Submit an image, video, or audio generation task. Returns a task_id immediately.

Request Parameters

model
string
required
Model name, e.g., "veo3", "gpt-4o-image", "sora2"
action
string
default:"generate"
Operation type: generate, edit, upscale, variation, blend
prompt
string
Generation description text
callback_url
string
Webhook callback URL upon task completion
extra
object
Pass-through field for model-specific parameters, sent directly to the upstream model
For additional parameters, refer to the Image Generation Overview or Video Generation Overview.

Response

{
  "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K",
  "model": "veo3",
  "action": "generate",
  "status": "queued",
  "created_at": 1720000000,
  "progress": 0
}

Examples

curl -X POST https://qingbo.dev/v1/tasks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "veo3",
    "action": "generate",
    "prompt": "A cat walking on the beach at sunset",
    "duration": 5
  }'