Seedream 5.5

POSThttps://api.newportai.com/api/async/seedream_5.5

Generate an image from a text prompt with Seedream 5.5.

  • Submit a POST request to obtain a taskId.
  • Use the Polling API to retrieve the generated image.
  • Configure a Callback URL to receive the task result automatically.

Request Headers

Content-Type string Required

Use application/json.

Authorization string Required

Use Bearer {{APIKey}}.

Request Body

model string Required

Use seedream-5.5.

prompt string Required

Describe the image you want to generate or the edits to apply.

size string

Output dimensions in WIDTHxHEIGHT format, for example 1536x1536 or 2048x2048.

Response

code integer

0 indicates successful submission.

message string

Response message.

data.taskId string

Task identifier for polling.

Errors

10192Illegal param

Polling

Use the Polling API with the returned task ID.

Callback

Use the Callback API to receive task results automatically.

0Task Completed
{
  "code": 0,
  "message": "success",
  "data": {
    "task": {
      "taskId": "API-example",
      "status": 3
    },
    "images": [
      {
        "imageUrl": "https://example.com/output.png",
        "imageType": "png"
      }
    ]
  }
}
Request
cURL
curl -X POST 'https://api.newportai.com/api/async/seedream_5.5' -H 'Authorization: Bearer {APIKey}' -H 'Content-Type: application/json' -d '{
  "model": "seedream-5.5",
  "prompt": "A watercolor lighthouse beside a calm ocean",
  "size": "1536x1536"
}'
Response