Coding

minimax

Try it

Call the MiniMax text API (MiniMax-M3 through MiniMax-M2) through RunAPI using OpenAI-compatible Chat Completions. Use for MiniMax text chat, streaming, or an existing compatibility client that needs the conditional reference.

What it does

Call the MiniMax text API (MiniMax-M3 through MiniMax-M2) through RunAPI using OpenAI-compatible Chat Completions. Use for MiniMax text chat, streaming, or an existing compatibility client that needs the conditional reference.

The skill document

MiniMax on RunAPI

Use OpenAI-compatible Chat Completions at https://runapi.ai/v1 as the primary protocol. Use the separate Hailuo skill for video generation.

Primary protocol recipe

Authenticate

Set OPENAI_API_KEY to a RunAPI API key and OPENAI_BASE_URL to https://runapi.ai/v1.

Send request

from openai import OpenAI
client = OpenAI(api_key="YOUR_RUNAPI_TOKEN", base_url="https://runapi.ai/v1")
response = client.chat.completions.create(
    model="MiniMax-M3",
    messages=[{"role": "user", "content": "Draft a support response."}],
)
print(response.choices[0].message.content)
print(response.usage)

For long output, set stream=True and stream_options={"include_usage": True}; consume through [DONE].

Verify result

Require final assistant content, finish_reason, and authoritative usage. A stream is complete only after its terminal usage chunk and [DONE].

Stop boundaries

Correct a rejected shape once using the structured error. Retry transport once only before any response or Usage and when replay is safe. Record a terminal error and stop without changing model or protocol.

Compatibility protocols

Load compatibility protocols only when an existing client requires Anthropic Messages or Gemini contents.

Supported models

Model IDUse when
MiniMax-M3Latest MiniMax text chat
MiniMax-M2.7MiniMax M2.7 compatibility
MiniMax-M2.7-highspeedFaster MiniMax M2.7 requests
MiniMax-M2.5MiniMax M2.5 compatibility
MiniMax-M2.5-highspeedFaster MiniMax M2.5 requests
MiniMax-M2.1MiniMax M2.1 compatibility
MiniMax-M2MiniMax M2 compatibility

References

Related skills

MiniMax (minimax.io). Use this skill for ANY MiniMax request — reading, creating, updating, and deleting data. Whenever a task involves MiniMax, use this skill instead of calling the API directly.

2 installs

Generate video from text, reference media, or first and last frames with MiniMax H3 through RunAPI. Use the RunAPI CLI for one-off generation and an SDK for application integration.

Call the MiMo API (mimo-v2.5-pro and mimo-v2.5) through RunAPI using OpenAI-compatible Chat Completions. Use for MiMo text generation, the verified MiMo image subset, streaming, or an existing compatibility client that needs the conditional reference.

1 installs

Call the Qwen text API (qwen3-next-80b-a3b-instruct) through RunAPI using the official OpenAI SDK or compatible clients. Use when the user asks for Qwen text...

1 installs

Real-time MiniMax Token Plan quota dashboard with an opt-in inference-latency probe, running locally on port 9877.

12 installs1 stars

Help users with Feature Request: Support Response API for MiniMax Provider. Use when a user asks for software-and-data, enhancement, feature, request, suppor...

4 installs