# Bytedance Seed V2 Mini API

> 텍스트, 이미지, 동영상을 읽고 추론 및 다중 턴 기록을 전환할 수 있는 멀티모달 LLM입니다

텍스트 `prompt`에 답하고 최대 6개의 이미지(`image_urls`)와 최대 3개의 동영상(`video_urls`)도 분석할 수 있는 언어 모델입니다. 오디오 이해는 지원하지 않습니다. `thinking`은 활성화, 비활성화 또는 auto로 설정할 수 있으며 `reasoning_effort` 범위는 minimal부터 high까지입니다. `max_completion_tokens`를 통해 출력 길이는 최대 65536 토큰입니다. 다중 턴 대화를 위해 `system_prompt`와 이전 `messages`를 지원합니다.

- Model id: `bytedance/seed/v2/mini`
- Made by: ByteDance
- Category: LLM
- Output: text
- Charged by usage (up to $0.213 per run, typical $0.001; the rest of the hold is refunded): $0.0001 / 1000 tokens (cheapest run $0.001 (1 API credit))
- Run: `POST https://api.doitong.com/v1/run/bytedance/seed/v2/mini`
- Quote: `POST https://api.doitong.com/v1/quote/bytedance/seed/v2/mini`
- Docs page: https://doitong.com/ko/developers/models/bytedance/seed/v2/mini

## Pricing

Price: **$0.0001 / 1000 tokens**. Charged by actual usage at $0.0001 / 1000 tokens: up to $0.213 per run (the quote gives the maximum for your input), the rest is refunded automatically after the run. A typical run costs $0.001.

The full example input below holds up to $0.213 = 213 API credits (up to 2129.92 × 1000 tokens × $0.0001) when it starts; a typical run costs $0.001 (1 API credit).

Prices are the upstream price in USD, paid from the API balance in API credits (1000 API credits = 1 USD). This model is charged by usage: `POST https://api.doitong.com/v1/quote/bytedance/seed/v2/mini` with the same JSON body returns the most the run can cost for that input (`credits`, debited when the run starts); after the run you pay the usage the model reports and the rest is refunded automatically. An input whose maximum would exceed the per-run limit is refused with 422. Invalid input is never charged and failed or canceled requests are refunded automatically.

## Input parameters

Send either the canonical name or the native field name (not both). Canonical names are the same across models.

| Parameter | Canonical name | Type | Required | Default | Allowed values / range | Description |
|---|---|---|---|---|---|---|
| `prompt` |  | string | yes |  |  | 모델에 보내는 프롬프트 또는 질문이 포함된 텍스트입니다. |
| `image_urls` | `images` | array of image URL | no |  |  | JPEG, PNG, WebP 파일을 가리키는 URL로 시각적 이해를 위한 이미지를 제공합니다. 처리는 이미지 6개로 제한되며 초과 항목은 무시됩니다. |
| `video_urls` | `videos` | array of video URL | no |  |  | 시각적 콘텐츠를 이해하기 위한 MP4 또는 MOV 동영상 URL을 제공합니다. 오디오는 처리하지 않습니다. 최대 3개의 동영상만 처리되며 초과 항목은 무시됩니다. |
| `system_prompt` |  | string \| null | no |  |  | 모델 동작을 지시하는 선택적 시스템 수준 프롬프트입니다. |
| `messages` |  | array of object {role, content} \| null | no |  |  | 이전 응답의 `messages` 값을 재사용하여 제공하는 선택적 멀티턴 컨텍스트입니다. 이 기록과 관계없이 현재 `prompt`, `image_urls`, `video_urls`, `system_prompt`를 포함하는 새로운 최신 사용자 턴이 항상 추가됩니다. |
| `messages[].role` |  | enum (string) | yes |  | `system`, `user`, `assistant` | 메시지 작성자에게 할당된 역할입니다. |
| `messages[].content` |  | string \| array of object | yes |  |  | 메시지 콘텐츠는 두 표현 중 하나를 사용합니다. 이미지 같은 멀티모달 콘텐츠에는 파트 목록을, 텍스트만 포함하는 메시지에는 문자열을 사용합니다. |
| `thinking` |  | enum (string) | no | `enabled` | `enabled`, `disabled`, `auto` | 사고 과정 추론 모드입니다. `enabled`는 매번 추론을 포함하고, `disabled`는 완전히 제외하며, `auto`는 쿼리에 따라 모델이 선택하도록 합니다. |
| `reasoning_effort` |  | enum (string) \| null | no |  | `minimal`, `low`, `medium`, `high` | 응답 전에 모델이 추론하는 깊이를 선택합니다. `high`는 복잡한 문제를 깊이 분석하고, `medium`은 깊이와 속도의 균형을 맞추며, `low`는 빠른 응답을 위해 가볍게 추론하고, `minimal`은 즉시 응답합니다. 이 설정은 `thinking` 값이 `enabled` 또는 `auto`인 경우에만 적용됩니다. |
| `max_completion_tokens` |  | integer | no | `4096` | 1 – 65,536 | 생성된 출력에 허용되는 최대 토큰 수입니다. 응답 토큰과 사고 과정 토큰이 이 공유 한도에 함께 포함됩니다. |
| `temperature` |  | number | no | `1` | 0 – 2 | 응답 무작위성 설정입니다. 값이 높아질수록 생성을 창의적인 방향으로, 낮아질수록 집중되고 결정적인 출력으로 유도합니다. |
| `top_p` |  | number | no | `0.7` | 0 – 1 | 핵 샘플링 제어입니다. `top_p`는 값이 낮아질수록 토큰 선택을 더 엄격하게 제한합니다. 모델의 후보 토큰은 `top_p`의 누적 확률 질량을 포괄합니다. |
| `enable_safety_checker` |  | boolean | no | `true` |  | 호출자에게 권한이 있으면 false로 설정해 검사를 완화할 수 있습니다. |

