⌘K

MiniMax M3

minimax-m3

MiniMax M3 is a coding and agentic LLM with up to 1M-token context, strong tool-use and multi-step reasoning capabilities, and native multimodal understanding. Use model ID `minimax-m3` with the Vtrix Chat Completions endpoint.

Authentication

authorization string required

All APIs require authentication via Bearer Token.

Get API Key:

Visit API Key Management Page to get your API Key.

Usage:

Add to request header:

Authorization: Bearer YOUR_API_KEY

Parameters

model string required

Model ID to use for the request

Value: minimax-m3


messages array required

Array of message objects representing the conversation history

role string required

Message role

Options: user, assistant, system, developer

content string | array required

Message content. Use a text string for text-only requests, or a multimodal content array when image input is supported by the routed model


max_tokens integer

Maximum tokens to generate in the completion

Range: 1 - 65536


temperature number

Sampling temperature to use

Default: 1.0

Range: 0.0 - 2.0


top_p number

Nucleus sampling parameter

Default: 1.0

Range: 0.0 - 1.0


stream boolean

Whether to stream response incrementally

Default: false


response_format object

Format that the model must output. Used for structured outputs when supported by the routed model

type string required

Output format type

Options: text, json_object, json_schema


Response Format

id string

Unique identifier for the completion


object string

Object type, always chat.completion


created integer

Unix timestamp of when the completion was created


model string

The model used for the completion


choices array

Array of completion choices

index integer

Choice index

message object

Generated message

role string

Message role, always assistant

content string

Generated text content

finish_reason string

Reason the model stopped generating


usage object

Token usage statistics

prompt_tokens integer

Number of prompt tokens

completion_tokens integer

Number of generated tokens

total_tokens integer

Total token count