# Seedream 5.5

> Seedream 5.5 là mô hình hình ảnh của ByteDance dành cho ảnh chân thực, chữ rõ nét và chỉnh sửa giữ nguyên phần còn lại của ảnh. Tạo ảnh từ câu lệnh hoặc từ tối đa 10 ảnh tham chiếu, với nền trong suốt khi bạn cần. Mở mô hình trong Studio để chọn kích thước và xem giá trước khi tạo.

Seedream 5.5 là công cụ tạo ảnh bằng AI của ByteDance. Bạn có thể gọi mô hình qua Kerox API với ID mô hình bytedance/seedream-5.5, hoặc tạo nội dung trong Studio mà không cần viết mã. Trên Kerox, giá từ $0.0160 / ảnh, thấp hơn 20% so với giá chính thức, không cần đăng ký gói.

## Bảng giá

| Mô hình | ID | Thanh toán | Giá Kerox | Giảm giá |
| --- | --- | --- | --- | --- |
| Seedream 5.5 | `bytedance/seedream-5.5` | Theo ảnh | 1K/1.5K: $0.0160, 2K: $0.0280 | Thấp hơn giá chính thức 20% |

- [Bảng giá Seedream 5.5](https://kerox.ai/vi/pricing#pricing-bytedance/seedream-5.5)
- [Tài liệu API Seedream 5.5](https://kerox.ai/vi/docs/models/bytedance/seedream-5.5)
- [Seedream 5.5](https://kerox.ai/vi/models/bytedance/seedream-5.5)

## Giới thiệu về Seedream 5.5

Seedream 5.5 là mô hình tạo ảnh của nhóm ByteDance Seed, ra mắt ngày 9 tháng 11 năm 2026. ByteDance mô tả đây là mô hình hình ảnh đa phương thức, sáng tạo hơn và thực hiện yêu cầu chính xác hơn. Mô hình hỗ trợ cả tạo ảnh từ văn bản lẫn tạo ảnh từ ảnh, và là phiên bản kế nhiệm Seedream 5.0 Pro.

### Theo ByteDance, bản 5.5 có gì mới

- **Chỉnh sửa ổn định hơn.** Các vùng bạn không yêu cầu thay đổi được giữ nguyên đến từng pixel, không bị lệch màu. ByteDance cho biết điều này cho phép tiếp tục làm việc trên cùng một ảnh qua 100 lượt chỉnh sửa.
- **Nền trong suốt.** Mô hình tạo trực tiếp ảnh có kênh alpha, trong suốt toàn phần hoặc một phần, từ mô tả văn bản hoặc từ ảnh tham chiếu.
- **Ảnh chân thực hơn.** Bản phát hành này giảm tình trạng ảnh bị bóng quá mức và cháy sáng.
- **Chữ rõ nét hơn.** Các ký tự có hình dạng phức tạp và chữ nhỏ sắp xếp dày đặc được tạo chính xác hơn.
- **Dễ dùng hơn trong sản xuất.** Trên sáu trường hợp sử dụng thực tế mà ByteDance đã thử nghiệm, cả điểm chất lượng lẫn tỷ lệ đầu ra dùng được trong sản xuất đều cải thiện so với phiên bản trước.

Trên Kerox, Seedream 5.5 xuất ảnh 1K, 1.5K và 2K, dưới dạng PNG hoặc JPEG, với tối đa 10 ảnh tham chiếu cho mỗi yêu cầu. Tỷ lệ khung hình có thể tự động hoặc bất kỳ tỷ lệ nào từ 1:16 đến 16:1, và bạn cũng có thể nhập chính xác chiều rộng và chiều cao theo pixel.

## Cách sử dụng Seedream 5.5

1. **Nạp tiền** Nạp tiền từ $10. Không có gói thuê bao và số dư của bạn không hết hạn.
2. **Thiết lập hình ảnh** Viết prompt, chọn độ phân giải và tỷ lệ khung hình, rồi thêm ảnh tham chiếu nếu cần. Giá cho các thiết lập này sẽ hiển thị trước khi bạn bắt đầu.
3. **Tạo và tải xuống** Số tiền được tạm giữ khi bạn bắt đầu và được chốt khi ảnh tạo xong. Lượt tạo thất bại sẽ được hoàn tiền đầy đủ.

## Bạn có thể tạo gì với Seedream 5.5

- **Tạo ảnh từ văn bản.** Chỉ cần một prompt là có ảnh chân thực như ảnh chụp, độ phân giải lên đến 2K.
- **Ảnh bìa và poster có chữ.** Đặt chính xác nội dung chữ trong dấu ngoặc kép trong prompt và nói rõ vị trí của từng dòng.
- **Khung hình đầu cho video.** Tạo một ảnh tĩnh, rồi dùng nó làm khung hình đầu tiên cho một clip Seedance.
- **Chỉnh sửa mà vẫn giữ nguyên phần còn lại.** Đưa một ảnh vào làm tham chiếu và mô tả từng thay đổi một.
- **Tài nguyên có nền trong suốt.** Logo, sticker và ảnh sản phẩm tách nền được xuất ra dạng PNG có kênh alpha.

## Seedream 5.5 so với các mô hình khác trên Kerox

Tất cả các mô hình này đều dùng chung số dư và chung API. Để chuyển đổi, hãy đổi ID mô hình và chỉ dùng các thiết lập mà mô hình kia hỗ trợ. Giá khởi điểm có trong bảng.

| Mô hình | Khi nào nên chọn | Giá khởi điểm |
| --- | --- | --- |
| [Seedream 5.5](https://kerox.ai/vi/models/bytedance/seedream-5.5) | Ảnh lên đến 2K với tối đa 10 ảnh tham chiếu. Chọn mô hình này khi bạn cần chỉnh sửa nhiều lần trên một ảnh, tạo chữ trong ảnh hoặc tạo ảnh có nền trong suốt chỉ từ prompt. | 1K/1.5K: $0.0160, 2K: $0.0280 |
| [Seedream 5.0 Pro](https://kerox.ai/vi/models/bytedance/seedream-5.0-pro) | Mô hình Seedream thế hệ trước, cũng xuất ảnh có độ phân giải lên đến 2K với tối đa 10 ảnh tham chiếu. Chọn mô hình này khi prompt của bạn đã được tinh chỉnh cho nó. | 1K/1.5K: $0.0360, 2K: $0.0720 |
| [GPT Image 2.6 Flare Economy](https://kerox.ai/vi/models/openai/gpt-image-2.6-flare-economy) | Mô hình tạo ảnh của OpenAI ở 1K, 2K hoặc 4K với tối đa 16 ảnh tham chiếu. Chọn mô hình này khi bạn cần 4K hoặc hơn 10 ảnh tham chiếu. | 1K: $0.0150, 2K: $0.0450, 4K: $0.0600 |
| [Qwen Image 3.0 Pro](https://kerox.ai/vi/models/alibaba/qwen-image-3.0-pro) | Mô hình tạo ảnh của Alibaba ở 1K hoặc 2K với tối đa 3 ảnh tham chiếu. Chọn mô hình này để thử cùng một prompt trên mô hình của nhà phát triển khác. | 1K: $0.0360, 2K: $0.0675 |
| [Kling Image 4.0](https://kerox.ai/vi/models/kuaishou/kling-image-4.0) | Mô hình tạo ảnh của Kuaishou ở 2K, 4K hoặc 8K. Chọn mô hình này khi bạn cần ảnh đầu ra lớn hơn 2K. | 2K: $0.0567, 4K: $0.0846, 8K: $0.1413 |
| [Seedance 2.5](https://kerox.ai/vi/models/bytedance/seedance-2.5) | Mô hình video của ByteDance. Hãy chọn mô hình này để biến một ảnh do Seedream tạo thành đoạn clip dài tối đa 30 giây có âm thanh. | Từ khoảng $0.0977 / giây (480p) |

## Câu hỏi thường gặp

### Seedream 5.5 có giá bao nhiêu?

Seedream 5.5 trên Kerox có giá từ $0.0160 / ảnh, thấp hơn 20% so với giá chính thức. Bạn trả tiền theo từng lượt tạo và không bị tính phí cho các lượt tạo thất bại. Bảng giá trên trang này liệt kê đầy đủ mọi tùy chọn.

### Seedream 5.5 có API không?

Có. Gửi một tác vụ tới API của Kerox với ID mô hình bytedance/seedream-5.5, sau đó kiểm tra định kỳ trạng thái tác vụ hoặc nhận Webhook khi tác vụ hoàn tất. Tài liệu API của Seedream 5.5 liệt kê đầy đủ mọi tham số kèm mã mẫu.

### Tôi có thể dùng Seedream 5.5 trực tuyến mà không cần viết mã không?

Có. Mở Seedream 5.5 trong Kerox Studio, nhập prompt và tạo ngay trên trình duyệt. Studio và API dùng chung một số dư.

### Tôi có cần đăng ký gói để dùng Seedream 5.5 không?

Không. Không có gói đăng ký và không có phí hằng tháng. Nạp tiền từ $10 và chỉ trả cho những gì bạn tạo.

### Làm thế nào để dùng Seedream 5.5?

Đăng nhập Kerox, mở Seedream 5.5 trong Studio, nhập prompt và tạo ngay trên trình duyệt. Để tích hợp vào mã nguồn, hãy tạo khóa API và gửi tác vụ với ID mô hình bytedance/seedream-5.5.

### Seedream 5.5 đã có sẵn chưa?

Có. ByteDance đã phát hành Seedream 5.5 vào ngày 9 tháng 11 năm 2026 và mô hình này đã có trên Kerox. Bạn có thể tạo ảnh trong Studio hoặc gọi mô hình qua API với ID mô hình `bytedance/seedream-5.5`.

### Tôi có thể dùng Seedream 5.5 miễn phí không?

Trên Kerox thì không. Hiện chưa có gói miễn phí hay bản dùng thử miễn phí. Bạn có thể nạp tiền với mức tối thiểu $10 và chỉ trả tiền cho những ảnh bạn tạo.

### Seedream 5.5 khác Seedream 5.0 Pro như thế nào?

ByteDance nêu ra ba thay đổi: chỉnh sửa nhiều lượt ổn định hơn, ảnh có nền trong suốt được tạo trực tiếp, và hình ảnh trông chân thực hơn với chữ rõ nét hơn. Trên Kerox cũng có một khác biệt thực tế. Seedream 5.5 có thể tạo ảnh có nền trong suốt chỉ từ câu lệnh, trong khi Seedream 5.0 Pro cần một ảnh tham chiếu để làm điều đó. Cả hai mô hình vẫn tiếp tục được cung cấp. ByteDance cũng cho biết sẽ ra mắt phiên bản Pro của dòng Seedream 5.5.

### Seedream 5.5 có tạo được nền trong suốt không?

Có. Trong API, hãy đặt `background` thành `transparent` và giữ định dạng đầu ra là PNG. Kết quả có kênh alpha, nên bạn có thể đưa thẳng vào trang web hoặc thiết kế mà không cần bước xóa nền riêng. ByteDance cho biết mô hình hỗ trợ cả nền trong suốt hoàn toàn lẫn nền trong suốt một phần.

### Seedream 5.5 hỗ trợ độ phân giải nào?

Trên Kerox có ba mức: 1K, 1.5K và 2K. Thay vì chọn mức, bạn có thể nhập kích thước chính xác theo pixel, tổng cộng tối đa khoảng 4,6 triệu pixel. Giá phụ thuộc vào số pixel của ảnh đầu ra: 1K và 1.5K dùng chung một mức giá, còn 2K có mức giá khác. Cả hai đều có trong bảng giá ở trên. Mặc định là 2K với tỷ lệ khung hình tự động.

### Seedream 5.5 có chỉnh sửa được ảnh có sẵn không?

Có. Hãy thêm ảnh làm ảnh tham chiếu và mô tả thay đổi bạn muốn. Mỗi yêu cầu nhận tối đa 10 ảnh tham chiếu, nên bạn cũng có thể kết hợp nhiều nguồn. Mỗi ảnh tham chiếu sẽ cộng thêm một khoản nhỏ vào giá, và Studio sẽ tính vào tổng chi phí trước khi bạn bắt đầu. ByteDance cho biết những vùng bạn không yêu cầu thay đổi sẽ được giữ nguyên đến từng pixel, nên bạn có thể thực hiện từng thay đổi một và tiếp tục phát triển từ mỗi kết quả.


---

## Request example

Submit a task and get its id at once; get the result by polling (below) or by [webhook](https://kerox.ai/vi/docs/webhooks.md). `webhook_url` and `metadata` are optional. To use a webhook, provide your own public HTTPS address in `webhook_url`. Every field is in [Submit a task](https://kerox.ai/vi/docs/tasks.md#submit-body).

Set `KEROX_API_KEY` first. Polling requires Bash, curl and jq. For Python, run `pip install requests` first.

### cURL

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedream-5.5",
  "input": {
    "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
    "resolution": "2K",
    "aspect_ratio": "1:1"
  }
}'
```

### Python

```python
import os
import requests

resp = requests.post(
    "https://api.kerox.ai/v1/tasks",
    headers={
        "Authorization": f"Bearer {os.environ['KEROX_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "model": "bytedance/seedream-5.5",
        "input": {
            "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
            "resolution": "2K",
            "aspect_ratio": "1:1",
        },
    },
    timeout=60,
)
resp.raise_for_status()
task = resp.json()
print(task["id"], task["status"])  # Save the id for polling
```

### Node.js

```javascript
const res = await fetch('https://api.kerox.ai/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.KEROX_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "bytedance/seedream-5.5",
    "input": {
      "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
      "resolution": "2K",
      "aspect_ratio": "1:1"
    }
  }),
});
const task = await res.json();
if (!res.ok) throw new Error(JSON.stringify(task));
console.log(task.id, task.status); // Save the id for polling
```

### Go

```go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
)

func main() {
	body := []byte(`{
  "model": "bytedance/seedream-5.5",
  "input": {
    "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
    "resolution": "2K",
    "aspect_ratio": "1:1"
  }
}`)
	req, _ := http.NewRequest("POST", "https://api.kerox.ai/v1/tasks", bytes.NewReader(body))
	req.Header.Set("Authorization", "Bearer "+os.Getenv("KEROX_API_KEY"))
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 60 * time.Second}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	out, _ := io.ReadAll(resp.Body)
	if resp.StatusCode >= 400 {
		fmt.Fprintln(os.Stderr, string(out))
		os.Exit(1)
	}
	fmt.Println(string(out))
}
```

### Edit a reference image

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedream-5.5",
  "input": {
    "prompt": "Keep the lighthouse and change the sky to a clear sunrise",
    "resolution": "2K",
    "aspect_ratio": "1:1",
    "images": [
      "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
    ]
  }
}'
```

## Parameters

The [parameter names](https://kerox.ai/vi/docs/models.md) mean the same on every model. You can also send ByteDance's own request body with `"format": "native"`: see [Migrate from ByteDance's API](https://kerox.ai/vi/docs/migrate-from-bytedance.md).

| Parameter | Type | Required | Default | Values | Description | Example |
| --- | --- | --- | --- | --- | --- | --- |
| `prompt` | string | Yes | — | at least one non-whitespace character; at least 1 characters | Text describing what to generate. | `"A lighthouse at dawn"` |
| `images` | string \| string[] | No | — | one public HTTPS URL; or data:image/…;base64,… (≤ 3 MB total per request); one string or an array of 1–10 items; Model file limits: image/jpeg, image/png, image/webp, image/bmp, image/tiff, image/gif, image/heic, image/heif; up to 30 MB each, more than 14 px per side, 196–36,000,000 pixels total, aspect ratio 1:16–16:1 | Images for the model to draw on, in the order the prompt refers to them. | `"https://example.com/photo.png"` |
| `aspect_ratio` | string | No | `"auto"` | auto or W:H (positive integers); aspect ratio 1:16–16:1 | Width to height of the output. | `"16:9"` |
| `resolution` | string | No | `"2K"` | 1K, 1.5K, 2K; total pixels for custom ratios; 1K: 921600–2601123; 1.5K: 921600–2601123; 2K: 2601124–4624220 | Output resolution tier. The exact pixels follow from it and `aspect_ratio`. | `"2K"` |
| `size` | string | No | — | WIDTHxHEIGHT (positive integer pixels); total pixels 921600–4624220; aspect ratio 1:16–16:1 | Width and height of the output in pixels. | `"2048x2048"` |
| `n` | integer | No | `1` | 1 | How many outputs one task may produce. | `1` |
| `output_format` | string | No | `"png"` | png, jpeg | File format of the output. | `"png"` |
| `background` | string | No | `"auto"` | auto, transparent, opaque | Background of the output image; `transparent` gives an image with an alpha channel. | `"auto"` |
| `optimize_prompt_options` | object | No | `{"mode":"standard"}` | mode: standard (default "standard") | How the maker rewrites the prompt before generating. | `{"mode":"standard"}` |
| `watermark` | boolean | No | `false` | true, false | Whether the output carries the maker’s “AI generated” watermark. | `false` |

- When background = "transparent": output_format = "png"
- Do not combine size with resolution or aspect_ratio

Use a public HTTPS URL directly for images, audio and video. For local media, upload with `POST /v1/files` and pass the returned `url`. For upload MIME and size limits, see [Files & inputs](https://kerox.ai/vi/docs/files.md#presigned).

Accepted and ignored: `safety_identifier`. A request may carry them; they are not passed to the model.

## Polling and output

Poll `GET /v1/tasks/{id}`, or pass `webhook_url` when you submit and receive the same task object when it finishes: see [Webhooks](https://kerox.ai/vi/docs/webhooks.md) for the setup. Output files expire at `expires_at` (7 days after completion), so download anything you want to keep. See every task field in [Tasks & polling](https://kerox.ai/vi/docs/tasks.md#submit-response).

Set `TASK_ID` to the `id` returned on submission. The script waits up to 10 minutes, prints `error` on failure and downloads every `outputs[].url` on success.

```bash
(
  set -eu
  # Set TASK_ID to the id returned by the submit request.
  : "${TASK_ID:?Set TASK_ID}"
  deadline=$((SECONDS + 600))
  while (( SECONDS < deadline )); do
    task=$(curl --fail-with-body --silent --show-error --max-time "$((deadline - SECONDS))" https://api.kerox.ai/v1/tasks/"$TASK_ID" \
      -H "Authorization: Bearer $KEROX_API_KEY")
    case $(jq -er .status <<< "$task") in
      succeeded)
        if ! jq -e '.outputs | length > 0' <<< "$task" >/dev/null; then
          echo "Result files are unavailable." >&2
          exit 1
        fi
        i=0
        while IFS= read -r url; do
          file_path=${url%%\?*}
          filename="output-${i}.${file_path##*.}"
          curl --fail-with-body --silent --show-error --max-time 120 "$url" -o "$filename"
          printf "%s\n" "$filename"
          i=$((i + 1))
        done < <(jq -r '.outputs[].url' <<< "$task")
        exit 0 ;;
      failed) jq -c .error <<< "$task" >&2; exit 1 ;;
      processing) sleep 2 ;;
      *) echo "Unexpected task status." >&2; exit 1 ;;
    esac
  done
  echo "Poll timed out. Keep TASK_ID to check again later." >&2
  exit 1
)
```

### Success response JSON

Actual charges depend on your account price and task result.

```json
{
  "id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
  "object": "task",
  "model": "bytedance/seedream-5.5",
  "status": "succeeded",
  "source": "api",
  "format": "unified",
  "input": {
    "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
    "size": "2048x2048"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://cdn.kerox.ai/t/task_01JD8X9B4Q2M7T8N3K5P6R1S0V/5f2b8c1e9d3a4f6b8a7c0d1e2f3a4b5c/0.png",
      "content_type": "image/png",
      "width": 2048,
      "height": 2048
    }
  ],
  "outputs_deleted": false,
  "error": null,
  "cost": {
    "amount": "0.0280",
    "currency": "USD",
    "status": "settled"
  },
  "metadata": null,
  "warnings": [],
  "created_at": "2026-11-20T08:00:00Z",
  "started_at": "2026-11-20T08:00:01Z",
  "completed_at": "2026-11-20T08:01:10Z",
  "expires_at": "2026-11-27T08:01:10Z"
}
```

## Pricing

| Tier | Official / image | Kerox / image | Below official price |
| --- | --- | --- | --- |
| 1K/1.5K | $0.0200 | $0.0160 | 20% |
| 2K | $0.0350 | $0.0280 | 20% |

- **Tiers**: set by the pixel count (width × height) of each output image: up to 2,601,123 px is `1K/1.5K`; anything larger is `2K`.
- **Reference images**: each reference image adds $0.0064 (official $0.0080).

### Estimate before submitting

The returned `amount` is what submitting would hold. An estimate creates no task and charges nothing. When `exact` is `false`, the final charge may differ from the hold.

### Base size

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedream-5.5",
  "input": {
    "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
    "resolution": "2K",
    "aspect_ratio": "1:1"
  }
}'
```

### Size tier with a reference image

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedream-5.5",
  "input": {
    "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
    "resolution": "1K",
    "aspect_ratio": "1:1",
    "images": [
      "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
    ]
  }
}'
```

## Common usage

| Output | Official price | Kerox | You save |
| --- | --- | --- | --- |
| 1 image · 1K/1.5K | $0.0200 | $0.0160 | 20% |
| 1 image · 2K | $0.0350 | $0.0280 | 20% |

- **$10 gets you**: 625 1K/1.5K images

## Input schema (JSON)

### Parameters (`unified.input_schema`)

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "pattern": "\\S",
      "minLength": 1,
      "description": "Text describing what to generate.",
      "x-label-en": "Prompt",
      "x-label-zh": "提示词",
      "x-tier": "common"
    },
    "images": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(https://|data:image/)"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(https://|data:image/)"
          },
          "maxItems": 10,
          "minItems": 1
        }
      ],
      "description": "Images for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference images",
      "x-label-zh": "参考图",
      "x-tier": "common"
    },
    "aspect_ratio": {
      "type": "string",
      "pattern": "^(auto|[1-9][0-9]*:[1-9][0-9]*)$",
      "default": "auto",
      "examples": [
        "auto",
        "1:1",
        "2:3",
        "3:2",
        "3:4",
        "4:3",
        "16:9",
        "21:9",
        "9:16"
      ],
      "x-constraints": {
        "min_aspect": 0.0625,
        "max_aspect": 16
      },
      "description": "Width to height of the output.",
      "x-label-en": "Aspect ratio",
      "x-label-zh": "画面比例",
      "x-tier": "common"
    },
    "resolution": {
      "type": "string",
      "enum": [
        "1K",
        "1.5K",
        "2K"
      ],
      "default": "2K",
      "description": "Output resolution tier. The exact pixels follow from it and `aspect_ratio`.",
      "x-label-en": "Resolution",
      "x-label-zh": "分辨率",
      "x-tier": "common"
    },
    "size": {
      "type": "string",
      "pattern": "^[1-9][0-9]*x[1-9][0-9]*$",
      "x-constraints": {
        "max_aspect": 16,
        "max_pixels": 4624220,
        "min_aspect": 0.0625,
        "min_pixels": 921600
      },
      "description": "Width and height of the output in pixels.",
      "x-label-en": "Exact size",
      "x-label-zh": "精确尺寸",
      "x-tier": "advanced"
    },
    "n": {
      "type": "integer",
      "const": 1,
      "default": 1,
      "description": "How many outputs one task may produce.",
      "x-label-en": "Number of outputs",
      "x-label-zh": "生成数量",
      "x-tier": "advanced"
    },
    "output_format": {
      "enum": [
        "png",
        "jpeg"
      ],
      "type": "string",
      "default": "png",
      "description": "File format of the output.",
      "x-label-en": "Output format",
      "x-label-zh": "输出格式",
      "x-tier": "advanced"
    },
    "background": {
      "enum": [
        "auto",
        "transparent",
        "opaque"
      ],
      "type": "string",
      "default": "auto",
      "description": "Background of the output image; `transparent` gives an image with an alpha channel.",
      "x-label-en": "Background",
      "x-label-zh": "背景",
      "x-tier": "common"
    },
    "optimize_prompt_options": {
      "type": "object",
      "default": {
        "mode": "standard"
      },
      "properties": {
        "mode": {
          "enum": [
            "standard"
          ],
          "type": "string",
          "x-tier": "advanced",
          "default": "standard",
          "x-label-en": "Mode",
          "x-label-zh": "模式"
        }
      },
      "additionalProperties": false,
      "description": "How the maker rewrites the prompt before generating.",
      "x-label-en": "Prompt optimization",
      "x-label-zh": "提示词优化",
      "x-tier": "advanced"
    },
    "watermark": {
      "type": "boolean",
      "default": false,
      "description": "Whether the output carries the maker’s “AI generated” watermark.",
      "x-label-en": "Watermark",
      "x-label-zh": "水印",
      "x-tier": "advanced"
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false,
  "x-ignored": [
    "safety_identifier"
  ],
  "allOf": [
    {
      "not": {
        "properties": {
          "size": true,
          "resolution": true
        },
        "required": [
          "size",
          "resolution"
        ]
      }
    },
    {
      "not": {
        "properties": {
          "size": true,
          "aspect_ratio": true
        },
        "required": [
          "size",
          "aspect_ratio"
        ]
      }
    },
    {
      "if": {
        "required": [
          "background"
        ],
        "properties": {
          "background": {
            "const": "transparent"
          }
        }
      },
      "then": {
        "properties": {
          "output_format": {
            "const": "png"
          }
        }
      }
    }
  ]
}
```

### ByteDance format (`format: "native"`, `input_schema`)

```json
{
  "type": "object",
  "allOf": [
    {
      "if": {
        "required": [
          "background"
        ],
        "properties": {
          "background": {
            "const": "transparent"
          }
        }
      },
      "then": {
        "properties": {
          "output_format": {
            "const": "png"
          }
        }
      }
    }
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "prompt"
  ],
  "x-ignored": [
    "safety_identifier"
  ],
  "properties": {
    "size": {
      "type": "string",
      "x-tier": "common",
      "default": "2K",
      "pattern": "^(1K|1\\.5K|2K|[1-9][0-9]*x[1-9][0-9]*)$",
      "x-label-en": "Size",
      "x-label-zh": "尺寸",
      "x-constraints": {
        "max_aspect": 16,
        "max_pixels": 4624220,
        "min_aspect": 0.0625,
        "min_pixels": 921600
      }
    },
    "image": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(https://|data:image/)"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(https://|data:image/)"
          },
          "maxItems": 10,
          "minItems": 1
        }
      ],
      "x-tier": "common",
      "x-label-en": "Reference images",
      "x-label-zh": "参考图"
    },
    "prompt": {
      "type": "string",
      "x-tier": "common",
      "pattern": "\\S",
      "minLength": 1,
      "x-label-en": "Prompt",
      "x-label-zh": "提示词"
    },
    "watermark": {
      "type": "boolean",
      "x-tier": "advanced",
      "default": false,
      "x-label-en": "Watermark",
      "x-label-zh": "水印"
    },
    "background": {
      "enum": [
        "auto",
        "transparent",
        "opaque"
      ],
      "type": "string",
      "x-tier": "common",
      "default": "auto",
      "x-label-en": "Background",
      "x-label-zh": "背景"
    },
    "output_format": {
      "enum": [
        "png",
        "jpeg"
      ],
      "type": "string",
      "x-tier": "advanced",
      "default": "png",
      "x-label-en": "Output format",
      "x-label-zh": "输出格式"
    },
    "optimize_prompt_options": {
      "type": "object",
      "x-tier": "advanced",
      "default": {
        "mode": "standard"
      },
      "properties": {
        "mode": {
          "enum": [
            "standard"
          ],
          "type": "string",
          "x-tier": "advanced",
          "default": "standard",
          "x-label-en": "Mode",
          "x-label-zh": "模式"
        }
      },
      "x-label-en": "Prompt optimization",
      "x-label-zh": "提示词优化",
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
```
