Bailian (Alibaba Cloud Bailian) provides Wan, Kling, and CogVideoX models, supporting text-to-video and image-to-video modes.
Available models
Supported unified parameters
| Unified field | Supported | Description |
|---|---|---|
model | Yes | model |
prompt | Yes | input.prompt |
image | Yes | input.media[] → image entries |
video | Yes | input.media[] → video entries |
audio | Yes | input.media[] → audio entries |
ratio | Yes | parameters.ratio |
resolution | Yes | parameters.resolution |
headers | Yes | Custom HTTP headers |
upstream_options for Bailian
| Option | Type | Description |
|---|---|---|
duration | number | Video duration |
watermark | boolean | Watermark toggle |
seed | number | Random seed |
audio_setting | string | Audio settings |
Media input mapping
Media input parameter handling:
| User input | Result |
|---|---|
image: "https://..." | { "type": "reference_image", "url": "..." } |
image: { "type": "first_frame", "url": "..." } | Passed through: { "type": "first_frame", "url": "..." } |
video: "https://..." | { "type": "video", "url": "..." } |
video: { "type": "video", "url": "..." } | Passed through |
audio: "https://..." | { "type": "audio", "url": "..." } |
audio: { "type": "audio", "url": "..." } | Passed through |
Arrays are expanded per entry. Objects use their type field to determine the media role.
Example: Text-to-video
curl -X POST https://51kik.com/video/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.1-t2v-turbo",
"prompt": "Cinematic push-in shot of a night city street, neon lights, rain reflections",
"ratio": "16:9",
"resolution": "720p",
"upstream_options": {
"duration": 5,
"watermark": false
}
}'
Example: Image-to-video
curl -X POST https://51kik.com/video/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "kling-v2-1-turbo",
"prompt": "Make the person in the image turn their head and smile, slight camera push",
"image": "https://example.com/source.jpg",
"resolution": "720p",
"upstream_options": { "duration": 5 }
}'
Billing
Bailian uses billingMethod: "duration":
| Price field | Usage field | Description |
|---|---|---|
duration_pricing | usage.duration | Price per second |
max_resolution_inclusive | usage.resolution | Resolution tier selection; null = fallback tier |