VideosCommon
Create a video generation task
Submit a video generation task, from text or from an image.
Returns a task ID you can poll with the GET endpoint.
Request Body
application/json
model?string
Model / style ID
prompt?string
Text prompt
image?string
Image input, as a URL or Base64 string
duration?number
Video duration in seconds
width?integer
Video width
height?integer
Video height
fps?integer
Video frame rate
seed?integer
Random seed
n?integer
Number of videos to generate
response_format?string
Response format
user?string
User identifier
metadata?
Extended parameters such as negative_prompt, style or quality_level
Response Body
application/json
application/json
curl -X POST "https://jiniu.ai/v1/video/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "kling-v1", "prompt": "宇航员在月球上漫步", "duration": 5, "width": 1280, "height": 720 }'{
"task_id": "abcd1234efgh",
"status": "queued"
}{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}