ApiframeApiframe Docs
Image GenerationSeedream

Seedream 5 Lite

Latest ByteDance image model with multi-step reasoning, example-based editing, and deep domain knowledge.

Use in Apiframe Studio

POST /v2/images/generatemodel: "seedream-5-lite"

ByteDance's latest image generation model. Goes beyond standard text-to-image with multi-step reasoning, example-based editing, and deep domain knowledge. Supports up to 3K resolution and blending up to 14 reference images.

See Image Generation overview for common request fields, response format, and error codes.

Model-specific parameters

ParameterTypeDescription
seedreamParams.aspect_ratiostringAspect ratio. Use "match_input_image" to match input image, or "W:H" format (e.g. "3:2")
seedreamParams.sizestring"2K" (default) or "3K"
seedreamParams.image_inputstring[]Up to 14 input image URLs for image-to-image generation or example-based editing
seedreamParams.output_formatstring"png" (default) or "jpg"

Credit cost

Credits per generation
4

Code examples

curl -X POST https://api.apiframe.ai/v2/images/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a color film-inspired portrait with shallow depth of field, fine grain, candid documentary style",
    "model": "seedream-5-lite",
    "seedreamParams": {
      "size": "2K",
      "aspect_ratio": "3:2",
      "output_format": "png"
    }
  }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/images/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a color film-inspired portrait with shallow depth of field, fine grain, candid documentary style",
        "model": "seedream-5-lite",
        "seedreamParams": {
            "size": "2K",
            "aspect_ratio": "3:2",
            "output_format": "png",
        },
    },
)
print(response.json())
const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    prompt: "a color film-inspired portrait with shallow depth of field, fine grain, candid documentary style",
    model: "seedream-5-lite",
    seedreamParams: { size: "2K", aspect_ratio: "3:2", output_format: "png" },
  }),
});
console.log(await response.json());

With image editing

curl -X POST https://api.apiframe.ai/v2/images/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Transform the color grading to match a Wong Kar-wai film — saturated teal shadows, warm amber highlights",
    "model": "seedream-5-lite",
    "seedreamParams": {
      "image_input": ["https://example.com/portrait.jpg"],
      "size": "2K"
    }
  }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/images/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "Transform the color grading to match a Wong Kar-wai film — saturated teal shadows, warm amber highlights",
        "model": "seedream-5-lite",
        "seedreamParams": {
            "image_input": ["https://example.com/portrait.jpg"],
            "size": "2K",
        },
    },
)
print(response.json())

Try it

POST/v2/images/generateTry it

On this page