https://api.lazu.ai/v1/embeddingsEmbeddings
Create vector embeddings with OpenAI-compatible clients. Use the model catalog to discover which models support embeddings and whether they accept custom dimensions.
BillingUsage tokens at the selected model and lane price; other billable dimensions may apply. Pricing & lanes ↗
Request body
modelstringrequiredEmbedding model ID from /api/models/catalog.
inputstring | string[]requiredText input or ordered batch of text inputs. The response preserves order.
dimensionsintegernullableOptional vector dimension for models that support truncation.
encoding_formatstringnullableOutput encoding format when supported by the upstream provider.
floatbase64Response
objectstringUsually list.
dataobject[]One embedding item per input.
data[].embeddingnumber[] | stringVector values or base64-encoded vector depending on
encoding_format.
usage.prompt_tokensintegerInput tokens used for embedding.
Batch guidance
Pass an array for small batches. For large data jobs, chunk client-side so each request stays within provider body-size and token limits.
Common models
| Model | Dim | Notes |
|---|---|---|
BAAI/bge-m3 | 1024 | Multilingual |
text-embedding-3-small | 1536 | OpenAI cheap default |
text-embedding-3-large | 3072 | OpenAI high quality |
gemini-embedding-001 | 768 | Google default |
See also
curl https://api.lazu.ai/v1/embeddings \
-H "Authorization: Bearer $LAZU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-luna",
"input": ["doc one", "doc two"]
}'
{
"object": "list",
"data": [
{ "object": "embedding", "index": 0, "embedding": [0.0021, -0.013] }
],
"model": "text-embedding-3-small",
"usage": { "prompt_tokens": 6, "total_tokens": 6 }
}
- Request ID
- req_demo_01
- Model · Lane
- text-embedding-3-small · stable
- Tokens · input
- 1,200
- Key
- demo-key
Example only — not a quote and not the result of your request. Send the request above to see your own receipt.
Read a real request receipt →Catalog filter
supported_endpoint_types includes embeddings