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 fieldSupportedDescription
modelYesmodel
promptYesinput.prompt
imageYesinput.media[] → image entries
videoYesinput.media[] → video entries
audioYesinput.media[] → audio entries
ratioYesparameters.ratio
resolutionYesparameters.resolution
headersYesCustom HTTP headers

upstream_options for Bailian

OptionTypeDescription
durationnumberVideo duration
watermarkbooleanWatermark toggle
seednumberRandom seed
audio_settingstringAudio settings

Media input mapping

Media input parameter handling:

User inputResult
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 fieldUsage fieldDescription
duration_pricingusage.durationPrice per second
max_resolution_inclusiveusage.resolutionResolution tier selection; null = fallback tier