Skip to main content
POST
/
api
/
v1
/
task
/
submit
curl --request POST \
  --url https://api.maxapi.io/api/v1/task/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "jimeng-4.5",
  "input": {
    "prompt": "A cyberpunk Tokyo street"
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "9db7d1ed-d1e5-4d11-9f3a-61f653b905ad"
  }
}
Submit an asynchronous generation task. All models (image, video) share this endpoint, distinguished by the model parameter.
model
string
required
Model name. For example, jimeng-4.5, seedance-2.0-pro, etc. See individual model documentation for details.
input
object
required
Model input parameters, including prompt and model-specific parameters.
callBackUrl
string
Webhook callback URL. When the task reaches a terminal state, the system will send a POST request to this URL. Localhost is not supported.
user_id
string
Caller’s user identifier, used for request tracing.
curl --request POST \
  --url https://api.maxapi.io/api/v1/task/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "jimeng-4.5",
  "input": {
    "prompt": "A cyberpunk Tokyo street"
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "9db7d1ed-d1e5-4d11-9f3a-61f653b905ad"
  }
}