> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ali Bailian Video API

> Ali Bailian-compatible video routes. Clients use /alibailian/api/v1/* while Crazyrouter now proxies upstream to official DashScope /api/v1/* endpoints

> Дата обновления: 2026-06-07

# 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 Crazyrouter's Ali-compatible public alias for workflows already integrated against the DashScope / Ali Bailian video body shape; those workflows can 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`
* Wan text-to-video currently uses `/v1/video/generations`. In particular, `wan2.2-t2v-plus` is not supported on this page's `/alibailian/...video-synthesis` submit path.
* 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

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

## POST Create Video

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

### Request Body Shape

| Field                      | Type    | Required | Description                              |
| -------------------------- | ------- | -------- | ---------------------------------------- |
| `model`                    | string  | Yes      | Model name, such as `wan2.5-i2v-preview` |
| `input`                    | object  | Yes      | Core input payload                       |
| `input.prompt`             | string  | No       | Positive prompt                          |
| `input.negative_prompt`    | string  | No       | Negative prompt                          |
| `input.img_url`            | string  | No       | First-frame image URL or Base64          |
| `input.audio_url`          | string  | No       | Audio file URL                           |
| `input.template`           | string  | No       | Video effect template                    |
| `parameters`               | object  | No       | Advanced processing parameters           |
| `parameters.resolution`    | string  | No       | Resolution tier, for example `480P`      |
| `parameters.duration`      | integer | No       | Video duration in seconds                |
| `parameters.prompt_extend` | boolean | No       | Whether to enable prompt enhancement     |
| `parameters.watermark`     | boolean | No       | Whether to add an AI watermark           |
| `parameters.audio`         | boolean | No       | Whether to auto-add audio                |
| `parameters.seed`          | integer | No       | Random seed                              |

<Warning>
  Submitting `wan2.2-t2v-plus` to this page's path returns `invalid_request` in production, with guidance to use `/v1/video/generations`. For Wan text-to-video, see [Wan Video](/ru/video/wan) or [Video Generation Alias](/ru/video/openai-video-alias-create).
</Warning>

### Request Example

```bash cURL theme={null}
curl -X POST https://api.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

```json theme={null}
{
  "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

```bash cURL theme={null}
curl https://api.crazyrouter.com/alibailian/api/v1/tasks/a55bfe14-6e78-4b9d-b97d-128420399ed1 \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Response Example

```json theme={null}
{
  "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:

```json theme={null}
{
  "code": "task_not_exist",
  "message": "task_not_exist",
  "data": null
}
```

<Note>
  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.
</Note>
