{"uid":"cap_KnoXWTMKirXAafKkcty0F","slug":"telnyx-x402-gateway-minimax-m2-7-chat-completions-5d271735","name":"Telnyx x402 Gateway – MiniMax-M2.7 Chat Completions","description":"Pay USDC per request for Telnyx Inference and Audio (text-to-speech, speech-to-text) through x402.","url":"https://x402.telnyx.com/v1/chat/completions/_t/mini?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1,"description":"Fixed to one completion per paid call."},"model":{"type":"string","const":"MiniMaxAI/MiniMax-M2.7","description":"Model identifier; fixed to MiniMaxAI/MiniMax-M2.7 on this route."},"tools":{"type":"array","items":{"type":"object"},"maxItems":16},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":"string","maxLength":8000}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":4096,"minimum":512},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-xxx","usage":{"total_tokens":16,"prompt_tokens":12,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007157","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.007157/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007157","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007157","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pH6USt1Sf1zZDqU7Zuzeb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007157","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate chat completions using the MiniMaxAI/MiniMax-M2.7 model via a pay-per-request USDC micropayment gateway (x402 protocol)","exampleAgentPrompt":"Using the Telnyx x402 MiniMax gateway, send a chat message with the system prompt 'You are a helpful assistant' and user message 'Explain the x402 payment protocol in two sentences' — pay per request with USDC, temperature 0.7, max 1024 tokens.","exampleUseCases":[{"title":"Pay-per-call agent reasoning step","prompt":"I need to run a quick reasoning step through MiniMax-M2.7 — send a system message saying 'You are an expert analyst' and a user message asking 'What are the top 3 risks of deploying AI agents in production?' with max 2048 tokens, and just charge my USDC wallet per call instead of a monthly subscription."},{"title":"Crypto-native chatbot backend","prompt":"Build a chatbot response for my dApp — send the conversation history so far as OpenAI-style messages to the MiniMax-M2.7 model via Telnyx x402, with temperature 0.5 and up to 1024 tokens, paying in USDC each time a user sends a message."},{"title":"Tool-augmented LLM call with micropayment","prompt":"I want to call MiniMax-M2.7 with a set of tool definitions for a weather lookup and a calculator, pass in the user message 'What is 42 multiplied by the current temperature in Berlin?', and settle the inference cost in USDC using x402 — max 512 tokens."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing the assistant's generated message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total tokens), a unique completion ID, and the object type 'chat.completion'.","failureModes":["Payment failure – insufficient USDC balance or x402 payment rejected, resulting in a 402 Payment Required response","Invalid model – any model value other than 'MiniMaxAI/MiniMax-M2.7' will be rejected since the field is const","Message limit exceeded – submitting more than 32 messages or content exceeding 8000 characters per message triggers validation errors","Token limit out of range – max_tokens below 512 or above 4096 returns a validation error","Temperature out of range – values below 0 or above 2 are rejected","Too many tools – more than 16 tool definitions causes a validation error","Network timeout – inference latency may cause timeouts on very long generations"],"whenToPreferThis":"Choose this endpoint when you need pay-per-request LLM inference without a subscription or API key contract, specifically when using the MiniMaxAI/MiniMax-M2.7 model and settling costs in USDC via the x402 micropayment protocol. It is ideal for crypto-native agents, dApps, or serverless workflows where usage is sporadic and subscription billing is impractical. Prefer it over traditional API providers when you want on-chain verifiable payment settlement and no monthly commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:33:59.362Z","isFirstParty":false,"canonicalSlug":"telnyx-x402-gateway-minimax-m2-7-chat-completions-5d271735"}