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": "seedream-4.5",
  "callBackUrl": "https://example.com/webhook",
  "input": {
    "prompt": "Transform to watercolor style",
    "imageUrls": ["https://example.com/photo.jpg"],
    "ratio": "16:9",
    "resolution": "2k"
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
  }
}
Uses the same models as Text to Image. When the input contains an imageUrls field, it automatically switches to image-to-image mode.
model
string
required
Model name, e.g. seedream-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": "seedream-4.5",
  "callBackUrl": "https://example.com/webhook",
  "input": {
    "prompt": "Transform to watercolor style",
    "imageUrls": ["https://example.com/photo.jpg"],
    "ratio": "16:9",
    "resolution": "2k"
  }
}'
{
  "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": "seedream-4.5",
      "prompt": "Transform to watercolor style",
      "imageUrls": ["https://example.com/photo.jpg"],
      "ratio": "16:9",
      "resolution": "2k"
    },
    "result": {
      "type": "image",
      "urls": [
        "https://example.com/output/result1.png",
        "https://example.com/output/result2.png"
      ]
    },
    "created_at": "2026-02-10T22:00:00.000000Z",
    "updated_at": "2026-02-10T22:00:15.000000Z"
  }
}