# MiniMax M3.1 Flash - Core.Today AI API > MiniMax's multimodal M3.1 Flash, served through the OpenRouter aggregator - improved over M3 on agentic tasks and coding, with a 1M-token context and text, image and video input. OpenRouter prices it by time of day; billed at OpenRouter's actual usage cost. - **Provider**: MiniMax - **Model ID**: minimax/minimax-m3.1-flash - **Category**: LLM - **Credits**: 0.7 per 1K tokens (avg, estimate) - **Speed**: Fast - **Quality**: High ## Model Specifications - **Context Window**: 1.0M tokens - **Max Output**: 524K 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**: 1,114.8 credits ($0.74) - **Cached Tokens**: 27.87 credits ($0.02) ## Features - 1M-token context window - Text, image and video input with text output - Time-of-day pricing on OpenRouter (UTC 01:00-15:00 is the higher rate) - OpenAI-compatible API (chat completions) via /llm/openrouter/v1 - Billed at OpenRouter's actual usage.cost - listed rates are estimates ## Use Cases - Low-cost agentic and coding tasks - Multimodal extraction ## API Endpoint Base URL: https://api.core.today Endpoint: POST /llm/openrouter/v1/chat/completions ## Authentication Header: Authorization: Bearer YOUR_API_KEY Note: LLM endpoints use OpenAI-compatible format with Authorization Bearer token. ## Input Parameters ### Required - **model**: string - Model ID in vendor/model form, e.g. "minimax/minimax-m3.1-flash". - **messages**: array - Chat messages in OpenAI format (system/user/assistant roles). ### Optional - **max_tokens**: integer (default: 2048) - Maximum completion tokens. - **stream**: boolean (default: false) - Stream the response as server-sent events. ## Examples ### Chat completion OpenAI-compatible chat completion request via OpenRouter ```json { "model": "minimax/minimax-m3.1-flash", "messages": [ { "role": "user", "content": "Summarize the attached report in 5 bullets." } ], "max_tokens": 1024 } ``` ## 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://ai.api.core.today/llm/openrouter/v1 - Charged at OpenRouter's usage.cost x 1,858 credits/USD - the listed rates are estimates and may lag OpenRouter price changes - Listed rates are the higher (UTC 01:00-15:00) tier - outside those hours OpenRouter charges half, and you pay the actual usage.cost ## Documentation https://openrouter.ai/minimax/minimax-m3.1-flash