{"id":"minimax/m3.1-flash","object":"model","created":1796390231,"owned_by":"minimax","name":"MiniMax M3.1 Flash","modality":"text","capabilities":["chat"],"context_window":1000000,"max_output_tokens":131072,"pricing":{"input_per_million":0.15,"output_per_million":0.6,"billing_unit":"token"},"tier":"frontier","is_open_weight":true,"schema":{"endpoint":{"method":"POST","path":"/v1/chat/completions","url":"https://api.aigateway.sh/v1/chat/completions","content_type":"application/json"},"quirks":{},"reasoning_effort":"reasoning_effort has no effect on this model: it exposes no request-level thinking control.","request_example":"{\n  \"model\": \"minimax/m3.1-flash\",\n  \"messages\": [\n    { \"role\": \"system\", \"content\": \"You are a helpful assistant.\" },\n    { \"role\": \"user\",   \"content\": \"Hello!\" }\n  ],\n  \"temperature\": 0.7,\n  \"top_p\": 0.95,\n  \"max_tokens\": 1024,\n  // reasoning_effort has no effect on this model: it exposes no request-level thinking control.\n  \"stream\": false\n\n}","response_example":"{\n  \"id\": \"chatcmpl-abc123\",\n  \"object\": \"chat.completion\",\n  \"created\": 1776947082,\n  \"model\": \"minimax/m3.1-flash\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"Hello! How can I help you today?\"\n      },\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 24,\n    \"completion_tokens\": 12,\n    \"total_tokens\": 36\n  }\n}","streaming_example":"// 1. Role announcement (first chunk):\ndata: {\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\n// 2. Content chunks (final answer):\ndata: {\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hello\"},\"finish_reason\":null}]}\ndata: {\"choices\":[{\"index\":0,\"delta\":{\"content\":\"!\"},\"finish_reason\":null}]}\n\n// Finish chunk:\ndata: {\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\n// Terminator:\ndata: [DONE]","sdk":{"python":"# pip install openai\nfrom openai import OpenAI\n\nclient = OpenAI(\n    base_url=\"https://api.aigateway.sh/v1\",\n    api_key=\"sk-aig-...\",\n)\n\nstream = client.chat.completions.create(\n    model=\"minimax/m3.1-flash\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello!\"}],\n    stream=True,\n)\nfor chunk in stream:\n    print(chunk.choices[0].delta.content or \"\", end=\"\", flush=True)","typescript":"// pnpm add openai\nimport OpenAI from \"openai\";\n\nconst client = new OpenAI({\n  baseURL: \"https://api.aigateway.sh/v1\",\n  apiKey: process.env.AIG_KEY,\n});\n\nconst stream = await client.chat.completions.create({\n  model: \"minimax/m3.1-flash\",\n  messages: [{ role: \"user\", content: \"Hello!\" }],\n  stream: true,\n});\nfor await (const chunk of stream) {\n  process.stdout.write(chunk.choices[0]?.delta?.content ?? \"\");\n}","curl":"curl https://api.aigateway.sh/v1/chat/completions \\\n  -H \"Authorization: Bearer $AIGATEWAY_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"minimax/m3.1-flash\",\n    \"messages\": [{\"role\":\"user\",\"content\":\"Hello!\"}],\n    \"stream\": true\n  }'"}}}