# IteraCompute · minimax/minimax-m4 Model ID: minimax/minimax-m4 Base URL (OpenAI SDK): https://api.iteracompute.com/v1 Authentication: Authorization: Bearer ITERACOMPUTE_API_KEY Content-Type: application/json Use only the customer endpoints below. Request and response formats differ by protocol. An endpoint declaration does not certify every capability. ## Chat Completions POST https://api.iteracompute.com/v1/chat/completions Input: messages Output budget: max_tokens Read result: choices[0].message.content SSE completion: [DONE] Docs: https://iteracompute.com/docs.html#api-reference ## Responses POST https://api.iteracompute.com/v1/responses Input: input Output budget: max_output_tokens Read result: output[] (SDK: output_text) SSE completion: response.completed Docs: https://iteracompute.com/docs.html#responses-api ## Messages POST https://api.iteracompute.com/v1/messages Input: messages; system (top-level) Output budget: max_tokens (required) Read result: content[] SSE completion: message_stop Docs: https://iteracompute.com/docs.html#anthropic-messages ## Parameters Configuration and parameter acceptance do not establish semantic capability. Do not invent undisclosed defaults. Parameter revision: 7e74bcadddab798460e5915f46d5b23a1bfebc3cab9e6b278b08e1ea99fbdf30 Context tokens: 1000000 Maximum output tokens: 262144 Capability tools: configured enabled (see verification scope) Capability vision: configured enabled (see verification scope) Capability json_mode: disabled Capability reasoning: configured enabled (see verification scope) Capability streaming: configured enabled (see verification scope) - n: integer; accepted; min=1; max=1; default=Undisclosed. Number of completions; many routes accept only 1. - tools: array; accepted; min=unknown; max=unknown; default=Undisclosed. Tool definitions; the application executes tool calls and returns results. - top_p: number; accepted, ignored upstream; min=0 (exclusive); max=1; default=not applicable. Nucleus sampling probability threshold. - stream: boolean; accepted; min=unknown; max=unknown; default=Undisclosed. Enable SSE streaming; completion markers depend on the protocol. - max_tokens: integer; accepted; min=1; max=262144; default=Undisclosed. Output token budget; includes reasoning where applicable. Chat Completions / Messages. - temperature: number; accepted, ignored upstream; min=0; max=2; default=not applicable. Sampling randomness. An accepted but ignored value does not control generation. - tool_choice: any; accepted; min=unknown; max=unknown; default=Undisclosed. Choose whether and which tool to call; allowed shapes vary by protocol. - cache_control: object; unsupported; min=unknown; max=unknown; default=not applicable. Cache policy on a message, content block, system block or tool definition. - response_format: object; unsupported; min=unknown; max=unknown; default=not applicable. Text: Chat output format. Images: b64_json only; not text JSON mode. - presence_penalty: number; unsupported; min=unknown; max=unknown; default=not applicable. Penalize tokens already present in the generated text. - frequency_penalty: number; unsupported; min=unknown; max=unknown; default=not applicable. Penalize repeated tokens according to frequency. - max_output_tokens: integer; accepted; min=1; max=262144; default=Undisclosed. Responses output budget. Chat acceptance must be checked separately. - max_completion_tokens: integer; accepted; min=1; max=262144; default=Undisclosed. Alternative Chat output budget; use only when accepted by this model. - reasoning_effort: enum; accepted; values=["low","medium","high","xhigh","max"]; default=max. Chat reasoning effort; use the model's listed values, not another protocol's shape. ## Chat Completions example · JSON body ```json { "model": "minimax/minimax-m4", "messages": [ { "role": "user", "content": "Reply OK" } ], "max_tokens": 256, "reasoning_effort": "low" } ``` ## Responses example · JSON body ```json { "model": "minimax/minimax-m4", "input": "Reply OK", "max_output_tokens": 256, "reasoning": { "effort": "low" } } ``` ## Messages example · JSON body ```json { "model": "minimax/minimax-m4", "max_tokens": 256, "messages": [ { "role": "user", "content": "Reply OK" } ], "output_config": { "effort": "low" } } ``` ## References Model catalog: https://iteracompute.com/models/ Current prices and billing: https://iteracompute.com/pricing/ Documentation index: https://iteracompute.com/llms.txt Unknown prices are not zero. Account and subscription limits also apply. Never include a real API key in an LLM prompt or client-side code.