Skip to main content
Model ID

API Usage

MiniMax-M2.5 supports two API formats:
  • OpenAI-compatible: /v1/chat/completions endpoint
  • Anthropic-compatible: /v1/messages endpoint (with extended thinking support)

API Examples

OpenAI-Compatible Endpoint

Generate a model response using the chat completions endpoint.

Shell

Python

Anthropic-Compatible Endpoint (with Extended Thinking)

The /v1/messages endpoint provides access to the model’s reasoning process through the “thinking” content block. You can also use the Anthropic SDK directly by configuring the base URL.

Shell (Direct API)

Shell (with Streaming)

Python (with Streaming)