Embeddings model
Mistral Embed 2312
mistralai/mistral-embed-2312
mistralai/mistral-embed-2312 is a text embedding model from Mistral AI you can call on the OceanToken API, with a 8K-token context window.
Price card, similar models and questions answered: Mistral Embed 2312 on oceantoken.ai.
At a glance
| Model ID | mistralai/mistral-embed-2312 |
|---|---|
| Type | Embeddings |
| Publisher | Mistral AI |
| Context window | 8,192 tokens |
| Price | On oceantoken.ai |
| Endpoint | /v1/embeddings |
| API shape | OpenAI-compatible |
| In the catalog since | 2025-10-31 |
API
POST /v1/embeddings. Base URL https://api.oceantoken.ai, your OceanToken key as the bearer token. The OpenAI SDKs work unchanged; see the Quickstart.
Download this spec (JSON) · llms.txt for AI assistants
Basic
- curl
- Python
- JavaScript
curl https://api.oceantoken.ai/v1/embeddings \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/mistral-embed-2312",
"input": "The quick brown fox"
}'
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.oceantoken.ai/v1", api_key=os.environ["OCEANTOKEN_API_KEY"])
result = client.embeddings.create(
model="mistralai/mistral-embed-2312",
input="The quick brown fox",
)
print(len(result.data[0].embedding))
import OpenAI from 'openai';
const client = new OpenAI({baseURL: 'https://api.oceantoken.ai/v1', apiKey: process.env.OCEANTOKEN_API_KEY});
const result = await client.embeddings.create({
"model": "mistralai/mistral-embed-2312",
"input": "The quick brown fox"
});
console.log(result.data[0].embedding.length);
Request parameters
Only what this model takes. Anything else in the request is left out before it reaches the model.
| Parameter | Type | Description |
|---|---|---|
modelrequired | string | This model's ID. |
inputrequired | string or array | A string, or a list of strings to embed in one request. |
encoding_format | string float, base64 default "float" | How the vectors come back. |
Response
| Field | Type | Description |
|---|---|---|
data[].embedding | array | The vector. |
usage.prompt_tokens | integer | Input tokens. |
Example response
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0123,
-0.0456
]
}
],
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
More examples and how errors and billing work: Embeddings and rerank.
Compared with similar models
Embeddings models on OceanToken in the same price range as mistralai/mistral-embed-2312. Compare their prices on oceantoken.ai.
| Model | Publisher | Context |
|---|---|---|
Mistral Embed 2312mistralai/mistral-embed-2312 | Mistral AI | 8,192 |
Text Embedding Ada 002openai/text-embedding-ada-002 | OpenAI | 8K |
Voyage 4 Largevoyageai/voyage-4-large | Voyage AI | 32K |
Voyage Code 4voyageai/voyage-code-4 | Voyage AI | 32K |
More from Mistral AI
- Codestral 2508
mistralai/codestral-2508 - Codestral Embed 2505
mistralai/codestral-embed-2505 - Devstral 2512
mistralai/devstral-2512 - Ministral 14B 2512
mistralai/ministral-14b-2512 - Ministral 3B 2512
mistralai/ministral-3b-2512 - Ministral 8B 2512
mistralai/ministral-8b-2512 - Mistral Large 2407
mistralai/mistral-large-2407 - Mistral Large 2512
mistralai/mistral-large-2512
All Mistral AI models on OceanToken
Use it
Create an account Price on oceantoken.ai
The facts on this page were read from the live OceanToken catalog on 2026-12-02 (UTC), when the documentation was built. Prices are published on oceantoken.ai.