# MiniMax M2.7 (OpenRouter) - Core.Today AI API > MiniMax's M2.7 served through OpenRouter - an agentic large language model built for autonomous, real-world productivity with 204K-token context and multi-agent tool use. This id replaces the retired direct MiniMax-M2.7 route. Billed at OpenRouter's actual usage cost. - **Provider**: MiniMax - **Model ID**: minimax/minimax-m2.7 - **Category**: LLM - **Credits**: 1.4 per 1K tokens (avg, estimate) - **Speed**: Fast - **Quality**: High ## Model Specifications - **Context Window**: 205K tokens - **Max Output**: 131K tokens - **Training Cutoff**: Not published - **Supported Formats**: text, json, markdown - **Compatible SDK**: OpenAI ### Capabilities - 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**: 111.48 credits ($0.07) ## Features - 204K-token context window with up to 131K output tokens - Agentic capabilities with multi-agent tool use and reasoning - OpenAI-compatible API (chat completions) via /llm/openrouter/v1 - Prompt caching with discounted cache reads - Billed at OpenRouter's actual usage.cost - listed rates are estimates ## Use Cases - Autonomous agents and multi-step task execution - Coding assistants and tool-calling workflows - Long-context document analysis ## 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-m2.7". - **messages**: array - Chat messages in OpenAI format (system/user/assistant roles). ### Optional - **temperature**: number (default: 0.7) - Sampling temperature (0-2). - **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-m2.7", "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 - Use this OpenRouter id instead of the direct route - the direct MiniMax-M2.7 route (/llm/minimax/v1) is retired and returns 503 ## Documentation https://openrouter.ai/minimax/minimax-m2.7