# mistral-embed-2312 > LLM model from mistral, available via Core.Today API. - **Provider**: mistral - **Model ID**: mistral-embed-2312 - **Category**: embedding - **Pricing Type**: token_based - **Billing**: per token — see Token Pricing ## API Endpoint Base URL: https://api.core.today ### Embeddings POST /llm/mistral/v1/embeddings ## Authentication Header: `Authorization: Bearer YOUR_API_KEY` Note: Your Core.Today API key (`cdt_xxx`) works as Bearer token. ## Input Parameters - `model` (string, **required**): Model identifier. Use `mistral-embed-2312` - `input` (string or array, **required**): Text to embed, or an array of texts - `dimensions` (integer, optional): Output vector size, for models that support shortening - `encoding_format` (string, optional): `float` or `base64` (Default: `float`) ## Example Request ```json { "model": "mistral-embed-2312", "input": "The quick brown fox jumps over the lazy dog" } ``` ## Response Format ```json { "object": "list", "model": "mistral-embed-2312", "data": [ { "object": "embedding", "index": 0, "embedding": [ 0.0123, -0.0456, 0.0789 ] } ], "usage": { "prompt_tokens": 9, "total_tokens": 9 } } ``` ## Usage Flow 1. POST /llm/mistral/v1/embeddings with model and input 2. The embedding vectors are returned synchronously in `data[].embedding` 3. Credits are deducted based on token usage Credits in the response (opt-in): send the header `X-Coredot-Include-Cost: true` and the response reports the credits that call is billed — `usage.coredot.credits` in the body (Gemini: `usageMetadata.coredot`; streaming: in the final usage event) and, for non-streaming responses, the `X-Coredot-Credits` header. Guide: https://console.core.today/llms/api.txt (section "Credits in the response"). ## Token Pricing - Input: 0.0001858 credits/token (185.8 credits per 1M tokens) - Output: 0.0 credits/token (0 credits per 1M tokens) ## Tags mistral, embedding