Skip to content
Zabio is in beta: models, prices and features can change. Tell us what breaks at hello@zabio.ai.

Embeddings

POST /v1/embeddings follows OpenAI’s shape. Embedding models are always explicit: there is no auto for embeddings. The key needs the embeddings scope (keys have it by default).

For the exact shape of every request and response, with curl, Python and Node examples, see the API reference.

Model Vendor Max input tokens Price (USD per million input tokens)
text-embedding-3-small openai 8192 0.02
text-embedding-3-large openai 8192 0.13
gemini-embedding-001 google 8192 0.20
mistral-embed-2312 mistral 8000 0.10
bge-base-en-v1.5 deepinfra 512 0.005
bge-large-en-v1.5 deepinfra 512 0.01
bge-m3 deepinfra 8192 0.01
e5-base-v2 deepinfra 512 0.005
e5-large-v2 deepinfra 512 0.01
multilingual-e5-large deepinfra 512 0.01
all-minilm-l12-v2 deepinfra 512 0.005
all-minilm-l6-v2 deepinfra 512 0.005
all-mpnet-base-v2 deepinfra 512 0.005
multi-qa-mpnet-base-dot-v1 deepinfra 512 0.005
paraphrase-minilm-l6-v2 deepinfra 512 0.005
gte-base deepinfra 512 0.005
gte-large deepinfra 512 0.01
qwen3-embedding-4b deepinfra 32768 0.02
qwen3-embedding-8b deepinfra 32768 0.01
bge-m3@parasail parasail 8192 0.01
gemini-embedding-2 google 8192 0.20
codestral-embed-2505 mistral 8000 0.15
text-embedding-ada-002 openai 8192 0.10

mistral-embed-2312 returns 1,024 dimensions and is processed by Mistral AI’s global API, which does not guarantee a location. Anthropic has no embedding models, and Together AI offers none on its serverless API. Prices are provider list prices; the plan fee applies on top (see Billing).

The dimensions each returns: bge-base-en-v1.5 768, bge-large-en-v1.5 1,024, bge-m3 1,024, e5-base-v2 768, e5-large-v2 1,024, multilingual-e5-large 1,024, all-minilm-l12-v2 384, all-minilm-l6-v2 384, all-mpnet-base-v2 768, multi-qa-mpnet-base-dot-v1 768, paraphrase-minilm-l6-v2 384, gte-base 768, gte-large 1,024, qwen3-embedding-4b 2,560, qwen3-embedding-8b 4,096, bge-m3@parasail 1,024, gemini-embedding-2 3,072, codestral-embed-2505 1,536, text-embedding-ada-002 1,536. DeepInfra’s and Parasail’s models are processed with no guaranteed location; gemini-embedding-2 takes text only on this route.

Terminal window
curl https://api.zabio.ai/v1/embeddings \
-H "Authorization: Bearer insert your zabio.ai key here" \
-H "Content-Type: application/json" \
-d '{"model": "text-embedding-3-small", "input": ["first text", "second text"]}'
Field Notes
model required; one of the ids above
input a string or an array of 1 to 2048 strings
dimensions optional; passed to the vendor
encoding_format float (default) or base64 (little endian float32)
user accepted
{
"object": "list",
"data": [{"object": "embedding", "index": 0, "embedding": [0.0123, ...]}],
"model": "text-embedding-3-small",
"usage": {"prompt_tokens": 8, "total_tokens": 8},
"zabio": {"vendor": "openai", "model_served": "text-embedding-3-small", "cost_micros": 0, "tokens_estimated": false}
}

zabio.tokens_estimated is true for Google models, which do not report token counts; Zabio estimates them from the input length and bills on the estimate.

from openai import OpenAI
client = OpenAI(base_url="https://api.zabio.ai/v1", api_key="insert your zabio.ai key here")
res = client.embeddings.create(model="text-embedding-3-small", input="hello world")
print(len(res.data[0].embedding))

The key’s requests per minute and tokens per minute limits apply, with the same x-ratelimit-* headers as chat completions. An unknown or non embedding model returns 404 model_not_found. With no credits left, or when the call’s estimated cost (its input at the model’s price, fee included) does not fit the balance left after the calls still in flight, the call is refused with 402 insufficient_credits, unless your organization has its own key for that vendor. See Errors.