File parameters (`images`, `videos`) take a public `https://` URL, a `data:` URI up to 10 MB, or the `file_url` of an upload from `POST /files`.

## Example input

Required parameters only:

```json
{
  "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
```

A fuller example:

```json
{
  "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
```

## Run it

Set `DOITONG_API_KEY` to a key from https://doitong.com/developers/dashboard#keys. `?wait=20` returns the finished request in the same call when it is ready within 20 seconds; otherwise poll `GET /requests/{id}` (it also accepts `?wait=`), or pass `webhook_url`.

### curl

```bash
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bytedance/seed/v2/mini?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"
```

### JavaScript

```javascript
const API = "https://api.doitong.com/v1";
const headers = {
  "Authorization": "Bearer " + process.env.DOITONG_API_KEY,
  "Content-Type": "application/json",
};

// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/bytedance/seed/v2/mini?wait=20", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);

// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
  res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
  request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
```

### Python

```python
import os
import requests

API = "https://api.doitong.com/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}

payload = {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}

# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bytedance/seed/v2/mini", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
    raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])

# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
    request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
    raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
```

### MCP

The MCP server at `https://api.doitong.com/v1/mcp` exposes the tools `search_models`, `get_model`, `quote`, `run`, `get_request`, `cancel_request`, `list_requests`, `create_upload` and `get_account`. A `run` call for this model:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run",
    "arguments": {
      "model_id": "bytedance/seed/v2/mini",
      "input": {
        "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
      },
      "wait_seconds": 20
    }
  }
}
```

## Response

Every call returns a request object. `status` is one of `queued`, `running`, `succeeded`, `failed`, `canceled`. `outputs` lists the generated files with URLs on our storage (kept forever, or 7 days with `?storage=temporary`; `storage` says which); `output` is the model's own result object with the same URLs.

```json
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bytedance/seed/v2/mini",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 213,
    "usd": "0.213",
    "charged": 213,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "output": "string",
    "reasoning_content": "string",
    "messages": [
      {
        "role": "system",
        "content": "string"
      }
    ]
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
```

### Output fields (`output`)

| Field | Type | Description |
|---|---|---|
| `output` | string | 모델이 반환하는 텍스트입니다. |
| `reasoning_content` | string \| null | `thinking`이 `enabled` 또는 `auto`로 설정되면 이 출력에 모델의 사고 과정 추론이 포함될 수 있으며, 다른 설정에서는 포함되지 않습니다. |
| `messages` | array of object {role, content} | 다음 `messages` 입력에 재사용할 대화 컨텍스트입니다. 반환된 기록에는 모델의 최신 응답을 포함한 모든 턴이 들어 있습니다. |

## Related models

- [Fibo Edit \[Structured Instruction\]](https://doitong.com/developers/models/bria/fibo-edit/edit/structured_instruction.md) (`bria/fibo-edit/edit/structured_instruction`): $0.01 / request
- [Fibo Lite · Structured Prompt](https://doitong.com/developers/models/bria/fibo-lite/generate/structured_prompt.md) (`bria/fibo-lite/generate/structured_prompt`): $0.008 / request
- [Fibo · Structured Prompt](https://doitong.com/developers/models/bria/fibo/generate/structured_prompt.md) (`bria/fibo/generate/structured_prompt`): $0.01 / request
- [Mureka 9.5 Lyrics Generation](https://doitong.com/developers/models/mureka/api/generate/lyrics.md) (`mureka/api/generate/lyrics`): $0.0135 / request
- [Nemotron 3 Nano Omni](https://doitong.com/developers/models/nvidia/nemotron-3-nano-omni.md) (`nvidia/nemotron-3-nano-omni`): $0.01 / run
- [NVIDIA Nemotron 3.5 Super Text](https://doitong.com/developers/models/nvidia/nemotron-3-5-super/text.md) (`nvidia/nemotron-3-5-super/text`): $0.01 / run
- [OpenRouter](https://doitong.com/developers/models/openrouter/router.md) (`openrouter/router`): $0.01 / usage unit
- [OpenRouter \[Audio\]](https://doitong.com/developers/models/openrouter/router/audio.md) (`openrouter/router/audio`): $0.01 / usage unit

## Links

- HTML page: https://doitong.com/developers/models/bytedance/seed/v2/mini
- All models and guides for AI agents: https://doitong.com/developers/llms.txt
- OpenAPI 3.1 with this model's typed request body: https://doitong.com/developers/openapi.json?model=bytedance/seed/v2/mini
- Errors: https://doitong.com/developers/docs/errors
- Model details as JSON: https://api.doitong.com/v1/models/bytedance/seed/v2/mini
