Pricing, context window, capabilities, and release date — pulled from each provider's public docs. Both are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.
Both models stream in parallel through your own AIgateway key. Tokens, latency, and cost update as they arrive.
| Bge-M3 baai/bge-m3 | Bge-Base-EN-V1.5 baai/bge-base-en-v1.5 | |
|---|---|---|
| Provider | BAAI | BAAI |
| Family | BGE | BGE |
| Modality | embedding | embedding |
| Context window | 60,000 tok | 153,600 tok |
| Max output | — | — |
| Released | 2024-05-22 | 2023-09-25 |
| Input price | $0.012 /1M | $0.067 /1M |
| Output price | — | — |
| Cache read | — | — |
| Tools | — | — |
| Streaming | — | — |
| Vision | — | — |
| JSON mode | — | — |
| Reasoning | — | — |
| Prompt caching | — | — |
Multi-Functionality, Multi-Linguality, and Multi-Granularity embeddings model.
BAAI general embedding (Base) model that transforms any given text into a 768-dimensional vector
# pip install aigateway-py openai
# aigateway-py: sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK: chat/embeddings/images/audio — drop-in compat per our SDK's own guidance.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Try Bge-M3
client.chat.completions.create(
model="baai/bge-m3",
messages=[{"role":"user","content":"hello"}],
)
# Try Bge-Base-EN-V1.5 — same client, same key
client.chat.completions.create(
model="baai/bge-base-en-v1.5",
messages=[{"role":"user","content":"hello"}],
)