Chat completions
POSThttps://api.minih3.dev/v1/chat/completions
This call is billed to your account. Price: Per 1M tokens: M3.1 Flash input $0.0417, output $0.1668; Gemini 3.8 Flash input $0.6, output $3; Grok 4.7 input $2, output $6 (doubled above 200K context)
Purpose: text chat, compatible with OpenAI Chat Completions. The public text models are minimax-m3.1-flash, gemini-3.8-flash-high and grok-4.7; put one in model. grok-4.6 was retired on 2026-11-16; use grok-4.7.
Billing: by the tokens you actually use; prices are above and on /catalog. Grok inputs above 200K tokens are billed at the long-context rate (doubled). Cached input has a lower rate, applied to what actually hits the cache.
Notes: stream: true is supported.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
model | body | string | yes | -minimax-m3.1-flashgemini-3.8-flash-highgrok-4.7 |
messages | body | array<object> | yes | - |
stream | body | boolean | no | - |
max_tokens | body | integer | no | - |
temperature | body | number | no | - |
Code samples
curl -X POST "https://api.minih3.dev/v1/chat/completions" \
-H "Authorization: Bearer $MINIH3_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-m3.1-flash",
"messages": [
{
"role": "user",
"content": "用一句话介绍 MiniH3"
}
]
}'Try it
Kept in this browser tab only (sessionStorage) and sent straight to api.minih3.dev; it never reaches this site.
Enter your key to send.Responses
200
An OpenAI-style completion
400
Error
401
Error
403
Error
429
Error