/api/v1/embeddingsFor semantic search, retrieval, clustering, and similarity calculation. Supports text and text-array input for doubao-embedding-vision-251215; use the native Doubao multimodal endpoint for images and video.
Back to Chat / Text endpoint listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | See the OpenAPI schema for field details. |
input | string | string[] | Yes | See the OpenAPI schema for field details. |
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
body | object | No | Object fields are passed through according to the current OpenRouter or GR endpoint implementation. |
Errors
401
UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403
FORBIDDENThe current API key is not authorized for this scope, model, or management capability.
422
VALIDATION_ERRORThe request body, path parameters, or query parameters do not match the endpoint schema.
Notes
- Use a GlobalRouter API key; upstream OpenRouter API keys are never exposed to tenants.