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": "Transform to watercolor style",
    "images": ["https://example.com/photo.jpg"]
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
  }
}
Uses the same models as Text to Image. When the input contains an images field, it automatically switches to image-to-image mode.
model
string
required
Model name, e.g. jimeng-4.5. Uses the same models as Text to Image.
callBackUrl
string
Webhook callback URL.
input
object
required
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": "Transform to watercolor style",
    "images": ["https://example.com/photo.jpg"]
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
  }
}

Query Result

Retrieve the generation result via the Query Task endpoint or Webhook:
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc",
    "status": "SUCCESS",
    "input": {
      "model": "jimeng-4.5",
      "prompt": "将这张照片变成水彩画风格",
      "images": ["https://example.com/photo.jpg"],
      "resolution": "2k"
    },
    "result": {
      "type": "image",
      "urls": [
        "https://p3-dreamina-sign.byteimg.com/result1.png",
        "https://p3-dreamina-sign.byteimg.com/result2.png"
      ]
    },
    "created_at": "2026-02-10T22:00:00.000000Z",
    "updated_at": "2026-02-10T22:00:15.000000Z"
  }
}