YiduoChan provides an OpenAI-compatible API for MiniMax text models and an Anthropic-compatible interface for Claude Code. Use your own API key and a prepaid USD balance, with charges based on actual usage.
40% off list pricing for MiniMax text models in the default group. Select the token group; no coupon is required and discounts do not stack.
These production rates were checked on . Units are USD per million tokens, rounded to six decimal places. Check the live model pricing page before use.
MiniMax-M4 list and default-group rates
Token category
USD list price
Default: 40% off
Input (cache miss)
$0.745434
$0.447261
Output
$2.981737
$1.789042
Cache reads
$0.044726
$0.026836
Our USD list rates were configured from RMB rates of ¥5 input, ¥20 output and ¥0.30 cache reads, at a fixed conversion of 1 USD = 6.7075 CNY. This is not a live foreign-exchange quote. Cache reads have a separate rate and are excluded from ordinary input charges. Reasoning tokens also consume output allowance.
Store it locally in YIDUOCHAN_API_KEY. Do not embed it in public browser code or a Git repository.
Set the base URL to https://api.yiduochan.com/v1 and the model ID to MiniMax-M4.
curl https://api.yiduochan.com/v1/chat/completions \
-H "Authorization: Bearer $YIDUOCHAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"MiniMax-M4","stream":true,"messages":[{"role":"user","content":"Introduce yourself in one sentence."}]}'
This streaming example returns SSE events. Use the same URL for the OpenAI SDK's base_url. Protocol compatibility does not mean every OpenAI feature is supported; validate your messages, tools and streaming workflow before production use.
Set ANTHROPIC_BASE_URL to the origin https://api.yiduochan.com. Do not append /v1/messages here; the client builds that request path.
ANTHROPIC_BASE_URL=https://api.yiduochan.com \
ANTHROPIC_AUTH_TOKEN="$YIDUOCHAN_API_KEY" \
ANTHROPIC_MODEL=MiniMax-M4 \
claude
These variables apply only to this launch. Confirm that the selected model is MiniMax-M4. Third-party model capabilities differ from Claude models; client features and upstream limits still apply. Read the complete Claude Code guide.
A coding experiment you can inspect
Lantern Crossing: a prompt, a playable 3D game, and the limitations
One completed M4 request at max effort took 22 minutes 30.7 seconds and used 174,000 tokens. The original HTML needed three object-reference corrections before it ran. The repaired version passed a roughly 33-second playthrough.
This experiment called MiniMax upstream directly; it is not a gateway latency or billing benchmark. The record includes failed attempts, token definitions and repair details. Read the experiment · Play the game
Questions before you connect
Is YiduoChan the official MiniMax service?
No. YiduoChan is an independent relay built on new-api, providing accounts, keys, balances and usage records. MiniMax supplies the models; consult its documentation for model capabilities.
Does 40% off apply to every model?
No. The current 0.6 multiplier applies to MiniMax text models in the default group. Speech, video and other models use their own available groups and rates.
How do I add credits?
Sign in to the wallet for currently available payment methods and minimum amounts. A visible payment option is not proof of successful payment; check the confirmed order and credited balance. API calls draw on prepaid credits.
What should I know about long reasoning requests?
High effort can increase reasoning tokens and waiting time without guaranteeing a better final answer. The entry point uses Cloudflare, so long periods without a response may still time out. Prefer streaming and suitable client timeouts; streaming does not guarantee avoidance of every proxy or upstream limit.
Maintained by YiduoChan; last checked December 4, 2026. Prices come from the public gateway configuration. See the MiniMax model documentation and Anthropic-compatible API reference for provider capabilities. Check live prices and your account group before use.