# GLM 5.3 Flash (Mistral) - Core.Today AI API > Z.ai's fast GLM 5.3 Flash, hosted by Mistral and served over the direct Mistral API - a 1M-token context window, image input, function calling and reasoning on by default at a low per-token price. - **Provider**: Z.ai - **Model ID**: zai-glm-5-3-flash - **Category**: LLM - **Credits**: 0.6 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**: 278.7 credits ($0.19) - **Output Tokens**: 929 credits ($0.62) - **Cached Tokens**: 55.74 credits ($0.04) ## Features - 1M-token context window - Image input (vision) - Function calling and structured outputs - Reasoning on by default - Prompt caching (cached input billed at the cached rate) - OpenAI-compatible API (chat completions) via /llm/mistral/v1 ## Use Cases - High-volume long-context summarization - Fast tool-calling agents - Image understanding at a low price ## 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, including reasoning. Keep >= 2048 or the answer may be cut off before any content is produced. - **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": "zai-glm-5-3-flash", "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 - Keep max_tokens >= 2048: reasoning tokens come first and are billed at the output rate - `content` is a chunk array - join the {type: "text"} chunks for the answer; {type: "thinking"} chunks carry the reasoning - 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 route with fixed per-token prices; the OpenRouter listing (z-ai/…) is a separate model billed at OpenRouter's reported cost ## Documentation https://docs.mistral.ai/models