Skip to content

Embeddings

POST/v1/generations

Generate vector embeddings for text, useful for semantic search, clustering, and RAG applications.

Example

python
response = client.post("/v1/generations", json={
    "model": "openai/text-embedding-3-small",
    "input": "The quick brown fox jumps over the lazy dog"
})
embedding = response.json()["outputs"][0]["embedding"]
print(f"Dimensions: {len(embedding)}")

Available Models

ModelDimensionsPrice (per 1M tokens)
openai/text-embedding-3-small1536$0.02
openai/text-embedding-3-large3072$0.13
voyage/voyage-31024$0.06

Browse all embedding models