Skip to content

Jimeng video generation

POST
/jimeng/
curl --request POST \
--url 'https://api.mirapi.ai/jimeng/?Action=CVSync2AsyncSubmitTask&Version=2022-08-31' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "req_key": "jimeng_video_generation", "prompt": "A cat playing the piano" }'

Video generation endpoint in the native Jimeng API format.

The Action parameter selects the operation:

  • CVSync2AsyncSubmitTask: submit a video generation task
  • CVSync2AsyncGetResult: fetch the task result

Action and Version must both be passed as query parameters.

Action
required
string
Allowed values: CVSync2AsyncSubmitTask CVSync2AsyncGetResult

API action

Version
required
string

API version

Example
2022-08-31
Media typeapplication/json

Native Jimeng API request format

object
req_key

Request type identifier

string
prompt

Text description

string
binary_data_base64

Base64-encoded image data

Array<string>
Example
{
"req_key": "jimeng_video_generation",
"prompt": "A cat playing the piano"
}

Request processed

Media typeapplication/json
object
code

Response code

integer
message

Response message

string
data

Response data

object
Examplegenerated
{
"code": 1,
"message": "example",
"data": {}
}

Invalid request parameters

Media typeapplication/json
object
error
object
message

Error message

string
type

Error type

string
param

Related parameter

string
nullable
code

Error code

string
nullable
Examplegenerated
{
"error": {
"message": "example",
"type": "example",
"param": "example",
"code": "example"
}
}