# Mistral Embed - Core.Today AI API > Mistral's general-purpose text embedding model over the direct Mistral API - turns sentences and paragraphs into 1,024-dimension vectors for semantic search, clustering and RAG. Billed on input tokens only. - **Provider**: Mistral AI - **Model ID**: mistral-embed-2312 - **Category**: LLM - **Credits**: 0.19 per 1K tokens - **Speed**: Fast - **Quality**: High ## Model Specifications - **Context Window**: 8K tokens - **Training Cutoff**: n/a - **Supported Formats**: text - **Compatible SDK**: OpenAI ### Token Pricing (per 1M tokens) - **Input Tokens**: 185.8 credits ($0.12) - **Output Tokens**: not charged — billed on input tokens only ## Features - General-purpose text embeddings - Fixed 1,024-dimension output - 8,192-token input per item - Input tokens only - no output charge - OpenAI-compatible API (embeddings) via /llm/mistral/v1 ## Use Cases - Semantic search - RAG (retrieval-augmented generation) - Clustering and classification - Duplicate detection ## API Endpoint Base URL: https://api.core.today Endpoint: POST /llm/mistral/v1/embeddings ## Authentication Header: Authorization: Bearer YOUR_API_KEY Note: LLM endpoints use OpenAI-compatible format with Authorization Bearer token. ## Input Parameters ### Required - **input**: string | array - Text or array of texts to embed. Max 8,192 tokens per item. - **model**: string (default: mistral-embed-2312) - Model identifier. The alias mistral-embed is accepted and pinned to mistral-embed-2312. ## Examples ### Embeddings Returns data[].embedding for each input, in order. ```json { "model": "mistral-embed-2312", "input": [ "코어닷투데이는 AI API 게이트웨이입니다.", "What is an API gateway?" ] } ``` ## Response Format ```json { "id": "chatcmpl-abc123", "object": "chat.completion", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Response text here" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 100, "completion_tokens": 50, "total_tokens": 150 } } ``` ## Tips - Works with the OpenAI SDK - set base_url to https://api.core.today/llm/mistral/v1 and use your cdt_ API key - Use the same model for indexing and querying - vectors from different models are not comparable - Send several texts in one request (input as an array) for efficiency - Max input: 8,192 tokens per item - split long documents into chunks first - The output size is fixed at 1,024 - output_dimension and dimensions are rejected with 400 for this model; use codestral-embed-2505 if you need to choose the size ## Documentation https://docs.mistral.ai/models/mistral-embed-23-12