88API88API
User GuideAI ApplicationsAPI ReferenceHelp & Support
Image

Seedream 5.0 Pro Image Generation API

Capabilities

Seedream 5.0 Pro supports text-to-image and image-to-image generation using the OpenAI Images API-compatible format. The model code is doubao-seedream-5-0-pro.

Endpoints and Authentication

Base URL: https://api.88api.ai

Authorization: Bearer $API_KEY
Content-Type: application/json
Use caseMethodEndpoint
Text-to-imagePOST/v1/images/generations
Editing with public reference imagesPOST/v1/images/generations
Editing a local imagePOST/v1/images/edits

Text-to-Image

curl https://api.88api.ai/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedream-5-0-pro",
    "prompt": "A little Shiba Inu wearing a red Tang suit, Chinese guochao illustration style, festive and cozy",
    "n": 1,
    "size": "1K",
    "quality": "1K",
    "response_format": "url"
  }'

Image-to-Image

Public Reference Images

Use image for a single reference image and images for multiple reference images. Reference images must be public HTTP(S) URLs, with a combined maximum of 14 images.

curl https://api.88api.ai/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedream-5-0-pro",
    "prompt": "Keep the person and the composition, change the outfit to a blue outdoor jacket",
    "image": "https://example.com/reference.jpg",
    "size": "2K",
    "quality": "2K",
    "response_format": "url"
  }'

Example with multiple reference images:

{
  "model": "doubao-seedream-5-0-pro",
  "prompt": "Blend the subjects and colors from the reference images",
  "images": [
    "https://example.com/reference-1.jpg",
    "https://example.com/reference-2.jpg"
  ],
  "size": "2K",
  "quality": "2K"
}

Local Images

Local images are sent as a multipart request, one image per upload:

curl https://api.88api.ai/v1/images/edits \
  -H "Authorization: Bearer $API_KEY" \
  -F "model=doubao-seedream-5-0-pro" \
  -F "prompt=Change the background to a light-colored photo studio" \
  -F "image=@reference.png" \
  -F "size=2K" \
  -F "quality=2K" \
  -F "response_format=url"

Request Parameters

ParameterTypeRequiredDefaultDescription
modelstringYes—doubao-seedream-5-0-pro
promptstringYes—Text-to-image description or image-to-image editing instruction
nintegerNo11 to 4
sizestringNo—1K or 2K
qualitystringNo—1K or 2K
response_formatstringNourlurl or b64_json
imagestring / fileNo—A single public reference image URL, or the uploaded file on the edits endpoint
imagesarray[string]No—Array of public reference image URLs, up to 14

Response Format

{
  "created": 1760000000,
  "data": [
    {
      "url": "https://..."
    }
  ],
  "model": "doubao-seedream-5-0-pro"
}

When response_format is url, read data[].url; when it is b64_json, read data[].b64_json.