Create embeddings
Request body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Logical model name (must be an embedding model) |
input | string or array | Yes | Text or array of texts to embed |
encoding_format | string | No | float (default) or base64 |
Response
Provider support
The gateway automatically translates embedding requests for providers that use a different wire format:| Provider | Notes |
|---|---|
| openai, mistral, groq, fireworks, ollama, together | No translation needed (OpenAI-compatible) |
| gemini, vertex | Translated to/from batchEmbedContents |
| cohere | Translated to/from /v2/embed |
| anthropic, bedrock, deepseek, perplexity, xai | Embeddings not supported |