# 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/ta/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 |  |  | மாதிரியின் நடத்தையை வழிநடத்தும் விருப்பமான system-level ப்ராம்ப்ட். |
| `messages` |  | array of object {role, content} \| null | no |  |  | முந்தைய பதிலின் `messages` மதிப்பை மீண்டும் பயன்படுத்தி வழங்கப்படும் விருப்பமான பல-திருப்பச் சூழல். இந்த வரலாறு எதுவாக இருந்தாலும், தற்போதைய `prompt`, `image_urls`, `video_urls`, `system_prompt` ஆகியவற்றைக் கொண்ட புதிய சமீபத்திய user turn எப்போதும் சேர்க்கப்படும். |
| `messages[].role` |  | enum (string) | yes |  | `system`, `user`, `assistant` | செய்தியின் ஆசிரியருக்கு ஒதுக்கப்பட்ட பங்கு. |
| `messages[].content` |  | string \| array of object | yes |  |  | செய்தி உள்ளடக்கம் இரு வடிவங்களில் ஏதேனும் ஒன்றை ஏற்கும்: படங்கள் போன்ற multimodal உள்ளடக்கத்திற்கான பகுதிகளின் பட்டியல் அல்லது உரை மட்டுமே கொண்ட செய்திக்கான சரம். |
| `thinking` |  | enum (string) | no | `enabled` | `enabled`, `disabled`, `auto` | Chain-of-thought reasoning பயன்முறை: `enabled` ஒவ்வொரு முறையும் reasoning-ஐ சேர்க்கும், `disabled` அதை முழுமையாக விலக்கும், `auto` வினவலுக்கு ஏற்ப மாதிரி தேர்ந்தெடுக்க அனுமதிக்கும். |
| `reasoning_effort` |  | enum (string) \| null | no |  | `minimal`, `low`, `medium`, `high` | பதிலளிப்பதற்கு முன் மாதிரி எவ்வளவு ஆழமாக reasoning செய்ய வேண்டும் என்பதைத் தேர்ந்தெடுக்கவும்: `high` சிக்கலான விவகாரங்களை ஆழமாகப் பகுப்பாய்வு செய்யும், `medium` ஆழத்தையும் வேகத்தையும் சமநிலைப்படுத்தும், `low` வேகமான பதில்களுக்கு இலகுவான reasoning-ஐப் பயன்படுத்தும், `minimal` உடனடியாகப் பதிலளிக்கும். `thinking`-இன் மதிப்பு `enabled` அல்லது `auto` ஆக இருந்தால் மட்டுமே இந்த அமைப்பு பொருந்தும். |
| `max_completion_tokens` |  | integer | no | `4096` | 1 – 65,536 | உருவாக்கப்பட்ட வெளியீட்டிற்கான அதிகபட்ச டோக்கன் வரம்பு. பதில் டோக்கன்களும் chain-of-thought டோக்கன்களும் இந்தப் பகிரப்பட்ட வரம்பில் கணக்கிடப்படும். |
| `temperature` |  | number | no | `1` | 0 – 2 | பதில் சீரற்றத்தன்மை அமைப்பு: மதிப்பு அதிகரிக்கும்போது உருவாக்கம் படைப்பாற்றலை நோக்கி நகரும்; குறையும்போது ஒருமுகப்படுத்தப்பட்ட, தீர்மானமான வெளியீட்டை நோக்கி நகரும். |
| `top_p` |  | number | no | `0.7` | 0 – 1 | Nucleus-sampling கட்டுப்பாடு `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` ஆக அமைக்கப்பட்டால், இந்த வெளியீட்டில் மாதிரியின் chain-of-thought reasoning இருக்கலாம்; பிற அமைப்புகளில் அது இருக்காது. |
| `messages` | array of object {role, content} | அடுத்த `messages` உள்ளீட்டுக்கான மீண்டும் பயன்படுத்தக்கூடிய உரையாடல் சூழல்: திருப்பி வழங்கப்பட்ட வரலாற்றில் மாதிரியின் சமீபத்திய பதில் உட்பட ஒவ்வொரு turn-உம் இருக்கும். |

## 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
