AI Model APIVideo generationJimeng
Jimeng Video Generation
Video generation interface in Jimeng official API format.
Supports specifying the operation type via the Action parameter:
CVSync2AsyncSubmitTask: Submit a video generation taskCVSync2AsyncGetResult: Get task results
Action and Version need to be specified in the query parameters.
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Query Parameters
Action*string
API 操作类型
Value in
"CVSync2AsyncSubmitTask" | "CVSync2AsyncGetResult"Version*string
API 版本
Request Body
application/json
req_key?string
请求类型标识
prompt?string
文本描述
binary_data_base64?array<string>
Base64 编码的图片数据
Response Body
application/json
application/json
curl -X POST "https://api.example.com/jimeng/?Action=CVSync2AsyncSubmitTask&Version=string" \ -H "Content-Type: application/json" \ -d '{ "req_key": "jimeng_video_generation", "prompt": "一只猫在弹钢琴" }'{
"code": 0,
"message": "string",
"data": {}
}{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}How is this guide?
Last updated on