# Volcengine Ark Native API Guide

If your client already uses Volcengine Ark request paths, point the Base URL to this platform and use your platform API Key—no need to rewrite payloads to OpenAI format.

### 1. Native Chat & Responses
* **Chat Endpoint**: `/api/v3/chat/completions`
* **Native Responses Endpoint**: `/api/v3/responses`
* **Request Method**: `POST`

Supports Volcengine Ark Request Payload. For parameter specifications, see the [Volcengine Ark Official Documentation](https://www.volcengine.com/docs/82379/1298454). [Chat & Responses API](https://www.volcengine.com/docs/82379/1298454)

### 2. Native Image Generation (Image Generations)
* **Endpoint**: `/api/v3/images/generations`
* **Request Method**: `POST`

Prefer fast edition `doubao-seedream-5-0-flash-260915` or precision edition `doubao-seedream-5-0-pro-260628` (both support single image, layer split `layer_decomposition`, and alpha `background`). **Note: Both Flash and Pro support single images only (sequential_image_generation / group generation is strictly unsupported)**; for group generation use `doubao-seedream-5-0-260128`. Scene bodies are in the doubao-seedream image article. [Image API](https://www.volcengine.com/docs/82379/1541523)

### 3. Native Video Generation Tasks (Video Studio)
* **Submit Task**: `/api/v3/contents/generations/tasks` (`POST`)
* **Query Task Status**: `/api/v3/contents/generations/tasks/{task_id}` (`GET`)
* **Cancel/Delete Task**: `/api/v3/contents/generations/tasks/{task_id}` (`DELETE`)
* **List Task History**: `/api/v3/contents/generations/tasks` (`GET`)

Prefer `doubao-seedance-2-5`. `content.role`: `first_frame` / `last_frame` / `reference_image` / `reference_video` / `reference_audio`. [Video API](https://www.volcengine.com/docs/82379/1520757)

2.5: duration `4`–`30` or `-1`; set `omni_reference_task_type` (`auto`/`edit`/`extend`); `output_format` is `mp4`/`mov`. Edit needs `ratio=adaptive` and `duration=-1`; first-frame/extend need `ratio=adaptive`. Scene bodies are in the Seedance video article. 2.0 and earlier are at the end of that page.

```json
{
  "model": "doubao-seedance-2-5",
  "content": [
    {"type": "text", "text": "The character from the image walks down a rainy street"},
    {"type": "image_url", "image_url": {"url": "https://example.com/ref.png"}, "role": "reference_image"}
  ],
  "resolution": "720p",
  "ratio": "16:9",
  "duration": 8,
  "generate_audio": true
}
```

### 4. Text-to-Speech & Audio Generation API (TTS)
* **TTS Event Stream Mode (SSE)**: `/api/v3/tts/unidirectional/sse` (`POST`)
* **TTS Non-streaming HTTP Mode**: `/api/v3/tts/unidirectional` (`POST`)
* **Audio Generation Native Mode (`seed-audio-1.0`)**: `/api/v3/tts/create` (`POST`)

For TTS endpoints, use header `X-Api-Key: sk-your_token`. Model may be set via `X-Api-Resource-Id` or the `model` field in the body. Response is Volcengine-style JSON (base64 audio frames).

Audio generation (`seed-audio-1.0`) creates dialogue, sound effects, or ambient audio (up to 120s). Authenticate with `X-Api-Key: sk-your_token` or `Authorization: Bearer sk-your_token`, and pass `"model": "seed-audio-1.0"` in the JSON body (`X-Api-Resource-Id` header is also supported). Key fields: `text_prompt` (clipped at 3000 characters; **both `speaker` voices and reference audios must be explicitly cited in `text_prompt` in array order as `@音频1`–`@音频3`** (e.g., `Speaker A (gentle female voice) 声音@音频1`; omitting `@音频N` when `references` includes a `speaker` or audio triggers upstream error `55001309: audio generate internal error`)), optional `references` (`speaker` / up to 1 `image_url` or `image_bytes` / up to 3 `audio_url` or `audio_data`; **reference image cannot be combined with reference audio or `speaker`**, returning HTTP `400`), and optional `audio_config` (`format`: `mp3`/`wav`/`pcm`/`ogg_opus`; `sample_rate`: `ogg_opus` fixed `48000`, `wav`/`pcm` default `40000`, `mp3` default `44100`; `speech_rate`/`loudness_rate` `-50`–`100`; `pitch_rate` `-12`–`12`). This route passes through Volcengine's native JSON response (`audio` Base64 and/or `url`, `original_duration`, `duration`) and bills strictly by `original_duration` seconds (unaffected by `speech_rate`). Use `/v1/audio/speech` if you need a raw binary audio stream instead.

```json
{
  "model": "seed-audio-1.0",
  "text_prompt": "Speaker A (gentle female voice) 声音@音频1\nIn soft midnight rain, Speaker A whispers: We are finally here.",
  "references": [
    {"speaker": "zh_female_vv_uranus_bigtts"}
  ],
  "audio_config": {
    "format": "mp3",
    "sample_rate": 44100,
    "speech_rate": 0,
    "loudness_rate": 0,
    "pitch_rate": 0
  }
}
```

### 5. Multimodal Embeddings API
* **Endpoint**: `/api/v3/embeddings/multimodal` (`POST`)

Fully supports Volcengine Ark Request Payload for multimodal feature vector extraction, with fine-grained separate billing for text and image token usage.


