Skip to content

Embeddings

Routed across OpenAI, Mixedbread, and DeepInfra. Accepts one text or a batch of up to 100. Billing is per 1k input tokens.

POST /v1/tools/embed
{
"input": ["how do durable objects bill?", "cloudflare pricing model"],
"routing": { "providers": ["openai-embed"] }
}
{
"result": {
"embeddings": [[0.0121, -0.0334, ], [0.0087, 0.0412, ]],
"dimensions": 1536,
"model": "text-embedding-3-small",
"tokens": 14
}
}