# Multimodal embeddings

Preserves the Ark fused data object for text, image and video input.
CN model: `volcengine/doubao-embedding-vision-251215` (alias `volcengine/doubao-embedding-vision`).
SG model: `volcengine-overseas/skylark-embedding-vision-251215`.
Text and visual input tokens are billed separately using actual upstream usage and account discounts.
Prices are available through authenticated `GET /v1/models`; visual rate is `embedding_visual_input_per_1m`.
No output token charge. Malformed/failed upstream responses release the reservation.
Legacy `doubao-embedding` and `doubao-embedding-large` are unavailable; vector spaces differ and existing indexes must be rebuilt when changing models.
`/api/v3`, `/v3`, `/api/v1` prefixes are also supported. Streaming and pre-tokenized integer input are unsupported.

## POST /v1/embeddings/multimodal

> Multimodal embeddings

Preserves the Ark fused data object for text, image and video input.
CN model: `volcengine/doubao-embedding-vision-251215` (alias `volcengine/doubao-embedding-vision`).
SG model: `volcengine-overseas/skylark-embedding-vision-251215`.
Text and visual input tokens are billed separately using actual upstream usage and account discounts.
Prices are available through authenticated `GET /v1/models`; visual rate is `embedding_visual_input_per_1m`.
No output token charge. Malformed/failed upstream responses release the reservation.
Legacy `doubao-embedding` and `doubao-embedding-large` are unavailable; vector spaces differ and existing indexes must be rebuilt when changing models.
`/api/v3`, `/v3`, `/api/v1` prefixes are also supported. Streaming and pre-tokenized integer input are unsupported.

### Authentication

`Authorization: Bearer tr-xxx`

### Request Body

Content-Type: `application/json`

- **model** `string` **(required)**  
  
- **input** `object[]` **(required)**  
  
- **input[].type** ``text` | `image_url` | `video_url`` **(required)**  
  
- **input[].text** `string`  
  
- **input[].image_url** `object`  
  
- **input[].video_url** `object`  
  
- **dimensions** ``1024` | `2048``  
  
- **encoding_format** ``float` | `base64` | `null``  
  
- **instructions** `string`  
  
- **sparse_embedding** `object`  
  
- **sparse_embedding.type** ``enabled` | `disabled``  
  
- **multi_embedding** `object`  
  
- **multi_embedding.type** ``enabled` | `disabled``  
  
- **multi_embedding.compression** ``blosc2` | `zstd``  
  

### Response

- **model** `string`  
  
- **object** `string`  
  
- **data** `object` **(required)**  
  
- **usage** `object` **(required)**  
  
- **usage.prompt_tokens** `integer`  
  
- **usage.total_tokens** `integer`  
  
- **usage.prompt_tokens_details** `object`  
  

### Error Codes

- `400`: Invalid model, input or endpoint
- `401`: Missing or invalid API key
- `402`: Insufficient balance
- `403`: Model or channel not allowed
- `502`: Upstream failure, invalid vectors or missing usage
- `503`: Channel configuration or billing unavailable
