# BGE M3

`Bge_M3_FP16` · BAAI · Embeddings

1024-dimensional vectors. Up to 8192 tokens per input, 245K total. Multilingual support. Ideal for RAG, semantic search, and similarity matching.

[Model page](https://runstage.dev/models/bge-m3-text-embedding) · [JSON](https://runstage.dev/models/bge-m3-text-embedding.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=Bge_M3_FP16)

## Technical summary

- **Exact API model slug**: `Bge_M3_FP16`
- **Developer**: BAAI
- **Inference types**: `txt2embedding`
- **Infrastructure**: Direct GPU Fleet
- **Headline rate**: $0.000109 / 1K tokens (Per 1K tokens)
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`
- **Vector dimensions**: 1024

## Runstage routes

- **Embeddings** (`txt2embedding`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output` · `MCP runstage_generate_media`

## Best for

- Run BGE M3 via unified v2 jobs with free pre-run /price quotes
- Drop-in compatible with the OpenAI SDK via the OpenAI-compatible gateway
- Low-latency pay-as-you-go inference on direct GPU capacity

## Billing notes

1024-dimensional dense multilingual vectors, up to 8,192 tokens per input.

## Quickstart (cURL)

```bash
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
  -H "Content-Type: application/json" \
  -d '{"model":"Bge_M3_FP16","inputTokens":2000}'

# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
  -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{   "model": "Bge_M3_FP16",   "input": "The quick brown fox jumps over the lazy dog" }'

# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  'https://runstage.dev/api/v2/jobs/<request_id>'
```
