{
"id": "066b367ba949a58a9d6829b4bf8cbcd4",
"type": "message",
"role": "assistant",
"model": "MiniMax-M4",
"content": [
{
"thinking": "The user is asking which is bigger, 9.11 or 9.9.\n\n9.11 vs 9.9\n\n9.9 is greater than 9.11.\n\nTo compare: 9.11 = 9.11 and 9.9 = 9.90\n\n9.90 > 9.11, so 9.9 is bigger.",
"signature": "6d0315c818f9664ff185dabaa22cd89f2bf28a3a52122095bce23d905471ec5f",
"type": "thinking"
},
{
"text": "**9.9 is bigger than 9.11.**\n\nTo compare decimals, it helps to write them with the same number of decimal places:\n- 9.11 = 9.11\n- 9.9 = 9.90\n\nSince 9.90 > 9.11, **9.9 is larger**.",
"type": "text"
}
],
"usage": {
"input_tokens": 13,
"output_tokens": 149,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 159
},
"stop_reason": "end_turn"
}
Anthropic Messages API
Create Message
Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.
{
"id": "066b367ba949a58a9d6829b4bf8cbcd4",
"type": "message",
"role": "assistant",
"model": "MiniMax-M4",
"content": [
{
"thinking": "The user is asking which is bigger, 9.11 or 9.9.\n\n9.11 vs 9.9\n\n9.9 is greater than 9.11.\n\nTo compare: 9.11 = 9.11 and 9.9 = 9.90\n\n9.90 > 9.11, so 9.9 is bigger.",
"signature": "6d0315c818f9664ff185dabaa22cd89f2bf28a3a52122095bce23d905471ec5f",
"type": "thinking"
},
{
"text": "**9.9 is bigger than 9.11.**\n\nTo compare decimals, it helps to write them with the same number of decimal places:\n- 9.11 = 9.11\n- 9.9 = 9.90\n\nSince 9.90 > 9.11, **9.9 is larger**.",
"type": "text"
}
],
"usage": {
"input_tokens": 13,
"output_tokens": 149,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 159
},
"stop_reason": "end_turn"
}
Authorizations
bearerAuthapiKeyAuth
Authorization
string
header
required
Bearer API Key auth. Send Authorization: Bearer <API_KEY>. If Authorization and x-api-key are both present, Authorization takes precedence.
Headers
Content-Type
enum<string>
default:application/json
required
Media type of the request body, should be set to application/json to ensure JSON format
Available options:
application/json
Body
application/json
model
enum<string>
required
Model ID. Native support for text, image, and video input, alongside tool use and thinking content blocks. MiniMax-M4 and MiniMax-M3.1-Flash always think and support tunable thinking depth via output_config.effort.
Available options:
MiniMax-M4,
MiniMax-M3.1-Flash,
MiniMax-M3
messages
object[]
required
Conversation history. Supports text, image, video, tool use, tool result, and thinking content blocks.
Show child attributes
system
stringobject[]
Set the role and behavior of the model.
stream
boolean
default:false
Whether to use streaming output, defaults to false. When set to true, the response will be returned in chunks
max_tokens
integer<int64>
Specifies the upper limit for generated content length (in tokens).
MiniMax-M4: recommended value 131072 (128K), maximum 262144 (256K).
MiniMax-M3.1-Flash, MiniMax-M3: recommended value 131072 (128K), maximum 524288 (512K).
Content exceeding the limit will be truncated. If stop_reason is max_tokens, try increasing this value.
Required range: x >= 1
temperature
number<double>
default:1
Fixed at 1; any value passed has no effect.
top_p
number<double>
default:0.95
Fixed at 0.95; any value passed has no effect. If passed, the value must be within (0, 1].
tools
object[]
Tool definitions for Anthropic-compatible tool use.
Show child attributes
tool_choice
object
Tool selection strategy. Only auto is supported; the model decides whether to call tools.
Show child attributes
thinking
object
Controls thinking behavior. The default depends on the model, so no schema-level default is declared.
MiniMax-M4, MiniMax-M3.1-Flash: always thinks. If type is sent it must be adaptive; disabled returns HTTP 400. Use output_config.effort to tune thinking depth.
MiniMax-M3: thinking is off when thinking is omitted; send adaptive to enable it and return thinking blocks.
Show child attributes
output_config
object
Output configuration. Use effort to tune thinking depth for MiniMax-M4 and MiniMax-M3.1-Flash; MiniMax-M3 does not support tuning thinking depth.
Show child attributes
metadata
object
Request metadata. user_id is recommended for end-user-level aggregation, rate limiting, and billing analysis.
Show child attributes
Response
id
string
Unique ID of this response
type
enum<string>
Object type, fixed as message
Available options:
message
role
enum<string>
Role, fixed as assistant
Available options:
assistant
model
string
Model ID used for this request
content
object[]
List of response content blocks
Show child attributes
stop_reason
enum<string>
Reason for stopping generation:
end_turn: Model ended naturally
max_tokens: Reached max_tokens limit
tool_use: Model requested tool use
pause_turn: A server tool (such as web_search) reached its usage limit and the turn was paused. Append the returned content as an assistant message and send the request again to continue
Available options:
end_turn,
max_tokens,
tool_use,
pause_turn
usage
object
Token usage for this request, including prompt cache usage when applicable.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MiniMax API Docs","colors":{"primary":"#181E25","dark":"#181E25"},"logo":{"light":"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/light.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=9c99bb2678d62388d8a4e7cce1750858","dark":"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/dark.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=e62ef6e36d7512de91c8c48322614594","href":"https://minimax.io"},"favicon":"https://mintcdn.com/minimax-cac98058/3KE0RwwD41Lh3xt2/favicon.ico?fit=max\u0026auto=format\u0026n=3KE0RwwD41Lh3xt2\u0026q=85\u0026s=6a58247013972686c0a551c6c6b98d66","api":{"examples":{"prefill":true}},"appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"https://platform.minimax.io/contact-sales","label":"Contact Sales"}],"primary":{"type":"button","label":"Console","href":"https://platform.minimax.io/console/home"}},"footer":{"socials":{"discord":"https://www.minimax.io/discord","x":"https://x.com/MiniMax_AI","linkedin":"https://www.linkedin.com/company/minimax-ai","github":"https://github.com/MiniMax-AI"},"links":[{"header":"Model","items":[{"label":"MiniMax M3.1 Flash","href":"https://www.minimax.io/blog/minimax-m31f"},{"label":"MiniMax M3","href":"https://www.minimax.io/blog/minimax-m3"},{"label":"MiniMax H3","href":"https://www.minimax.io/blog/minimax-h3"},{"label":"MiniMax Speech 2.8","href":"https://www.minimax.io/news/minimax-speech-28"},{"label":"MiniMax Music 3.0","href":"https://www.minimax.io/blog/minimax-music-3-0-next-generation-open-weights-production-ready-versatile-music-model"}]},{"header":"Product","items":[{"label":"MiniMax Code","href":"https://agent.minimax.io/"},{"label":"MiniMax Design","href":"https://design.minimax.io/"},{"label":"MiniMax Audio","href":"https://www.minimax.io/audio"}]},{"header":"API Platform","items":[{"label":"Developer Docs","href":"https://platform.minimax.io/docs/guides/models-intro"},{"label":"M Plan Subscription","href":"https://www.minimax.io/m-plan"},{"label":"Pricing","href":"https://platform.minimax.io/docs/pricing/overview"},{"label":"Console Login","href":"https://platform.minimax.io/console/home"},{"label":"Status","href":"https://status.minimax.io/"}]},{"header":"Company","items":[{"label":"About Us","href":"https://www.minimax.io/about"},{"label":"News","href":"https://www.minimax.io/news"},{"label":"Investor Relations","href":"https://ir.minimax.io/"},{"label":"Careers","href":"https://www.minimax.io/careers"}]}]},"seo":{"metatags":{"title":"MiniMax API Docs","description":"MiniMax Open Platform developer documentation with model API references, integration guides, tool setup, and billing information for building AI applications.","charset":"UTF-8","canonical":"https://platform.minimax.io/docs","viewport":"width=device-width, initial-scale=1.0"},"indexing":"all"},"fonts":{"family":"DM Sans"},"icons":{"library":"lucide"},"integrations":{"telemetry":{"enabled":true},"cookies":{"key":"minimax_docs_feedback_consent","value":"v1:granted"}},"banner":{"content":"MiniMax M4 Flagship Released! [Learn more →](/docs/guides/text-generation)","dismissible":true},"contextual":{"options":["copy","view","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"minimax-cac98058","hasAudioNarration":false,"actualSubdomain":"minimax-cac98058","customDomains":["platform.minimax.io"],"gitSource":{"type":"github","owner":"minimax-ai-dev","repo":"docs","deployBranch":"main","contentDirectory":"packages/docs-en","isPrivate":true,"mountPath":"","label":"","_id":"6b10be7f9ffae5051c404092"},"feedback":{"issues":false,"thumbs":true,"edits":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1285976bf89f5daeb325fc","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API","count":49},{"language":"default","tag":"Developer Guides","count":33},{"language":"default","tag":"Use Guides","count":23},{"language":"default","tag":"M Plan","count":20},{"language":"default","tag":"Speech","count":17},{"language":"default","tag":"LLM","count":14},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Tools","count":9},{"language":"default","tag":"Legacy APIs","count":8},{"language":"default","tag":"Video","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableAskAiSearchBar":false},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".audio-container{height:50px;margin:16px 0}.video-agent-templates{width:300px;height:180px;object-fit:cover}video{border-radius:12px}table{overflow-x:auto}th,td{vertical-align:middle!important}td .video-agent-templates{margin:0}#navbar .docs-platform-brand{display:inline-flex;align-items:center;flex-shrink:0}#navbar .docs-platform-name{margin-left:20px;padding-left:20px;border-left:1px solid #e5e7eb;color:#6b7280;font-size:14px;font-weight:400;line-height:20px;white-space:nowrap}.dark #navbar .docs-platform-name{border-color:#374151;color:#9ca3af}#topbar-cta-button>a>span,#navbar .docs-console-mobile>span{background-color:#242424;border-radius:8px}#topbar-cta-button>a:hover>span,#navbar .docs-console-mobile:hover>span{background-color:#3a3a3a}#navbar .docs-console-mobile{display:none}#navbar nav:has(#topbar-cta-button){margin-right:0}#navbar .navbar-link>a[href*=\"/contact-sales\"]{display:inline-flex;align-items:center;height:36px;padding:0 14px;border:1px solid #e5e7eb;border-radius:8px;background-color:#fff;color:#181e25;font-weight:500;white-space:nowrap}#navbar .navbar-link>a[href*=\"/contact-sales\"]:hover{border-color:#d1d5db;background-color:#f9fafb}.dark #navbar .navbar-link>a[href*=\"/contact-sales\"]{border-color:#374151;background-color:transparent;color:#fff}.dark #navbar .navbar-link>a[href*=\"/contact-sales\"]:hover{border-color:#4b5563;background-color:rgba(255, 255, 255, 0.06)}#navbar .navbar-link:has(>a[href*=\"/contact-sales\"]){margin-right:0;margin-inline-end:0}#navbar .navbar-link:has(>a[href*=\"/contact-sales\"])~#topbar-cta-button{margin-left:12px;margin-inline-start:12px}@media (max-width: 1023px){#navbar .docs-platform-name{margin-left:12px;padding-left:12px;font-size:12px}#navbar .docs-console-mobile{position:relative;display:inline-flex;align-items:center;flex-shrink:0;padding:8px 10px;font-size:12px;font-weight:500;white-space:nowrap}}@media (max-width: 480px){#navbar .docs-topbar-row{column-gap:4px}#navbar .docs-platform-brand .nav-logo{width:80px;height:auto}#navbar .docs-platform-name{max-width:60px;margin-left:8px;padding-left:8px;font-size:11px;line-height:14px;white-space:normal}#navbar .docs-console-mobile{padding:8px;font-size:11px}#navbar :has(>#search-bar-entry-mobile){gap:6px}#navbar #search-bar-entry-mobile{width:24px}}#content-container p{font-size:1rem;line-height:1.5rem}.eyebrow{text-transform:uppercase}.method-nav-pill>span{font-weight:400}*:has(>.method-pill){border:none}.navbar-link>a{font-weight:400}.nav-tabs-item{font-weight:400}.nav-tabs-item.text-gray-800{font-weight:500}*:has(>.navbar-link)>.navbar-link:first-child>a{color:#181e25;font-weight:500}.dark *:has(>.navbar-link)>.navbar-link:first-child>a{color:#fff}#navbar,#sidebar{letter-spacing:0.02em}.callout{margin-top:2rem;margin-bottom:2rem}#content:has(>.model-retirement-notice:first-child){margin-top:1rem}.callout.model-retirement-notice{margin-top:0}.mplan-tool-intro{margin:16px 0;padding:12px 16px;border-left:4px solid #d97706;border-radius:6px;background:#fffbeb}.dark .mplan-tool-intro{background:rgba(120, 53, 15, 0.22);color:#e5e7eb}.dark .mplan-tool-intro a{color:#fbbf24!important;border-bottom-color:#fbbf24!important}.card span{line-height:1.4rem;margin-top:8px!important}#banner a{border-bottom-color:#181E25;color:#FFF}#footer a[href=\"mailto:api@minimax.io\"] svg{-webkit-mask-image:url('https://filecdn.minimax.chat/public/45f6ad6e-f42e-45ed-938e-7de67bfd367f.svg')!important;mask-image:url('https://filecdn.minimax.chat/public/45f6ad6e-f42e-45ed-938e-7de67bfd367f.svg')!important}#sidebar:has(a[href$=\"/pricing/overview\"]),#sidebar:has(a[href$=\"/pricing/overview/\"]){visibility:hidden}.pricing-sidebar-navigation{display:none}@media (min-width: 1024px){#content:has([data-pricing-sidebar]){container-type:normal;contain:none;isolation:auto}.pricing-sidebar-navigation{--pricing-sidebar-top: calc(var(--mintlify-slot-header-height, calc(4rem + var(--topbar-tabs-height, 3rem))) + var(--banner-height, 0px));display:block;position:fixed;z-index:20;top:var(--pricing-sidebar-top);left:max(2rem, calc((100vw - 92rem) / 2 + 2rem));width:var(--sidebar-width, 18rem);height:calc(100dvh - var(--pricing-sidebar-top));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:40px 24px 32px 0;margin:0}}[data-pricing-overview-active] [data-pricing-original]{display:none!important}.pricing-anchor-navigation{font-size:14px;line-height:1.5}.pricing-navigation-group+.pricing-navigation-group{margin-top:28px}.pricing-navigation-title{display:block;margin:0 0 10px;padding-left:16px;color:#111827;font-size:inherit;font-weight:600;line-height:1.5}.pricing-anchor-navigation .pricing-anchor-link{display:block;padding:6px 12px 6px 16px;margin:1px 0;border:0;border-radius:12px;color:#374151;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}.pricing-anchor-navigation .pricing-anchor-link:hover{background:rgba(75, 85, 99, .05);color:#111827}.pricing-anchor-navigation .pricing-anchor-link[aria-current=\"location\"]{background:rgba(24, 30, 37, .075);color:#181e25;font-weight:600}.pricing-anchor-link:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.pricing-section-toc{font-size:14px;line-height:1.5}.pricing-toc-title{margin-bottom:12px;color:#374151;font-weight:500}.pricing-section-toc .pricing-anchor-link{display:block;border:0;padding:5px 0 5px 12px;border-left:1px solid #e5e7eb;color:#6b7280;text-decoration:none;overflow-wrap:anywhere}.pricing-section-toc .pricing-anchor-link[aria-current=\"location\"]{border-left:2px solid #181e25;color:#181e25;font-weight:500}.pricing-mobile-navigation{display:none}#pricing-document .pricing-section,#pricing-document .pricing-section [id]{scroll-margin-top:10rem}.dark .pricing-navigation-title,.dark .pricing-toc-title{color:#e5e7eb}.dark .pricing-anchor-navigation .pricing-anchor-link,.dark .pricing-section-toc .pricing-anchor-link{color:#9ca3af}.dark .pricing-anchor-navigation .pricing-anchor-link:hover{background:rgba(229, 231, 235, .05);color:#d1d5db}.dark .pricing-anchor-navigation .pricing-anchor-link[aria-current=\"location\"]{background:rgba(229, 231, 235, .1);color:#f3f4f6}.dark .pricing-section-toc .pricing-anchor-link{border-left-color:#374151}.dark .pricing-section-toc .pricing-anchor-link[aria-current=\"location\"]{border-left-color:#e5e7eb;color:#e5e7eb}@media (max-width: 1023px){#pricing-document .pricing-mobile-navigation{display:block;margin:0 0 24px}#pricing-document .pricing-mobile-navigation>.accordion{margin-bottom:0}#pricing-document .pricing-mobile-navigation .pricing-anchor-navigation{max-height:min(65vh, 560px);overflow-y:auto;padding:8px 12px 20px;overscroll-behavior:contain}}#pricing-document>.pricing-section{margin-top:56px;padding-top:40px;border-top:1px solid #e5e7eb}#pricing-document>.pricing-overview+.pricing-section{margin-top:36px;border-top:0}#pricing-document>.pricing-section>h2:first-child{margin-top:0}#pricing-document .pricing-overview>span[data-as=\"p\"],#pricing-document .pricing-section>span[data-as=\"p\"]{display:block;margin:1em 0}.dark #pricing-document>.pricing-section{border-color:#374151}@media (max-width: 767px){#pricing-document>.pricing-section{margin-top:40px;padding-top:28px}}#pricing-document section[id=\"models/text\"] table{table-layout:fixed;width:100%}#pricing-document section[id=\"models/text\"] table th:first-child,#pricing-document section[id=\"models/text\"] table td:first-child{width:32%}#pricing-document section[id=\"models/video\"] table{table-layout:fixed;width:100%}#pricing-document section[id=\"models/video\"] table th:first-child,#pricing-document section[id=\"models/video\"] table td:first-child{width:30%}#pricing-document .video-price-table,#pricing-document .video-task-table{display:table;table-layout:fixed;width:100%}#pricing-document .video-price-table td:has(>strong)+td,#pricing-document .video-price-table tbody tr:not(:has(strong))>td:first-child{padding-left:24px}#pricing-document .video-price-table thead th:nth-child(2){padding-left:24px}.restricted-doc{--restricted-border: rgba(15, 23, 42, .12);--restricted-border-strong: rgba(15, 23, 42, .18);--restricted-muted: #64748b;--restricted-surface: rgba(15, 23, 42, .035);--restricted-surface-hover: rgba(15, 23, 42, .055);--restricted-link: #2563eb;color:inherit}.dark .restricted-doc{--restricted-border: rgba(255, 255, 255, .12);--restricted-border-strong: rgba(255, 255, 255, .18);--restricted-muted: #94a3b8;--restricted-surface: rgba(255, 255, 255, .045);--restricted-surface-hover: rgba(255, 255, 255, .07);--restricted-link: #60a5fa}.restricted-doc-loading{min-height:12rem;display:flex;align-items:center;justify-content:center}.restricted-doc-spinner{width:1.75rem;height:1.75rem;border:2px solid rgba(98,112,132,.24);border-top-color:#627084;border-radius:50%;animation:restricted-doc-spin .75s linear infinite}@keyframes restricted-doc-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.restricted-doc-spinner{animation-duration:1.5s}}.restricted-doc>h1{margin:0 0 .75rem;font-size:2.25rem;line-height:1.2;font-weight:700;letter-spacing:-.025em}.restricted-doc-description{margin:0 0 2rem;color:var(--restricted-muted);font-size:1.05rem;line-height:1.7}.restricted-doc h2,.restricted-doc h3,.restricted-doc h4{scroll-margin-top:6rem;font-weight:650;letter-spacing:-.015em}.restricted-doc h2{margin:2.75rem 0 1rem;padding-top:.25rem;font-size:1.65rem;line-height:1.35}.restricted-doc h3{margin:2.1rem 0 .75rem;font-size:1.3rem;line-height:1.4}.restricted-doc h4{margin:1.6rem 0 .5rem;font-size:1.1rem;line-height:1.45}.restricted-doc>p{margin:1rem 0}.restricted-doc p,.restricted-doc li{line-height:1.75}.restricted-doc ul,.restricted-doc ol{margin:1rem 0;padding-left:1.5rem}.restricted-doc li{padding-left:.15rem}.restricted-doc li+li{margin-top:.3rem}.restricted-doc li>p{margin:.25rem 0}.restricted-doc a{color:var(--restricted-link);text-decoration:underline;text-decoration-color:color-mix(in srgb, var(--restricted-link) 35%, transparent);text-underline-offset:.2em}.restricted-doc a:hover{text-decoration-color:currentColor}.restricted-doc :not(pre)>code{padding:.15rem .4rem;border:1px solid var(--restricted-border);border-radius:.35rem;background:var(--restricted-surface);font-size:.875em;font-weight:500}.restricted-doc-table-wrap{max-width:100%;margin:1.5rem 0;overflow-x:auto;border:1px solid var(--restricted-border-strong);border-radius:.75rem}.restricted-doc table{width:100%;border-collapse:separate;border-spacing:0;font-size:.925rem;line-height:1.55}.restricted-doc th,.restricted-doc td{min-width:7rem;padding:.75rem 1rem;border-bottom:1px solid var(--restricted-border);vertical-align:top;text-align:left}.restricted-doc th+th,.restricted-doc td+td{border-left:1px solid var(--restricted-border)}.restricted-doc th{background:var(--restricted-surface);font-weight:600;color:inherit}.restricted-doc tbody tr{transition:background-color .15s ease}.restricted-doc tbody tr:hover{background:var(--restricted-surface-hover)}.restricted-doc tr:last-child td{border-bottom:0}.restricted-doc-code{position:relative;margin:1.5rem 0;border:1px solid rgba(255,255,255,.09);border-radius:.75rem;background:#0f172a;color:#e5e7eb;box-shadow:0 1px 2px rgba(15,23,42,.08);overflow:hidden}.restricted-doc-code pre{margin:0;padding:1.1rem 1.2rem;overflow-x:auto;background:transparent}.restricted-doc-code code{display:block;min-width:max-content;padding-right:3.5rem;font-size:.85rem;line-height:1.7;white-space:pre;tab-size:2}.restricted-doc-code button{position:absolute;z-index:1;top:.65rem;right:.65rem;padding:.3rem .6rem;border:1px solid rgba(255,255,255,.16);border-radius:.4rem;background:rgba(30,41,59,.92);color:#cbd5e1;font-size:.75rem;line-height:1.25rem;cursor:pointer;transition:color .15s ease, border-color .15s ease, background-color .15s ease}.restricted-doc-code button:hover{border-color:rgba(255,255,255,.28);background:#334155;color:#fff}.restricted-doc-code .hljs-comment,.restricted-doc-code .hljs-quote{color:#7f8ea3;font-style:italic}.restricted-doc-code .hljs-keyword,.restricted-doc-code .hljs-selector-tag,.restricted-doc-code .hljs-literal,.restricted-doc-code .hljs-section,.restricted-doc-code .hljs-link{color:#c792ea}.restricted-doc-code .hljs-string,.restricted-doc-code .hljs-title,.restricted-doc-code .hljs-name,.restricted-doc-code .hljs-type,.restricted-doc-code .hljs-attribute,.restricted-doc-code .hljs-symbol,.restricted-doc-code .hljs-bullet,.restricted-doc-code .hljs-addition,.restricted-doc-code .hljs-variable,.restricted-doc-code .hljs-template-tag,.restricted-doc-code .hljs-template-variable{color:#addb67}.restricted-doc-code .hljs-number,.restricted-doc-code .hljs-meta,.restricted-doc-code .hljs-built_in,.restricted-doc-code .hljs-builtin-name,.restricted-doc-code .hljs-params{color:#f78c6c}.restricted-doc-code .hljs-attr,.restricted-doc-code .hljs-selector-id,.restricted-doc-code .hljs-selector-class,.restricted-doc-code .hljs-selector-attr,.restricted-doc-code .hljs-selector-pseudo{color:#ffcb6b}.restricted-doc-code .hljs-function,.restricted-doc-code .hljs-class .hljs-title{color:#82aaff}.restricted-doc-code .hljs-regexp,.restricted-doc-code .hljs-deletion{color:#ff5370}.restricted-doc-code .hljs-emphasis{font-style:italic}.restricted-doc-code .hljs-strong{font-weight:700}.restricted-doc-callout{margin:1.5rem 0;padding:.9rem 1rem;border:1px solid rgba(59,130,246,.22);border-radius:.65rem;background:rgba(59,130,246,.07)}.restricted-doc-callout>:first-child{margin-top:0}.restricted-doc-callout>:last-child{margin-bottom:0}.restricted-doc blockquote{margin:1.5rem 0;padding:.1rem 0 .1rem 1.1rem;border-left:2px solid var(--restricted-border-strong);color:var(--restricted-muted);font-style:italic}.restricted-doc blockquote>:first-child{margin-top:0}.restricted-doc blockquote>:last-child{margin-bottom:0}.restricted-doc-toc ul{margin:.6rem 0 0;padding:0;list-style:none}.restricted-doc-toc li{margin:.35rem 0;line-height:1.35}.restricted-doc-toc li[data-level=\"3\"]{padding-left:.75rem}.restricted-doc-toc li[data-level=\"4\"]{padding-left:1.5rem}.restricted-doc-toc a{color:var(--restricted-muted);text-decoration:none}.restricted-doc-toc a:hover{color:var(--restricted-link)}.restricted-doc-toc-title{font-weight:600}.restricted-doc-not-found{min-height:20rem;padding:4rem 0;text-align:center}.restricted-doc-not-found h1{font-size:3rem}@media (max-width: 768px){.restricted-doc>h1{font-size:1.85rem}.restricted-doc th,.restricted-doc td{min-width:6.5rem;padding:.65rem .75rem}.restricted-doc-code pre{padding:1rem}}"}]}
{"page":{"pagePath":"api-reference/text-chat-anthropic","slug":"/api-reference/text-chat-anthropic","pageMetadata":{"title":"Create Message","sidebarTitle":"Create Message","description":"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.","openapi":"api-reference/text/api/openapi-chat-anthropic.json POST /anthropic/v1/messages","href":"/api-reference/text-chat-anthropic"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Message","sidebarTitle":"Create Message","description":"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.","openapi":"api-reference/text/api/openapi-chat-anthropic.json POST /anthropic/v1/messages","href":"/api-reference/text-chat-anthropic"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/minimax-cac98058/74cbedfd7ddc6a81/scripts/auto-token.js","/docs/_mintlify/custom/minimax-cac98058/08175b8daa74cd64/scripts/logo.js","/docs/_mintlify/custom/minimax-cac98058/bdfa294452778802/scripts/head-userinfo.js","/docs/_mintlify/custom/minimax-cac98058/ee26a6e83cc5ae7f/scripts/navbar-same-tab.js","/docs/_mintlify/custom/minimax-cac98058/b2a91de372d716f8/scripts/pricing-dropdown.js","/docs/_mintlify/custom/minimax-cac98058/c76999ca41eb4aec/scripts/domain-link-rewrite.js","/docs/_mintlify/custom/minimax-cac98058/4fe58d73df53e822/scripts/cookie-consent.js","/docs/_mintlify/custom/minimax-cac98058/444224329a77c4b1/scripts/page-view-tracking.js","/docs/_mintlify/custom/minimax-cac98058/07d15e8ada8d8bbf/scripts/restricted-docs-core.js","/docs/_mintlify/custom/minimax-cac98058/409396746d530a03/scripts/restricted-docs-highlight.js","/docs/_mintlify/custom/minimax-cac98058/728362c2608a54be/scripts/restricted-docs.js","/docs/_mintlify/custom/minimax-cac98058/50d87c5c4c9a98b0/scripts/rum.js","/docs/_mintlify/custom/minimax-cac98058/fbc61270b1626c86/scripts/pricing-navigation.js","/docs/_mintlify/custom/minimax-cac98058/b067abec70d0dbb6/scripts/feedback-consent.js"],"openApiReferenceData":{"operation":{"summary":"Text Generation Anthropic","operationId":"chatCompletionAnthropic","tags":["Text Generation"],"parameters":["65ec2601-7008-4aba-9d0f-2bda53f1ab90"],"requestBody":"3f45849c-206f-4911-a128-e4b9cbc45df6","responses":{"200":"c28abfca-28cf-433b-a7be-e7734467cb56","400":"15985c60-3b61-40cb-acdc-16ee5fcae62e","401":"dbbb58ab-6b61-4ab6-896a-26b5445f2868","403":"40fe43c3-9971-4051-b8ca-892402affee0","404":"1df07825-6290-4dff-b041-e97ef4a9d46b","413":"d567f552-95a0-48ea-86bd-9fc225ee1e76","429":"d8bed02b-7b89-490b-8a7b-770cdc5c32f3","500":"fa80a33d-caa9-422a-a694-3cbfec0587b3","529":"4993c004-c8f3-4fbc-8b9d-934f260fe239"},"method":"post","type":"path","servers":["56483ea6-eda2-4109-bf8e-c033ba6b70bb"],"security":["6b1e3669-4ce7-49f9-9277-f525e874e357","a5f1cc56-68b2-4d58-b95a-4058a8ce53bc"],"path":"/anthropic/v1/messages","baseUrlOptions":["https://api.minimax.io"],"title":"Text Generation Anthropic","description":"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.model":"MiniMax-M4","body.messages.items.0.role":"user","body.messages.items.0.content.oneOf.0":"Which is bigger, 9.11 or 9.9?","body.max_tokens":4096,"body.thinking.type":"adaptive","body.output_config.effort":"max"},{"body.model":"MiniMax-M4","body.messages.items.0.role":"user","body.messages.items.0.content.oneOf.1.items.0.type":"text","body.messages.items.0.content.oneOf.1.items.0.text":"What does this image show?","body.messages.items.0.content.oneOf.1.items.1.type":"image","body.messages.items.0.content.oneOf.1.items.1.source.type":"url","body.messages.items.0.content.oneOf.1.items.1.source.url":"https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg","body.max_tokens":4096,"body.thinking.type":"adaptive","body.output_config.effort":"max"},{"body.model":"MiniMax-M4","body.messages.items.0.role":"user","body.messages.items.0.content.oneOf.1.items.0.type":"text","body.messages.items.0.content.oneOf.1.items.0.text":"What is happening in this video?","body.messages.items.0.content.oneOf.1.items.1.type":"video","body.messages.items.0.content.oneOf.1.items.1.source.type":"url","body.messages.items.0.content.oneOf.1.items.1.source.url":"https://filecdn.minimax.chat/public/ee8c1648-21f1-41b7-8397-65022d22ffe5.mp4","body.max_tokens":4096,"body.thinking.type":"adaptive","body.output_config.effort":"max"},{"body.model":"MiniMax-M4","body.messages.items.0.role":"user","body.messages.items.0.content.oneOf.1.items.0.type":"text","body.messages.items.0.content.oneOf.1.items.0.text":"What does this image show?","body.messages.items.0.content.oneOf.1.items.1.type":"image","body.messages.items.0.content.oneOf.1.items.1.source.type":"url","body.messages.items.0.content.oneOf.1.items.1.source.url":"https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg","body.stream":true,"body.max_tokens":4096,"body.thinking.type":"adaptive","body.output_config.effort":"max"},{"body.model":"MiniMax-M4","body.messages.items.0.role":"user","body.messages.items.0.content.oneOf.0":"How's the weather in San Francisco?","body.max_tokens":4096,"body.tools.items.0.name":"get_weather","body.tools.items.0.input_schema":{"type":"object","properties":{"location":{"type":"string","description":"The city and state/country, e.g. San Francisco, US"}},"required":["location"]},"body.tools.items.0.description":"Get the current weather for a given location.","body.tool_choice.type":"auto","body.output_config.effort":"max"}]},"dependencies":{"parameters":{"65ec2601-7008-4aba-9d0f-2bda53f1ab90":{"name":"Content-Type","in":"header","required":true,"description":"Media type of the request body, should be set to `application/json` to ensure JSON format","schema":{"type":"string","enum":["application/json"],"default":"application/json","isRequired":true,"description":"Media type of the request body, should be set to `application/json` to ensure JSON format","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","description":"Model ID. Native support for text, image, and video input, alongside tool use and thinking content blocks. `MiniMax-M4` and `MiniMax-M3.1-Flash` always think and support tunable thinking depth via `output_config.effort`.","enum":["MiniMax-M4","MiniMax-M3.1-Flash","MiniMax-M3"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","description":"Conversation history. Supports text, image, video, tool use, tool result, and thinking content blocks.","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","enum":["user","assistant","user_system","group","sample_message_user","sample_message_ai"],"description":"Role of the message sender, using alternating user / assistant messages.","isRequired":true,"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"Message content. Supports text, image, video, tool use, tool result, and thinking content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","description":"Content block accepted in request messages. Supports text, image, video, and tool blocks. thinking is only used when echoing a prior assistant turn back to the model.","required":["type"],"properties":{"type":{"type":"string","description":"Content block type:\n- text: Text content\n- image: Image input\n- video: Video input\n- tool_use: Echoed assistant tool call from a previous turn\n- tool_result: Tool execution result\n- thinking: Echoed assistant thinking from a previous turn\n- mid_conv_system: System instructions inserted mid-conversation","enum":["text","image","video","tool_use","tool_result","thinking","mid_conv_system"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content when type=text.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"source":{"type":"object","description":"Image or video source when type=image or type=video.\n\n**Supported image formats**\n\n| Format | Common extensions | MIME Type |\n| :-- | :-- | :-- |\n| JPEG | .jpg, .jpeg | image/jpeg |\n| PNG | .png | image/png |\n| GIF | .gif | image/gif |\n| WEBP | .webp | image/webp |\n\n**Supported video formats**\n\n| Format | Common extensions | MIME Type |\n| :-- | :-- | :-- |\n| MP4 | .mp4 | video/mp4 |\n| AVI | .avi | video/avi or video/x-msvideo |\n| MOV | .mov | URL input: set the object storage Content-Type to video/quicktime; base64 input: use video/mov, i.e. `{\"type\": \"base64\", \"media_type\": \"video/mov\", \"data\": \"\u003craw Base64>\"}`; `data` must not include a `data:` prefix |\n| MKV | .mkv | video/x-matroska |\n\n**Multimodal input limits**\n- URL or Base64 input: video file ≤ 50 MB, image file ≤ 10 MB, request body ≤ 128 MB.\n- Files API upload: referenced as `mm_file://{file_id}`, with a single video up to 512 MB.\n- Up to 200 images and 20 videos across all `messages` in one request, including previous turns.\n- Image and video width and height must be greater than 0, and the aspect ratio must not exceed 200:1.\n- Videos must contain a video stream (audio-only files are not supported), with a duration greater than 0 and no longer than 30 minutes.\n- The number of sampled frames is `round(duration × fps / 2) × 2`; it must be at least 2 and no more than the video's actual total frame count. It always fails when `duration × fps` is less than 1, and usually fails when `fps` exceeds the video's own frame rate.\n- Total video pixels `scaled frame width × scaled frame height × sampled frames / 2` must not exceed 301,056,000. Frames are scaled by `detail` or `max_long_side_pixel`, with a longest-side limit of 504 for `low`, 672 for `default`, and 1288 for `high`.","properties":{"type":{"type":"string","enum":["base64","url"],"description":"Media source type.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","description":"Required for base64 input, for example image/png or video/mp4.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.media_type","typeLabel":"string"},"data":{"type":"string","description":"Base64-encoded media bytes.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.data","typeLabel":"string"},"url":{"type":"string","description":"Public URL. Videos can also use a Files API reference in the form `mm_file://{file_id}`. To obtain a `file_id`, first upload the video via the [Upload File](/api-reference/file-management-upload) API.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.url","typeLabel":"string"},"detail":{"type":"string","enum":["low","default","high"],"default":"default","description":"Understanding detail level. Defaults to default.\n\nFor image input, rough single-image token usage heuristic:\n\n| detail | Rough token usage |\n| :-- | :-- |\n| low | Usually a few hundred tokens, up to ~600 |\n| default | Often ~1k-3k tokens, up to ~5k |\n| high | Often several thousand tokens, up to ~15k+ |\n\nActual usage depends on image size and content; use `POST /anthropic/v1/messages/count_tokens` or response usage for exact usage.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.detail","typeLabel":"enum\u003cstring>"},"fps":{"type":"number","minimum":0.2,"maximum":5,"default":2,"description":"Video frame sampling rate. Defaults to 2. Range [0.2, 5].\n- Higher values: more sensitive to scene changes, but higher token cost and slower response.\n- Lower values: lower token cost and faster response, but less sensitive to scene changes.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.fps","typeLabel":"number"},"max_long_side_pixel":{"type":"integer","minimum":1,"description":"Longest-side pixel limit for the image or video frames.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.max_long_side_pixel","typeLabel":"integer"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source","typeLabel":"object"},"id":{"type":"string","description":"Tool call ID when echoing type=tool_use.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Tool name when echoing type=tool_use.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","description":"Tool input when echoing type=tool_use.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].input","typeLabel":"object"},"tool_use_id":{"type":"string","description":"ID of the matching tool_use block when type=tool_result.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].tool_use_id","typeLabel":"string"},"content":{"oneOf":[{"type":"string","description":"Tool execution result, either a string or an array of text/image content blocks.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"Tool execution result, either a string or an array of text/image content blocks.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content","typeLabel":"string | any[]"},"thinking":{"type":"string","description":"Echoed assistant thinking content when type=thinking.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].thinking","typeLabel":"string"},"signature":{"type":"string","description":"Signature for echoed thinking content. Return unchanged in later turns.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].signature","typeLabel":"string"},"cache_control":{"type":"object","description":"Prompt cache marker. Not supported by MiniMax-M3, MiniMax-M3.1-Flash, or MiniMax-M4.","properties":{"type":{"type":"string","enum":["ephemeral"],"description":"Prompt cache marker.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Message content. Supports text, image, video, tool use, tool result, and thinking content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"system":{"oneOf":[{"type":"string","description":"Set the role and behavior of the model.","uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"description":"Content block type","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","description":"Prompt cache marker. Not supported by MiniMax-M3, MiniMax-M3.1-Flash, or MiniMax-M4.","properties":{"type":{"type":"string","enum":["ephemeral"],"description":"Prompt cache marker.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type","text"],"uniqueKey":"system.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Set the role and behavior of the model.","uniqueKey":"system.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"system","typeLabel":"string | object[]"},"stream":{"type":"boolean","description":"Whether to use streaming output, defaults to `false`. When set to `true`, the response will be returned in chunks","default":false,"uniqueKey":"stream","typeLabel":"boolean"},"max_tokens":{"type":"integer","format":"int64","description":"Specifies the upper limit for generated content length (in tokens).\n- `MiniMax-M4`: recommended value 131072 (128K), maximum 262144 (256K).\n- `MiniMax-M3.1-Flash`, `MiniMax-M3`: recommended value 131072 (128K), maximum 524288 (512K).\n\nContent exceeding the limit will be truncated. If `stop_reason` is `max_tokens`, try increasing this value.","minimum":1,"uniqueKey":"max_tokens","typeLabel":"integer\u003cint64>"},"temperature":{"type":"number","format":"double","description":"Fixed at 1; any value passed has no effect.","default":1,"uniqueKey":"temperature","typeLabel":"number\u003cdouble>"},"top_p":{"type":"number","format":"double","description":"Fixed at 0.95; any value passed has no effect. If passed, the value must be within (0, 1].","default":0.95,"uniqueKey":"top_p","typeLabel":"number\u003cdouble>"},"tools":{"type":"array","description":"Tool definitions for Anthropic-compatible tool use.","items":{"type":"object","description":"Tool definitions for Anthropic-compatible tool use.","properties":{"name":{"type":"string","description":"Tool name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].name","typeLabel":"string"},"input_schema":{"type":"object","description":"Tool input parameters JSON Schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].input_schema","typeLabel":"object"},"description":{"type":"string","description":"Tool description.","uniqueKey":"tools.items.[INDEX].description","typeLabel":"string"},"cache_control":{"type":"object","description":"Prompt cache marker. Not supported by MiniMax-M3, MiniMax-M3.1-Flash, or MiniMax-M4.","properties":{"type":{"type":"string","enum":["ephemeral"],"description":"Prompt cache marker.","isRequired":true,"uniqueKey":"tools.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"tools.items.[INDEX].cache_control","typeLabel":"object"}},"required":["name","input_schema"],"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"type":"object","description":"Tool selection strategy. Only `auto` is supported; the model decides whether to call tools.","properties":{"type":{"type":"string","enum":["auto"],"description":"Tool choice type.","isRequired":true,"uniqueKey":"tool_choice.type","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"tool_choice","typeLabel":"object"},"thinking":{"type":"object","description":"Controls thinking behavior. The default depends on the model, so no schema-level default is declared.\n- `MiniMax-M4`, `MiniMax-M3.1-Flash`: always thinks. If `type` is sent it must be `adaptive`; `disabled` returns HTTP 400. Use `output_config.effort` to tune thinking depth.\n- `MiniMax-M3`: thinking is off when `thinking` is omitted; send `adaptive` to enable it and return thinking blocks.","properties":{"type":{"type":"string","enum":["disabled","adaptive"],"description":"Thinking control type.\n- `disabled`: turns off thinking output for `MiniMax-M3`. Rejected with HTTP 400 by `MiniMax-M4` and `MiniMax-M3.1-Flash`.\n- `adaptive`: enables thinking output and returns thinking blocks. The only value accepted by `MiniMax-M4` and `MiniMax-M3.1-Flash`.","uniqueKey":"thinking.type","typeLabel":"enum\u003cstring>"}},"required":[],"uniqueKey":"thinking","typeLabel":"object"},"output_config":{"type":"object","description":"Output configuration. Use `effort` to tune thinking depth for `MiniMax-M4` and `MiniMax-M3.1-Flash`; `MiniMax-M3` does not support tuning thinking depth.","properties":{"effort":{"type":"string","description":"Thinking depth; accepts `low`, `medium`, `high`, `xhigh`, or `max` (`none` is not supported and returns HTTP 400).\n- `MiniMax-M4`, `MiniMax-M3.1-Flash`: both default to `max` when omitted.\n- `MiniMax-M3`: does not support tuning thinking depth and ignores this field.","enum":["low","medium","high","xhigh","max"],"uniqueKey":"output_config.effort","typeLabel":"enum\u003cstring>"}},"required":[],"uniqueKey":"output_config","typeLabel":"object"},"metadata":{"type":"object","description":"Request metadata. user_id is recommended for end-user-level aggregation, rate limiting, and billing analysis.","properties":{"user_id":{"type":"string","description":"End-user ID.","uniqueKey":"metadata.user_id","typeLabel":"string"}},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Deep Thinking":{"title":"Deep Thinking","value":{"model":"MiniMax-M4","thinking":{"type":"adaptive"},"messages":[{"role":"user","content":"Which is bigger, 9.11 or 9.9?"}],"max_tokens":4096,"output_config":{"effort":"max"}}},"Image Understanding":{"title":"Image Understanding","value":{"model":"MiniMax-M4","thinking":{"type":"adaptive"},"messages":[{"role":"user","content":[{"type":"text","text":"What does this image show?"},{"type":"image","source":{"type":"url","url":"https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg"}}]}],"max_tokens":4096,"output_config":{"effort":"max"}}},"Video Understanding":{"title":"Video Understanding","value":{"model":"MiniMax-M4","thinking":{"type":"adaptive"},"messages":[{"role":"user","content":[{"type":"text","text":"What is happening in this video?"},{"type":"video","source":{"type":"url","url":"https://filecdn.minimax.chat/public/ee8c1648-21f1-41b7-8397-65022d22ffe5.mp4"}}]}],"max_tokens":4096,"output_config":{"effort":"max"}}},"Stream":{"title":"Stream","value":{"model":"MiniMax-M4","thinking":{"type":"adaptive"},"messages":[{"role":"user","content":[{"type":"text","text":"What does this image show?"},{"type":"image","source":{"type":"url","url":"https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg"}}]}],"stream":true,"max_tokens":4096,"output_config":{"effort":"max"}}},"Tool Use":{"title":"Tool Use","value":{"model":"MiniMax-M4","messages":[{"role":"user","content":"How's the weather in San Francisco?"}],"max_tokens":4096,"tools":[{"name":"get_weather","description":"Get the current weather for a given location.","input_schema":{"type":"object","properties":{"location":{"type":"string","description":"The city and state/country, e.g. San Francisco, US"}},"required":["location"]}}],"tool_choice":{"type":"auto"},"output_config":{"effort":"max"}}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"c28abfca-28cf-433b-a7be-e7734467cb56":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique ID of this response","uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","description":"Object type, fixed as `message`","enum":["message"],"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"role":{"type":"string","description":"Role, fixed as `assistant`","enum":["assistant"],"uniqueKey":"role","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"Model ID used for this request","uniqueKey":"model","typeLabel":"string"},"content":{"type":"array","description":"List of response content blocks","items":{"type":"object","description":"Content block returned in response messages. The model emits text, tool_use (when calling tools), and thinking (when extended thinking is active). Responses never contain image, video, tool_result, or mid_conv_system blocks.","required":["type"],"properties":{"type":{"type":"string","description":"Content block type:\n- text: Text content\n- tool_use: Model tool call\n- thinking: Model thinking content","enum":["text","tool_use","thinking"],"isRequired":true,"uniqueKey":"content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content when type=text.","uniqueKey":"content.items.[INDEX].text","typeLabel":"string"},"id":{"type":"string","description":"Tool call ID returned when type=tool_use.","uniqueKey":"content.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Tool name returned when type=tool_use.","uniqueKey":"content.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","description":"Tool input returned when type=tool_use.","uniqueKey":"content.items.[INDEX].input","typeLabel":"object"},"thinking":{"type":"string","description":"Model thinking content when type=thinking.","uniqueKey":"content.items.[INDEX].thinking","typeLabel":"string"},"signature":{"type":"string","description":"Signature for thinking content. Return unchanged in later turns.","uniqueKey":"content.items.[INDEX].signature","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"content","typeLabel":"object[]"},"stop_reason":{"type":"string","description":"Reason for stopping generation:\n- end_turn: Model ended naturally\n- max_tokens: Reached max_tokens limit\n- tool_use: Model requested tool use\n- pause_turn: A server tool (such as web_search) reached its usage limit and the turn was paused. Append the returned content as an assistant message and send the request again to continue","enum":["end_turn","max_tokens","tool_use","pause_turn"],"uniqueKey":"stop_reason","typeLabel":"enum\u003cstring>"},"usage":{"type":"object","description":"Token usage for this request, including prompt cache usage when applicable.","properties":{"input_tokens":{"type":"integer","description":"Number of tokens consumed by input","uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Number of tokens consumed by output","uniqueKey":"usage.output_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"type":"integer","description":"Number of input tokens used to create prompt cache entries.","uniqueKey":"usage.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Number of input tokens read from prompt cache.","uniqueKey":"usage.cache_read_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Deep Thinking":{"title":"Deep Thinking","value":{"id":"066b367ba949a58a9d6829b4bf8cbcd4","type":"message","role":"assistant","model":"MiniMax-M4","content":[{"thinking":"The user is asking which is bigger, 9.11 or 9.9.\n\n9.11 vs 9.9\n\n9.9 is greater than 9.11.\n\nTo compare: 9.11 = 9.11 and 9.9 = 9.90\n\n9.90 > 9.11, so 9.9 is bigger.","signature":"6d0315c818f9664ff185dabaa22cd89f2bf28a3a52122095bce23d905471ec5f","type":"thinking"},{"text":"**9.9 is bigger than 9.11.**\n\nTo compare decimals, it helps to write them with the same number of decimal places:\n- 9.11 = 9.11\n- 9.9 = 9.90\n\nSince 9.90 > 9.11, **9.9 is larger**.","type":"text"}],"usage":{"input_tokens":13,"output_tokens":149,"cache_creation_input_tokens":0,"cache_read_input_tokens":159},"stop_reason":"end_turn"}},"Image Understanding":{"title":"Image Understanding","value":{"id":"066a3730f92943410551c4b4978ddad1","type":"message","role":"assistant","model":"MiniMax-M4","content":[{"thinking":"The user is asking what the image shows. I can describe this image of a young child.","signature":"db8ecae1e5a63cabebd69d2625983499bb498bfd329dde5c3cede76f12896336","type":"thinking"},{"text":"This image shows a young girl, probably around 4-5 years old, photographed in a close-up portrait style. She has:\n\n- **Wavy, tousled light brown hair** with bangs that fall across her forehead, with some strands appearing slightly messy or windblown\n- **Large, expressive hazel-green eyes** that are looking directly at the camera\n- **A soft, subtle smile** giving her a warm, gentle expression\n- **Fair skin** with rosy cheeks, illuminated by warm, soft lighting\n\nShe's wearing what appears to be a **cream or off-white dress** with delicate lace or ruffled detailing around the neckline and shoulders.\n\nThe photograph has a **professional portrait quality**, with a softly blurred, neutral grayish-beige background and warm directional lighting that creates a classic, painterly aesthetic. The composition and styling suggest this could be a formal portrait or an AI-generated image with a vintage/realistic photographic style.","type":"text"}],"usage":{"input_tokens":1209,"output_tokens":214,"cache_creation_input_tokens":0,"cache_read_input_tokens":157},"stop_reason":"end_turn"}},"Video Understanding":{"title":"Video Understanding","value":{"id":"066b458956dd2902de31eae19cf15c6e","type":"message","role":"assistant","model":"MiniMax-M4","content":[{"thinking":"The user wants to know what is happening in the video.\n\n1. **Analyze the video:**\n * The video is a meme/edited clip.\n * It starts with a cat (specifically a Bengal cat, looks like a Savannah cat or similar breed) walking on a diving board at the Olympics (London 2012).\n * The cat is edited into the scene, replacing a human diver.\n * The cat walks to the end of the board.\n * The cat then jumps off the diving board into the pool.\n * The people in the background are real, reacting (or rather, just sitting there, as it's a static crowd image or very slow movement).\n * The text \"MINIMAX | Hailuo AI\" is visible, indicating it's an AI-generated video.\n\n2. **Describe the action:**\n * A cat walks on a diving board.\n * The cat jumps off the diving board.\n * The setting is an Olympic-sized pool.\n\n3. **Synthesize the description:**\n * Start with the main subject: a cat.\n * Describe the location: a diving board at a swimming pool.\n * Describe the action: walking, then jumping off.\n * Combine into a concise sentence: \"A cat is seen walking on a diving board and then jumping off into a swimming pool.\"\n\n4. **Review against the video:**\n * Does the video show a cat? Yes.\n * Does it show a diving board? Yes.\n * Does the cat jump off? Yes.\n * Is there a swimming pool below? Yes.\n * The description is accurate and covers the key events in the short clip.\n\n5. **Final Output Generation:** Present the synthesized description clearly.","signature":"4849e0d596e25f03504dbb4eee7316fc48714dc86b93c9b7dd63adef7f4aa9b2","type":"thinking"},{"text":"A cat is seen walking on a diving board and then jumping off into a swimming pool.","type":"text"}],"usage":{"input_tokens":349,"output_tokens":393,"cache_creation_input_tokens":0,"cache_read_input_tokens":1896},"stop_reason":"end_turn"}},"Stream":{"title":"Stream","value":[{"type":"message_start","message":{"id":"066a3766d21ce23c8afc5e85a427036c","type":"message","role":"assistant","content":[],"model":"MiniMax-M4","stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":0,"output_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":1366}}},{"type":"ping"},{"type":"content_block_start","index":0,"content_block":{"type":"thinking","thinking":""}},{"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":"The user"}},{"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":" is asking me to describe what an image shows. I should describe the image objectively, focusing on"}},{"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":" visible features without identifying the person."}},{"type":"content_block_delta","index":0,"delta":{"type":"signature_delta","signature":"69b031ac42358c4e99f8f80f5ea48ff9cec06ca68500428ee1145e16a8020843"}},{"type":"content_block_stop","index":0},{"type":"content_block_start","index":1,"content_block":{"type":"text","text":""}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"The image shows a close-up portrait of a young girl"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":", probably around 3-5 years old. She has the following features:\n\n- **Hair"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"**: Wavy, light brown/auburn hair with bangs across her forehead, with some"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" strands appearing to be pulled up\n- **Eyes**: Large, expressive brown/amber eyes looking"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" directly at the camera\n- **Expression**: A subtle, closed-mouth smile that gives her a gentle"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":", slightly mischievous look\n- **Clothing**: She's wearing a white or cream-colored top with delicate"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" lace or ruffled trim around the neckline and sleeves\n- **Lighting**: The photo uses"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" warm, soft lighting that creates a gentle glow on her face\n- **Background**: A muted, neutral"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" brownish-gray backdrop that keeps the focus entirely on her\n\nThe overall aesthetic has"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" a professional, portrait-photography quality with a warm, vintage feel to the color tones"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"."}},{"type":"content_block_stop","index":1},{"type":"message_delta","delta":{"stop_reason":"end_turn"},"usage":{"input_tokens":1252,"output_tokens":213,"cache_creation_input_tokens":0,"cache_read_input_tokens":114}},{"type":"message_stop"}]},"Tool Use":{"title":"Tool Use","value":{"id":"066b133406cd8cfd88eb3b2b893a5daa","type":"message","role":"assistant","model":"MiniMax-M4","content":[{"thinking":"The user is asking about the weather in San Francisco. I have access to a get_weather tool that can provide this information. I need to format the location parameter appropriately - the example shows \"San Francisco, US\" as the format.","signature":"fa86efec7c27d4aa23eac60ba7a1f4e5f0f37a18d6ec4944fe495aebb6bd0930","type":"thinking"},{"text":"I'll check the current weather in San Francisco for you.","type":"text"},{"type":"tool_use","id":"call_function_9pjh8jjdebck_1","name":"get_weather","input":{"location":"San Francisco, US"}}],"usage":{"input_tokens":14,"output_tokens":91,"cache_creation_input_tokens":0,"cache_read_input_tokens":404},"stop_reason":"tool_use"}}},"exampleType":"examples"},"text/event-stream":{"schema":{"type":"object","description":"","required":["type"],"properties":{"type":{"type":"string","description":"Event type:\n- `message_start`: Message start, contains complete message metadata\n- `ping`: Heartbeat event\n- `content_block_start`: Content block start\n- `content_block_delta`: Content block incremental update\n- `content_block_stop`: Content block end\n- `message_delta`: Message-level incremental update (e.g., stop_reason)\n- `message_stop`: Message end","enum":["message_start","ping","content_block_start","content_block_delta","content_block_stop","message_delta","message_stop"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"message":{"type":"object","description":"Message object (returned when `type` is `message_start`)","properties":{"id":{"type":"string","description":"Unique ID of the message","uniqueKey":"message.id","typeLabel":"string"},"type":{"type":"string","enum":["message"],"uniqueKey":"message.type","typeLabel":"enum\u003cstring>"},"role":{"type":"string","enum":["assistant"],"uniqueKey":"message.role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","description":"Content block list, initially an empty array","items":{"type":"object","description":"Content block returned in response messages. The model emits text, tool_use (when calling tools), and thinking (when extended thinking is active). Responses never contain image, video, tool_result, or mid_conv_system blocks.","required":["type"],"properties":{"type":{"type":"string","description":"Content block type:\n- text: Text content\n- tool_use: Model tool call\n- thinking: Model thinking content","enum":["text","tool_use","thinking"],"isRequired":true,"uniqueKey":"message.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content when type=text.","uniqueKey":"message.content.items.[INDEX].text","typeLabel":"string"},"id":{"type":"string","description":"Tool call ID returned when type=tool_use.","uniqueKey":"message.content.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Tool name returned when type=tool_use.","uniqueKey":"message.content.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","description":"Tool input returned when type=tool_use.","uniqueKey":"message.content.items.[INDEX].input","typeLabel":"object"},"thinking":{"type":"string","description":"Model thinking content when type=thinking.","uniqueKey":"message.content.items.[INDEX].thinking","typeLabel":"string"},"signature":{"type":"string","description":"Signature for thinking content. Return unchanged in later turns.","uniqueKey":"message.content.items.[INDEX].signature","typeLabel":"string"}},"uniqueKey":"message.content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.content","typeLabel":"object[]"},"model":{"type":"string","description":"Model ID","uniqueKey":"message.model","typeLabel":"string"},"stop_reason":{"oneOf":[{"type":"string","description":"Stop reason, null at the start of streaming","uniqueKey":"message.stop_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Stop reason, null at the start of streaming","uniqueKey":"message.stop_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.stop_reason","typeLabel":"string | null"},"stop_sequence":{"oneOf":[{"type":"string","description":"Stop sequence, null at the start of streaming","uniqueKey":"message.stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","description":"Stop sequence, null at the start of streaming","uniqueKey":"message.stop_sequence.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.stop_sequence","typeLabel":"string | null"},"usage":{"type":"object","description":"Token usage for this request, including prompt cache usage when applicable.","properties":{"input_tokens":{"type":"integer","description":"Number of tokens consumed by input","uniqueKey":"message.usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Number of tokens consumed by output","uniqueKey":"message.usage.output_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"type":"integer","description":"Number of input tokens used to create prompt cache entries.","uniqueKey":"message.usage.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Number of input tokens read from prompt cache.","uniqueKey":"message.usage.cache_read_input_tokens","typeLabel":"integer"}},"uniqueKey":"message.usage","typeLabel":"object"}},"uniqueKey":"message","typeLabel":"object"},"index":{"type":"integer","description":"Index of the content block (returned for `content_block_start`, `content_block_delta`, `content_block_stop`)","uniqueKey":"index","typeLabel":"integer"},"content_block":{"type":"object","description":"Content block object (returned when `type` is `content_block_start`)","required":["type"],"properties":{"type":{"type":"string","description":"Content block type:\n- text: Text content\n- tool_use: Model tool call\n- thinking: Model thinking content","enum":["text","tool_use","thinking"],"isRequired":true,"uniqueKey":"content_block.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content when type=text.","uniqueKey":"content_block.text","typeLabel":"string"},"id":{"type":"string","description":"Tool call ID returned when type=tool_use.","uniqueKey":"content_block.id","typeLabel":"string"},"name":{"type":"string","description":"Tool name returned when type=tool_use.","uniqueKey":"content_block.name","typeLabel":"string"},"input":{"type":"object","description":"Tool input returned when type=tool_use.","uniqueKey":"content_block.input","typeLabel":"object"},"thinking":{"type":"string","description":"Model thinking content when type=thinking.","uniqueKey":"content_block.thinking","typeLabel":"string"},"signature":{"type":"string","description":"Signature for thinking content. Return unchanged in later turns.","uniqueKey":"content_block.signature","typeLabel":"string"}},"uniqueKey":"content_block","typeLabel":"object"},"delta":{"type":"object","description":"Incremental update content (returned for `content_block_delta` or `message_delta`)","properties":{"type":{"type":"string","description":"Delta type, for example text_delta, thinking_delta, or signature_delta.","enum":["text_delta","thinking_delta","signature_delta"],"uniqueKey":"delta.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Incremental text content","uniqueKey":"delta.text","typeLabel":"string"},"stop_reason":{"type":"string","description":"Reason for stopping generation.","enum":["end_turn","max_tokens","tool_use","pause_turn"],"uniqueKey":"delta.stop_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"delta","typeLabel":"object"},"usage":{"type":"object","description":"Token usage (returned for `message_delta`)","properties":{"input_tokens":{"type":"integer","description":"Number of tokens consumed by input","uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Number of tokens consumed by output","uniqueKey":"usage.output_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"type":"integer","description":"Number of input tokens used to create prompt cache entries.","uniqueKey":"usage.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Number of input tokens read from prompt cache.","uniqueKey":"usage.cache_read_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Stream":{"title":"Stream","value":[{"type":"message_start","message":{"id":"066a3766d21ce23c8afc5e85a427036c","type":"message","role":"assistant","content":[],"model":"MiniMax-M4","stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":0,"output_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":1366}}},{"type":"ping"},{"type":"content_block_start","index":0,"content_block":{"type":"thinking","thinking":""}},{"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":"The user"}},{"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":" is asking me to describe what an image shows. I should describe the image objectively, focusing on"}},{"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":" visible features without identifying the person."}},{"type":"content_block_delta","index":0,"delta":{"type":"signature_delta","signature":"69b031ac42358c4e99f8f80f5ea48ff9cec06ca68500428ee1145e16a8020843"}},{"type":"content_block_stop","index":0},{"type":"content_block_start","index":1,"content_block":{"type":"text","text":""}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"The image shows a close-up portrait of a young girl"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":", probably around 3-5 years old. She has the following features:\n\n- **Hair"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"**: Wavy, light brown/auburn hair with bangs across her forehead, with some"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" strands appearing to be pulled up\n- **Eyes**: Large, expressive brown/amber eyes looking"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" directly at the camera\n- **Expression**: A subtle, closed-mouth smile that gives her a gentle"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":", slightly mischievous look\n- **Clothing**: She's wearing a white or cream-colored top with delicate"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" lace or ruffled trim around the neckline and sleeves\n- **Lighting**: The photo uses"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" warm, soft lighting that creates a gentle glow on her face\n- **Background**: A muted, neutral"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" brownish-gray backdrop that keeps the focus entirely on her\n\nThe overall aesthetic has"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" a professional, portrait-photography quality with a warm, vintage feel to the color tones"}},{"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"."}},{"type":"content_block_stop","index":1},{"type":"message_delta","delta":{"stop_reason":"end_turn"},"usage":{"input_tokens":1252,"output_tokens":213,"cache_creation_input_tokens":0,"cache_read_input_tokens":114}},{"type":"message_stop"}]}},"exampleType":"examples"}},"exampleType":"examples"},"15985c60-3b61-40cb-acdc-16ee5fcae62e":{"description":"Invalid request parameters (missing required fields, type not in the whitelist, tool_use.input not a JSON object, etc.).","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"invalid_request_error","message":"messages.0.content.1: unsupported content type 'foo'"}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"invalid_request_error","message":"messages.0.content.1: unsupported content type 'foo'"}}}},"exampleType":"examples"}},"exampleType":"examples"},"dbbb58ab-6b61-4ab6-896a-26b5445f2868":{"description":"API key missing or invalid.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"authentication_error","message":"API key missing or invalid."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"authentication_error","message":"API key missing or invalid."}}}},"exampleType":"examples"}},"exampleType":"examples"},"40fe43c3-9971-4051-b8ca-892402affee0":{"description":"No permission to access this model or path.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"permission_error","message":"No permission to access this model or path."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"permission_error","message":"No permission to access this model or path."}}}},"exampleType":"examples"}},"exampleType":"examples"},"1df07825-6290-4dff-b041-e97ef4a9d46b":{"description":"Model does not exist.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"not_found_error","message":"Model does not exist."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"not_found_error","message":"Model does not exist."}}}},"exampleType":"examples"}},"exampleType":"examples"},"d567f552-95a0-48ea-86bd-9fc225ee1e76":{"description":"Request body exceeds 128 MB, or a multimodal file exceeds the size limit.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"request_too_large","message":"Request body exceeds 128 MB, or a multimodal file exceeds the size limit."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"request_too_large","message":"Request body exceeds 128 MB, or a multimodal file exceeds the size limit."}}}},"exampleType":"examples"}},"exampleType":"examples"},"d8bed02b-7b89-490b-8a7b-770cdc5c32f3":{"description":"RPM / TPM / connection-count or other rate limit triggered.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"rate_limit_error","message":"RPM / TPM / connection-count or other rate limit triggered."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"rate_limit_error","message":"RPM / TPM / connection-count or other rate limit triggered."}}}},"exampleType":"examples"}},"exampleType":"examples"},"fa80a33d-caa9-422a-a694-3cbfec0587b3":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"api_error","message":"Internal server error."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"api_error","message":"Internal server error."}}}},"exampleType":"examples"}},"exampleType":"examples"},"4993c004-c8f3-4fbc-8b9d-934f260fe239":{"description":"Upstream model overloaded; retryable.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Uses an HTTP status code plus a JSON body. When an error occurs during streaming, it is delivered as an `event: error` SSE event with the same body structure; clients should stop reading and clean up the session state after receiving an error.","properties":{"type":{"type":"string","enum":["error"],"description":"Always `error`.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Unique identifier of the request, useful for troubleshooting.","uniqueKey":"request_id","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","description":"Error type.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error details.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"overloaded_error","message":"Upstream model overloaded; retryable."}},"examples":{"Example":{"title":"Example","value":{"type":"error","request_id":"req_xxxxxxxx","error":{"type":"overloaded_error","message":"Upstream model overloaded; retryable."}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6b1e3669-4ce7-49f9-9277-f525e874e357":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer API Key auth. Send Authorization: Bearer \u003cAPI_KEY>. If Authorization and x-api-key are both present, Authorization takes precedence.","scopes":[],"schemeName":"bearerAuth"}},"a5f1cc56-68b2-4d58-b95a-4058a8ce53bc":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Anthropic-compatible API Key auth. Send x-api-key: \u003cAPI_KEY>. Authorization: Bearer \u003cAPI_KEY> is recommended.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"56483ea6-eda2-4109-bf8e-c033ba6b70bb":{"url":"https://api.minimax.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer API Key auth. Send Authorization: Bearer \u003cAPI_KEY>. If Authorization and x-api-key are both present, Authorization takes precedence.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer API Key auth. Send Authorization: Bearer \u003cAPI_KEY>. If Authorization and x-api-key are both present, Authorization takes precedence.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Anthropic-compatible API Key auth. Send x-api-key: \u003cAPI_KEY>. Authorization: Bearer \u003cAPI_KEY> is recommended.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Anthropic-compatible API Key auth. Send x-api-key: \u003cAPI_KEY>. Authorization: Bearer \u003cAPI_KEY> is recommended.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/text/api/openapi-chat-anthropic.json"},"subdomain":"minimax-cac98058","siteName":"MiniMax API Docs","title":"Create Message - MiniMax API Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T12:19:43.068Z","originalFileLocation":"api-reference/text-chat-anthropic.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Message - MiniMax API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://minimax-cac98058.mintlify.site/docs/_mintlify/api/og/v2?division=Anthropic+Messages+API\u0026amp;title=Create+Message\u0026amp;description=Call+MiniMax+models+via+the+Anthropic+Messages+API+compatible+endpoint.+Generates+model+replies%2C+supports+streaming+and+non-streaming.\u0026amp;theme=329045bc9618e343e09b4393\u0026amp;signature=485db1e4fe8685c5e84e310758a0e4bbd99cc6749ac4b855b85e1183c8c4b8a0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Message - MiniMax API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://minimax-cac98058.mintlify.site/docs/_mintlify/api/og/v2?division=Anthropic+Messages+API\u0026amp;title=Create+Message\u0026amp;description=Call+MiniMax+models+via+the+Anthropic+Messages+API+compatible+endpoint.+Generates+model+replies%2C+supports+streaming+and+non-streaming.\u0026amp;theme=329045bc9618e343e09b4393\u0026amp;signature=485db1e4fe8685c5e84e310758a0e4bbd99cc6749ac4b855b85e1183c8c4b8a0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#181E25\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/text-chat-anthropic.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://platform.minimax.io/#organization\",\"name\":\"MiniMax API Docs\",\"url\":\"https://platform.minimax.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/light.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=9c99bb2678d62388d8a4e7cce1750858\"}},{\"@type\":\"WebSite\",\"@id\":\"https://platform.minimax.io/docs#website\",\"name\":\"MiniMax API Docs\",\"url\":\"https://platform.minimax.io/docs\",\"publisher\":{\"@id\":\"https://platform.minimax.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic#webpage\",\"url\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic\",\"name\":\"Create Message\",\"description\":\"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.\",\"dateModified\":\"2026-12-03T12:19:43.068Z\",\"isPartOf\":{\"@id\":\"https://platform.minimax.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"LLM\",\"item\":\"https://platform.minimax.io/docs/api-reference/text-anthropic-api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Message\",\"item\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic#apireference\",\"headline\":\"Create Message\",\"name\":\"Create Message\",\"description\":\"Call MiniMax models via the Anthropic Messages API compatible endpoint. Generates model replies, supports streaming and non-streaming.\",\"url\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic\",\"mainEntityOfPage\":{\"@id\":\"https://platform.minimax.io/docs/api-reference/text-chat-anthropic#webpage\"},\"dateModified\":\"2026-12-03T12:19:43.068Z\",\"publisher\":{\"@id\":\"https://platform.minimax.io/#organization\"},\"isPartOf\":{\"@id\":\"https://platform.minimax.io/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/api-reference/text-chat-anthropic.md","siteName":"MiniMax API Docs","nav":{"global":null,"tabs":[{"tab":"Developer Guides","pages":[{"title":"Developer Guides","href":"/guides/models-intro"}]},{"tab":"API","groups":[{"group":"Using the API","pages":[{"title":"API Overview","sidebarTitle":"API Overview","href":"/api-reference/api-overview"},{"title":"Rate Limits","href":"/guides/rate-limits"},{"title":"Error Codes","sidebarTitle":"Error Code Reference","href":"/api-reference/errorcode"}]},{"group":"LLM","icon":"text-align-start","pages":[{"title":"Anthropic SDK","sidebarTitle":"Anthropic SDK (Recommended)","href":"/api-reference/text-anthropic-api"},{"title":"OpenAI SDK","sidebarTitle":"OpenAI SDK","href":"/api-reference/text-openai-api"},{"title":"AI SDK","sidebarTitle":"AI SDK","description":"Call MiniMax models using the AI SDK","href":"/api-reference/text-ai-sdk"},{"group":"Anthropic Messages API","pages":[{"title":"Create Message","sidebarTitle":"Create Message","openapi":"api-reference/text/api/openapi-chat-anthropic.json POST /anthropic/v1/messages","href":"/api-reference/text-chat-anthropic"}]},{"group":"OpenAI Chat Completions API","pages":[{"title":"Create Chat Completion","sidebarTitle":"Create Chat Completion","description":"Call MiniMax models via the OpenAI Chat Completions API compatible endpoint. Generates model replies, supports streaming and non-streaming.","openapi":"api-reference/text/api/openapi-chat-openai.json POST /v1/chat/completions","href":"/api-reference/text-chat-openai"}]},{"group":"OpenAI Responses API","pages":[{"title":"Create Response","sidebarTitle":"Create Response","openapi":"api-reference/text/api/openapi-responses.json POST /v1/responses","href":"/api-reference/responses-create"},{"title":"Estimate Input Tokens","sidebarTitle":"Estimate Input Tokens","openapi":"api-reference/text/api/openapi-responses.json POST /v1/responses/input_tokens","href":"/api-reference/responses-input-tokens"}]}]},{"group":"Video","icon":"video","pages":[{"group":"MiniMax-H3","pages":[{"title":"Create Video Generation Task","sidebarTitle":"Create Video Generation Task","openapi":"api-reference/video/generation/api/v2-video-generation.json POST /v2/video_generation","href":"/api-reference/video-generation-v2-create"},{"title":"Query Task","sidebarTitle":"Query Task","openapi":"api-reference/video/generation/api/v2-video-generation.json GET /v2/query/video_generation/{task_id}","href":"/api-reference/video-generation-v2-query"},{"title":"List Tasks","sidebarTitle":"List Tasks","openapi":"api-reference/video/generation/api/v2-video-generation.json GET /v2/query/video_generation","href":"/api-reference/video-generation-v2-list"},{"title":"Cancel or Delete Task","sidebarTitle":"Cancel or Delete Task","openapi":"api-reference/video/generation/api/v2-video-generation.json DELETE /v2/video_generation/{task_id}","href":"/api-reference/video-generation-v2-delete"},{"title":"Create H3-Context-IR Task","sidebarTitle":"Create H3-Context-IR Task","openapi":"api-reference/video/generation/api/v2-video-generation.json POST /v2/h3_context_ir","href":"/api-reference/video-generation-v2-h3-context-ir"},{"title":"Create Video Regeneration Task","sidebarTitle":"Create Video Regeneration Task","openapi":"api-reference/video/generation/api/v2-video-generation.json POST /v2/video_regeneration","href":"/api-reference/video-generation-v2-regeneration"}]}]},{"group":"Image","icon":"image","pages":[{"group":"MiniMax-H3-Image","tag":"NEW","pages":[{"title":"Text-to-Image","sidebarTitle":"Text-to-Image","openapi":"api-reference/image/generation/api/h3-image-generations.json POST /v1/images/generations","href":"/api-reference/image-generation-h3-generations"},{"title":"Image Edit","sidebarTitle":"Image Edit","openapi":"api-reference/image/generation/api/h3-image-edits.json POST /v1/images/edits","href":"/api-reference/image-generation-h3-edits"},{"title":"H3-Image-Context-IR","sidebarTitle":"H3-Image-Context-IR","openapi":"api-reference/image/generation/api/h3-image-context-ir.json POST /v1/h3_image_context_ir","href":"/api-reference/image-generation-h3-context-ir"},{"title":"Streaming Events","sidebarTitle":"Streaming Events","href":"/api-reference/image-generation-h3-streaming"}]}]},{"group":"Speech","icon":"audio-lines","pages":[{"group":"Speech to Text","pages":[{"title":"Speech to Text","sidebarTitle":"Speech to Text","openapi":"api-reference/speech/speech-to-text/api/openapi.json POST /v1/speech_to_text","href":"/api-reference/speech-to-text"}]},{"group":"Text to Speech","pages":[{"title":"Synchronous Text to Speech","openapi":"api-reference/speech/t2a/api/openapi.json POST /v1/t2a_v2","href":"/api-reference/speech-t2a-http"},{"title":"Synchronous Text to Speech","asyncapi":"api-reference/speech/t2a/api/asyncapi.json t2a_v2_websocket","href":"/api-reference/speech-t2a-websocket"},{"title":"Bidirectional Streaming Text to Speech","asyncapi":"api-reference/speech/t2a/api/asyncapi-bidi.json t2a_v2_bidi_websocket","href":"/api-reference/speech-t2a-websocket-bidi"}]},{"group":"Async Text to Speech","pages":[{"title":"Create Speech Generation Task","openapi":"api-reference/speech/t2a-async/api/openapi.json POST /v1/t2a_async_v2","href":"/api-reference/speech-t2a-async-create"},{"title":"Query Speech Generation Task Status","openapi":"api-reference/speech/t2a-async/api/openapi.json GET /v1/query/t2a_async_query_v2","href":"/api-reference/speech-t2a-async-query"}]},{"group":"Voice Cloning","pages":[{"title":"Upload Audio for Voice Cloning","sidebarTitle":"Upload Audio File","openapi":"api-reference/speech/voice-cloning/api/upload-file.json POST /v1/files/upload","href":"/api-reference/voice-cloning-uploadcloneaudio"},{"title":"Upload Prompt Audio","sidebarTitle":"Upload Prompt Audio","openapi":"api-reference/speech/voice-cloning/api/upload-prompt.json POST /v1/files/upload","href":"/api-reference/voice-cloning-uploadprompt"},{"title":"Voice Clone","openapi":"api-reference/speech/voice-cloning/api/openapi.json POST /v1/voice_clone","href":"/api-reference/voice-cloning-clone"}]},{"group":"Voice Design","pages":[{"title":"Voice Design","openapi":"api-reference/speech/voice-design/api/openapi.json POST /v1/voice_design","href":"/api-reference/voice-design-design"}]},{"group":"Voice Management","pages":[{"title":"Get Voice","openapi":"api-reference/speech/voice-management/api/openapi.json POST /v1/get_voice","href":"/api-reference/voice-management-get"},{"title":"Delete Voice","openapi":"api-reference/speech/voice-management/api/openapi.json POST /v1/delete_voice","href":"/api-reference/voice-management-delete"}]}]},{"group":"File","icon":"file-code","pages":[{"group":"File Management","pages":[{"title":"Upload File","sidebarTitle":"Upload","openapi":"api-reference/file/management/api/openapi.json POST /v1/files/upload","href":"/api-reference/file-management-upload"},{"title":"List Files","sidebarTitle":"List","openapi":"api-reference/file/management/api/openapi.json GET /v1/files/list","href":"/api-reference/file-management-list"},{"title":"Retrieve File","sidebarTitle":"Retrieve","openapi":"api-reference/file/management/api/openapi.json GET /v1/files/retrieve","href":"/api-reference/file-management-retrieve"},{"title":"Retrieve Content","sidebarTitle":"Retrieve File Content","openapi":"api-reference/file/management/api/openapi.json GET /v1/files/retrieve_content","href":"/api-reference/file-management-retrieve-content"},{"title":"Delete File","sidebarTitle":"Delete","openapi":"api-reference/file/management/api/openapi.json POST /v1/files/delete","href":"/api-reference/file-management-delete"}]}]},{"group":"Models","icon":"boxes","pages":[{"group":"OpenAI Compatible","pages":[{"title":"List Models","openapi":"api-reference/models/openai/api/list-models.json GET /v1/models","href":"/api-reference/models/openai/list-models"},{"title":"Retrieve Model","openapi":"api-reference/models/openai/api/retrieve-model.json GET /v1/models/{model_id}","href":"/api-reference/models/openai/retrieve-model"}]},{"group":"Anthropic Compatible","pages":[{"title":"List Models","openapi":"api-reference/models/anthropic/api/list-models.json GET /anthropic/v1/models","href":"/api-reference/models/anthropic/list-models"},{"title":"Retrieve Model","openapi":"api-reference/models/anthropic/api/retrieve-model.json GET /anthropic/v1/models/{model_id}","href":"/api-reference/models/anthropic/retrieve-model"}]}]},{"group":"Legacy APIs","icon":"history","pages":[{"group":"Video Generation","pages":[{"title":"Create Text-to-Video Generation Task","sidebarTitle":"Text to Video","openapi":"api-reference/video/generation/api/text-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-t2v"},{"title":"Image-to-Video Task","sidebarTitle":"Image to Video","openapi":"api-reference/video/generation/api/image-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-i2v"},{"title":"Create First \u0026 Last Frame Video Generation Task","sidebarTitle":"Start / End to Video","openapi":"api-reference/video/generation/api/start-end-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-fl2v"},{"title":"Subject-Reference to Video Generation Task","sidebarTitle":"Subject Reference to Video","openapi":"api-reference/video/generation/api/subject-reference-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-s2v"},{"title":"Query Video Generation Task Status","openapi":"api-reference/video/generation/api/openapi.json GET /v1/query/video_generation","href":"/api-reference/video-generation-query"},{"title":"Video Download","sidebarTitle":"Download the Video File","openapi":"api-reference/video/generation/api/openapi.json GET /v1/files/retrieve","href":"/api-reference/video-generation-download"}]},{"group":"Image Generation","pages":[{"title":"Text to Image Generation","sidebarTitle":"Text-to-Image","openapi":"api-reference/image/generation/api/text-to-image.json POST /v1/image_generation","href":"/api-reference/image-generation-t2i"},{"title":"Image-to-Image Generation","sidebarTitle":"Image to Image","openapi":"api-reference/image/generation/api/image-to-image.json POST /v1/image_generation","href":"/api-reference/image-generation-i2i"}]}]}]},{"tab":"M Plan","pages":[{"title":"M Plan","href":"/m-plan/intro"}]},{"tab":"Pricing","pages":[{"title":"Pricing","href":"/pricing/overview"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/models"}]},{"tab":"Developer Program","href":"https://platform.minimax.io/activity/contact-us-en"}]},"basePath":"","title":"Create Message - MiniMax API Docs","deploymentId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","buildId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-CkHZoIpP.js","dist-B9NA4YFQ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-C8ktwDU8.js","snippetPresets-T_OU6iFp.js","utils-ZwMhYBEy.js","style-to-object-BY3JEAdk.js","utils-Bkq2iFgu.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-BL9fiH8n.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CmgCbVBT.js","_Uint8Array-Ai_0D4xE.js","isObject-FP1Yky1u.js","ApiExamples-DFGM09p_.js","usePlaygroundInputsStore-DkwJlKUE.js","shallow-BHRrfnLS.js","isEqual-BJ_QXy06.js","CodeSnippets-DIweseYm.js","CodeSnippet-8p36p4M7.js","use-playground-group-access-B8gEWau8.js","Page-Wf3pSVXf.js","api-description-markdown-BmnQ9fAd.js","DynamicMarkdown-BYqxB8Iw.js","SectionHeading-D-hNGwRE.js","MethodPill-CLLk3435.js","getPastedJson-CniQ58Cw.js","Check2Icon-C_Ntbivk.js","axios-CsQoIw0U.js","Markdown-DiXm32Ac.js","AssistantPageLink-C28i5dBV.js"]}