English
  • 中文
  • English
English
  • 中文
  • English
Market
English
  • 中文
  • English
  1. Chat Models
  • Getting Started
  • Market
  • Chat Models
    • Claude
    • ChatGPT
    • Gemini
    • DeepSeek
    • Grok
    • Qwen
    • Kimi
    • GLM
    • Llama
    • Mistral
    • Cohere
    • Perplexity
    • MiniMax
    • Doubao
    • ERNIE
    • Hunyuan
    • Yi
  • Getting Started
  • Market
  • Image Models
    • Midjourney
    • Google
    • Seedream
    • FLUX
    • Imagen
    • Ideogram
    • Recraft
    • Stable Diffusion
    • DALL-E
    • Qwen Image
    • Hunyuan Image
    • MiniMax Image
    • Kling Image
  • Video Models
    • Sora
    • Veo
    • Kling
    • Runway
    • Pika
    • Luma
    • Hailuo
    • Seedance
    • Wan
    • PixVerse
    • Vidu
    • Hunyuan Video
    • MiniMax Video
    • Stable Video
  • Music Models
    • Suno
    • Udio
    • Stable Audio
    • ElevenLabs
    • Mureka
    • ACE Studio
    • Meta
    • Google Audio
    • Qwen Audio
    • OpenAI Audio
    • MiniMax Speech
    • Fish Audio
  • Chat Models
    • Gemini 3 Pro
    • Gemini 2.5 Pro
    • Gemini 2.5 Flash
    • DeepSeek V3.2
    • DeepSeek R1
    • Grok 4
    • Grok 4 Fast
    • Qwen3 Max
    • Qwen3 Coder
    • Kimi K2
    • GLM-4.6
    • Llama 4 Maverick
    • Mistral Large 3
    • Command A
    • Perplexity Sonar
    • MiniMax M2
    • Doubao Seed 1.6
    • ERNIE 5.0
    • Hunyuan Turbo
    • Yi-Lightning
    • Claude
      • Claude Opus 4.8
      • Claude Opus 4.7
      • Claude Haiku 4.5
      • Claude Fable 5
      • Claude Opus 4.6
      • Claude Sonnet 5
      • Claude Mythos 5
      • Claude Opus 4.6
    • ChatGPT
      • GPT-5.6 Sol
      • GPT-5.6 Terra
      • GPT-5.6 Luna
      • GPT-5.5
      • GPT-5.4 Pro
      • GPT-5.4 mini
      • GPT-5.4 nano
      • GPT-5.2 Codex
      • GPT-5.1 Codex
      • GPT Image 2
      • GPT Image 1.5
      • GPT Image 1 Mini
      • GPT-5.5 Pro
  • Image Models
    • Midjourney V7
    • Midjourney V6.1
    • Nano Banana Pro
    • Nano Banana
    • Gemini Flash Image
    • Seedream 4.5
    • Seedream 4.0
    • FLUX.2 Pro
    • FLUX.1 Kontext
    • Imagen 4
    • Ideogram 3.0
    • Recraft V3
    • Stable Diffusion 3.5
    • DALL-E 3
    • Qwen Image
    • Hunyuan Image
    • MiniMax Image
    • Kling Image
  • Video Models
    • Sora 2
    • Sora Turbo
    • Veo 3.1
    • Veo 3
    • Kling 2.5 Turbo
    • Kling 2.1
    • Runway Gen-4
    • Runway Gen-3 Alpha
    • Pika 2.2
    • Luma Ray 2
    • Hailuo 02
    • Seedance 1.0 Pro
    • Wan 2.2
    • PixVerse V5
    • Vidu Q1
    • Hunyuan Video
    • MiniMax Video-01
    • Stable Video Diffusion
  • Music Models
    • Suno v5
    • Suno v4.5
    • Udio 2
    • Udio 1.5
    • Stable Audio 2.0
    • ElevenLabs Music
    • Mureka O1
    • ACE-Step
    • MusicGen
    • AudioCraft
    • Lyra
    • Qwen Audio
    • GPT-4o Audio
    • MiniMax Speech
    • Fish Speech
  1. Chat Models

MiniMax M2

As low as 3% of official pricing, Start
Example: at 0.2 model rate, pay 10.00 → usable $50.00. Balance is usable across all models. Actual pricing is subject to the website display.

MiniMax M2 API Documentation#

MiniMax M2 is suitable for chat, reasoning, coding, document analysis, and agent workflows. YesAPI.online provides unified authentication, a stable Base URL, and consistent request patterns for production integration.

Base URL#

https://yesapi.online/v1

Authentication#

Model Name#

FieldValue
Modelminimax-m2
API typeChat Completions API

Request Endpoint#

POST https://yesapi.online/v1/chat/completions

Request Parameters#

ParameterTypeRequiredDefaultDescription
modelstringYes-Fixed value: minimax-m2
promptstringNo-Task prompt or instruction
messagesarrayNo-Conversation messages for chat models
streambooleanNofalseEnable streaming for chat models
callback_urlstringNo-Callback URL for async media tasks

Request Example#

Response Example#

{"id":"response_or_task_id","model":"minimax-m2","status":"succeeded","created":1784534400}

Response Fields#

FieldTypeDescription
idstringRequest or task ID
modelstringModel used by the request
statusstringTask status for async APIs
usageobjectUsage details when available
errorobjectError details when the request fails

Python Example#

Node.js Example#

Error Codes#

StatusTypeHow to Fix
400Invalid requestCheck required fields and parameter formats
401UnauthorizedVerify your API key
402Insufficient balanceCheck balance or quota
429Rate limitedReduce concurrency or add retry backoff
500Service errorRetry later and keep the request ID

Best Practices#

Keep prompts explicit and include output requirements.
Store request IDs and business IDs for tracing.
Use callbacks or polling for asynchronous media generation.

Related Links#

API domain: https://yesapi.online
Models: Models
Recharge: Recharge
As low as 3% of official pricing, Start
Example: at 0.2 model rate, pay 10.00 → usable $50.00. Balance is usable across all models. Actual pricing is subject to the website display.
Previous
Perplexity Sonar
Next
Doubao Seed 1.6
Built with