Skip to main content

Tongyi - Text to Video

Generate videos from text descriptions using Alibaba Cloud AI's Tongyi model. Features frame-based video generation with customizable frame count, FPS, and inference steps for precise control over video output.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters

Field NameTypeExampleDescriptionRequired
typestringTEXT_TO_VIDEOFeature identifier✔️
modelstringcjwbw/damo-text-to-video:1e205ea73084bd17a0a3b43396e49ba0d6bc2e754e9283b2df49fad2dcf95755AI model to use✔️
conversationIdstringTEXT_TO_VIDEOConversation context✔️
promptObject.promptstringserene waterfall in forestText description of the video✔️
promptObject.num_framesnumber50Number of frames (1-100)✔️
promptObject.fpsnumber8Frames per second (1-10)✔️

Advanced Parameters

Field NameTypeExampleDescriptionRequired
promptObject.num_inference_stepsnumber50Inference steps (1-500)
promptObject.seednumber0Random seed (0-2147483647)

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_TO_VIDEO",
"model": "cjwbw/damo-text-to-video:1e205ea73084bd17a0a3b43396e49ba0d6bc2e754e9283b2df49fad2dcf95755",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "serene waterfall cascading through a misty forest",
"num_frames": 50,
"fps": 8,
"num_inference_steps": 50
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Total frames in the video
Video playback speed
Number of denoising steps for quality
Random seed for reproducible results

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "TEXT_TO_VIDEO",
"model": "cjwbw/damo-text-to-video:1e205ea73084bd17a0a3b43396e49ba0d6bc2e754e9283b2df49fad2dcf95755",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "serene waterfall cascading through a misty forest",
"num_frames": 50,
"fps": 8,
"num_inference_steps": 50
}
}'

Response

{}