<!-- Lazu · BAAI/bge-m3 · https://lazu.ai/models/baai/BAAI/bge-m3 -->

# BAAI/bge-m3 (`BAAI/bge-m3`)



Multilingual text embedding model from BAAI: 1024-dimension dense vectors, 100+ languages, up to 8192 tokens per input.

## Facts

- **Context:** 8k
- **Input:** Text
- **Output:** Embedding
- **Endpoints:** /v1/embeddings

## Prices (USD per million tokens)

| Lane | Input | Output | Cache read | Cache write 5m | 7-day availability |
|---|---|---|---|---|---|
| BAAI official price | $0.012 | — | — | — | — |
| Stable | $0.02 | — | — | — | 100.0% |

Prices checked 2026-11-03 19:15 UTC

Unsupported parameters: dimensions, encoding_format

## Example request (POST /v1/embeddings)

```bash
curl -X POST https://api.lazu.ai/v1/embeddings \
  -H "Authorization: Bearer $LAZU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "BAAI/bge-m3",
    "input": "Hello from Lazu"
  }'
```

Any OpenAI SDK works: set `base_url` to `https://api.lazu.ai/v1`. Docs: https://lazu.ai/docs

## Questions

### What is the difference between the stable and agent lanes?

The stable lane runs on each maker's official API, is billed at the list price, has the highest availability and suits every use. The agent lane runs on third-party subscription pools that serve the model through its official client, not the official API. It costs far less, but availability varies, a failed request does not fall back to the stable lane, and the pool adds its own preset context. So use it only inside the matching agent tool: Claude models in Claude Code, GPT models in Codex, Gemini models in Antigravity. For your own code, or anywhere the output must be controlled exactly, use the stable lane. Both lanes work with the same key, and each key picks the lane per model.

### Can I call BAAI/bge-m3 with the OpenAI SDK?

Yes. Point the SDK's base URL at https://api.lazu.ai/v1 and use BAAI/bge-m3 as the model name. The native Embeddings endpoint /v1/embeddings works as well.

### How is it billed?

Per token actually used — input, output and cache — deducted from your wallet balance. There is no monthly fee, and every request shows up itemized in your usage log.

