APIKO
Text Series

MiniMax M3.1 Flash

  • MiniMax M3.1 Flash accepts text and images through the OpenAI-compatible Chat Completions API. Supports streaming and tool calls.
  • Use image_url for HTTPS image URLs and image data URLs. APIKO returns HTTP 400 unsupported_input_modality for native video input. Cache hits are counted in usage.prompt_tokens_details.cached_tokens.
  • See the MiniMax parameter reference for the vendor's reasoning options. Their effect on this APIKO route is unverified.
  • See MiniMax M3.1 Flash API pricing on APIKO.
  • Base URL https://api.apiko.app/v1. The model list below is what the catalog sells today; GET /v1/models returns the models your key can call.
POST
/
v1
/
chat
/
completions
curl https://api.apiko.app/v1/chat/completions \
  -H "Authorization: Bearer $APIKO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m3.1-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
{
  "id": "chatcmpl_example",
  "object": "chat.completion",
  "model": "minimax-m3.1-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello!"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 2,
    "total_tokens": 14
  }
}

Authorizations

Authorization
stringrequired
Send Authorization: Bearer <API_KEY>. Create keys in Console → API Keys.
Routes
string
  • POST /v1/chat/completions — OpenAI-compatible Chat Completions; JSON by default, SSE with "stream": true

Body

application/json
model
enum<string>required
Public model id. Use it exactly as listed.
Available options: minimax-m3.1-flash
Example:"minimax-m3.1-flash"
messages
object[]required
Conversation messages in the Chat Completions format.
tools
object[]
List function definitions with their parameter schemas. When the response contains tool_calls, append the full assistant message, run the function and send its result as a tool message with the corresponding tool_call_id.
stream
booleandefault:false
Set to true for Server-Sent Events. On Chat Completions, add "stream_options": {"include_usage": true} to receive token usage in the final event.
other fields
object
Tools, response formats, temperature and reasoning controls follow the upstream API of the route you call.
Use max_tokens to limit output including thinking. A small limit can leave visible text empty. max_completion_tokens exceeded the requested limit on this route in APIKO tests.

Response

200 - application/json
JSON response
object
Chat Completions returns choices[0].message.content and usage.
Thinking, when returned, is in choices[0].message.reasoning_content.
model in the response may be a versioned upstream name rather than the id you sent; log and reconcile by the id you sent.
SSE response
text/event-stream
For Chat Completions streams, read events until data: [DONE] and append choices[0].delta.content from each event whose choices is non-empty. With include_usage, usage arrives in a separate final event after the one with finish_reason, and that event has an empty choices.
Thinking streams in delta.reasoning_content, often before any delta.content arrives.