# Qwen3.8 Max - Core.Today AI API > Alibaba's Qwen3.8 Max served through the OpenRouter aggregator - the flagship of the Qwen3.8 series and GA successor to Qwen3.8 Max Preview. A multimodal reasoning model for complex reasoning, visual understanding, and agentic work with a 1M-token context, billed at OpenRouter's actual usage cost. - **Provider**: Alibaba Qwen - **Model ID**: qwen/qwen3.8-max - **Category**: LLM - **Credits**: 7 per 1K tokens (avg, estimate) - **Speed**: Medium - **Quality**: Ultra ## Model Specifications - **Context Window**: 1M tokens - **Max Output**: 131K 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**: 3,716 credits ($2.48) - **Output Tokens**: 11,148 credits ($7.43) - **Cached Tokens**: 464.5 credits ($0.31) ## Features - 1M-token context window with up to 131K output tokens - Multimodal input (text, image, video) with reasoning mode - 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 - Complex multi-step reasoning and analysis - Visual understanding over images and video frames - Long-horizon agentic workflows with tool use ## 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. "qwen/qwen3.8-max". - **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": "qwen/qwen3.8-max", "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 - Reasoning tokens count as output at the higher rate - set max_tokens generously for hard problems, and consider qwen/qwen3.8-27b for cheaper, lighter tasks ## Documentation https://openrouter.ai/qwen/qwen3.8-max