# DeepSeek V4.1 Flash 1017 (Mistral) - Core.Today AI API > DeepSeek V4.1 Flash (1017 snapshot), hosted by Mistral and served over the direct Mistral API - a 1M-token context window, image input and function calling, with very cheap cached input. - **Provider**: DeepSeek - **Model ID**: deepseek-v4-1-flash-1017 - **Category**: LLM - **Credits**: 1.39 per 1K tokens (avg) - **Speed**: Fast - **Quality**: High ## Model Specifications - **Context Window**: 1.0M tokens - **Max Output**: 1.0M tokens - **Training Cutoff**: Not published - **Supported Formats**: text, json, markdown - **Compatible SDK**: OpenAI ### Capabilities - Vision (image input) - Function Calling - Streaming - JSON Mode - System Prompt ### Token Pricing (per 1M tokens) - **Input Tokens**: 557.4 credits ($0.37) - **Output Tokens**: 2,229.6 credits ($1.49) - **Cached Tokens**: 13.006 credits ($0.01) ## Features - 1M-token context window - Image input (vision) - Function calling and structured outputs - Prompt caching (cached input billed at the cached rate) - OpenAI-compatible API (chat completions) via /llm/mistral/v1 ## Use Cases - Cache-heavy workloads with a long shared prefix - Fast general chat and coding - A pinned DeepSeek snapshot hosted in the EU ## API Endpoint Base URL: https://api.core.today Endpoint: POST /llm/mistral/v1/chat/completions ## Authentication Header: Authorization: Bearer YOUR_API_KEY Note: LLM endpoints use OpenAI-compatible format with Authorization Bearer token. ## Input Parameters ### Required - **messages**: array - Chat messages in OpenAI format (system/user/assistant roles). ### Optional - **max_tokens**: integer - Maximum completion tokens. - **temperature**: number - Sampling temperature. - **tools**: array - Function definitions the model may call (OpenAI tools format). - **response_format**: object - json_object or json_schema for structured output. - **stream**: boolean (default: false) - Stream the response as server-sent events. ## Examples ### Chat completion OpenAI-compatible chat completion over the direct Mistral route ```json { "model": "deepseek-v4-1-flash-1017", "messages": [ { "role": "user", "content": "다음 보고서를 다섯 줄로 요약해 줘." } ], "max_tokens": 4096 } ``` ## 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 - Only chat completions are available on this route - for OCR, speech-to-text and text-to-speech use mistral/ocr-4.1, mistral/voxtral-mini-transcribe-3 and mistral/voxtral-tts-3 through POST /v1/predictions - This is the Mistral-hosted snapshot; DeepSeek's own API is the separate model deepseek-flash on /llm/deepseek/v1 ## Documentation https://docs.mistral.ai/models