How to use M2-BERT-Retrieval-2K API
Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .
OpenAI-compatible — swap the base URL and it works with your existing SDK.
M2-BERT-Retrieval-2K API Pricing
| Type | Price |
|---|
| Input | $0.011 / 1M |
| Output | |
|
M2-BERT-Retrieval-2K vs other models
| Model | Input | Output | Context | Best for |
|---|
| $0.011 / 1M | | | |
| $0.169 / 1M tokens | | | Semantic search + RAG |
| $0.026 / 1M tokens | | | Semantic search + RAG |
| $0.091 / 1M tokens | $0.074 / 1M tokens | | Semantic search + RAG |
| $0.13 / 1M tokens | | | Semantic search + RAG |
Start building with M2-BERT-Retrieval-2K
Get API Key
1000+ models, one API.