Embeddings
Endpoints
Embeddings
Create text embeddings.
POST
Embeddings
Create Embeddings
Generate vector embeddings from text for semantic search, similarity, clustering, and retrieval. Requests are served through the attested TEE gateway, which does not retain request bodies. Embedding requests route to a third-party provider; no embedding model runs on a verified confidential upstream today.Request Body
Embedding model id. See Supported models below.
Text to embed. Pass a single string or an array of strings for batch embedding.
float (default) or base64.Optional output dimension count. Supported by
openai/text-embedding-3-small and
openai/text-embedding-3-large, which can return fewer dimensions than their default.Example
Batch input
Pass an array to embed several strings in one request. Results are returned in input order, each with itsindex.
Response
Supported models
| Model id | Dimensions |
|---|---|
openai/text-embedding-3-small | 1536 |
openai/text-embedding-3-large | 3072 |
openai/text-embedding-ada-002 | 1536 |
qwen/qwen3-embedding-8b | 4096 |
model_not_found, it is not currently routed.
Custom dimensions
openai/text-embedding-3-small and openai/text-embedding-3-large accept a dimensions parameter to
return shorter vectors, which reduces storage and speeds up similarity search at some cost to quality.
Related
Models
Chat and confidential models.
Trust boundary
What the gateway protects.