Txt2Video(Text to Video Rapid-5s)
POST
/klingai/m2v_txt2videoText-to-video generated by Kling, a quick 5-second version.
Kling:https://klingai.kuaishou.com/
Price: 0.15 PTC / call
请求参数
Header Params
Authorization
string
optional
API Key from 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
prompt
string
required
Video prompt
Example:
Telephoto Lens Shot, Ground Shot, Blinding Sunlight, a Camel, Smoke and Dust in Xinjiang Gobi
negative_prompt
string
optional
Unwanted content in the video
cfg
number
optional
Video creativity level, value [0, 1], 0 represents the highest creativity, 1 represents completely following the prompt
Example:
0.5
aspect_ratio
string
optional
three option support:1:1, 16:9, 9:16
Example:
1:1
camera_type
string
optional
Camera control, options: empty, horizontal, vertical, zoom, tilt, pan, roll, down_back, forward_up, right_turn_forward, left_turn_forward
Example:
zoom
camera_value
string
optional
Camera parameter, value range: [-10, 10]
Example:
-5
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 4 天前