Skip to main content

Ali Bailian Video API

Crazyrouter exposes Ali Bailian-compatible video routes so applications already using DashScope / Ali Bailian video formats can migrate with minimal path changes.

What This Page Covers

  • This page documents the Ali-compatible public alias exposed by Crazyrouter, so client requests should continue using /alibailian/api/v1/*
  • Internally, Crazyrouter now talks to the official DashScope upstream through /api/v1/*
  • If you want Crazyrouter’s unified video API rather than the Ali-compatible migration path, use /v1/video/generations
  • Actual model availability still depends on your token allowlist, pricing configuration, and current production channel bindings; do not assume every upstream Ali model is enabled by default

Supported Endpoints

  • POST /alibailian/api/v1/services/aigc/video-generation/video-synthesis
  • GET /alibailian/api/v1/tasks/{task_id}

Internal Upstream Mapping

  • Public compatibility submit path: POST /alibailian/api/v1/services/aigc/video-generation/video-synthesis
  • Public compatibility query path: GET /alibailian/api/v1/tasks/{task_id}
  • Crazyrouter upstream submit path: POST /api/v1/services/aigc/video-generation/video-synthesis
  • Crazyrouter upstream query path: GET /api/v1/tasks/{task_id}

Authentication

Authorization: Bearer YOUR_API_KEY

POST Create Video

POST /alibailian/api/v1/services/aigc/video-generation/video-synthesis

Request Body Shape

FieldTypeRequiredDescription
modelstringYesModel name, such as wan2.5-i2v-preview
inputobjectYesCore input payload
input.promptstringNoPositive prompt
input.negative_promptstringNoNegative prompt
input.img_urlstringNoFirst-frame image URL or Base64
input.audio_urlstringNoAudio file URL
input.templatestringNoVideo effect template
parametersobjectNoAdvanced processing parameters
parameters.resolutionstringNoResolution tier, for example 480P
parameters.durationintegerNoVideo duration in seconds
parameters.prompt_extendbooleanNoWhether to enable prompt enhancement
parameters.watermarkbooleanNoWhether to add an AI watermark
parameters.audiobooleanNoWhether to auto-add audio
parameters.seedintegerNoRandom seed

Request Example

cURL
curl -X POST https://crazyrouter.com/alibailian/api/v1/services/aigc/video-generation/video-synthesis \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "wan2.5-i2v-preview",
    "input": {
      "prompt": "Change the lighting",
      "img_url": "https://example.com/first-frame.png"
    },
    "parameters": {
      "resolution": "480P",
      "prompt_extend": true,
      "audio": true
    }
  }'

Response Example

{
  "request_id": "ccffb21f-c21e-4eba-861a-6c80e6db6e4d",
  "output": {
    "task_id": "a55bfe14-6e78-4b9d-b97d-128420399ed1",
    "task_status": "PENDING"
  }
}

GET Query Task

GET /alibailian/api/v1/tasks/{task_id}

Request Example

cURL
curl https://crazyrouter.com/alibailian/api/v1/tasks/a55bfe14-6e78-4b9d-b97d-128420399ed1 \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

{
  "usage": {
    "SR": 480,
    "duration": 5,
    "video_count": 1
  },
  "output": {
    "task_id": "a55bfe14-6e78-4b9d-b97d-128420399ed1",
    "end_time": "2025-10-11 19:02:27.297",
    "video_url": "https://dashscope-result.example.com/video.mp4",
    "orig_prompt": "Change the lighting",
    "submit_time": "2025-10-11 18:55:56.952",
    "task_status": "SUCCEEDED",
    "actual_prompt": "A man in orange clothes flies from right to left on a broom...",
    "scheduled_time": "2025-10-11 18:55:57.908"
  },
  "request_id": "ec8f059e-f2e5-4887-bb43-3306cd38f403"
}

Error Behavior Verified Locally

  • the local environment confirmed the create route exists; when a model is unavailable it returns a business error such as model_not_found rather than 404
  • the local environment also confirmed the query route exists; a nonexistent task returns:
{
  "code": "task_not_exist",
  "message": "task_not_exist",
  "data": null
}
This path family is primarily for protocol-compatible migration. The request and response bodies stay much closer to native DashScope / Bailian conventions than to Crazyrouter’s unified video schema. It also does not mean every Ali video model is publicly enabled on Crazyrouter; treat current pricing, token allowlists, and live channel bindings as the source of truth.