{"uid":"cap_64GoFhH1sdcYYssjkW8Ap","slug":"mistral-ai-chat-via-locus-x402-15b3ac22","name":"Mistral AI Chat via Locus x402","description":"Premier and open-source LLMs — Mistral Large, Medium, Small, Codestral, Magistral reasoning, Pixtral vision, text embeddings, and content moderation.","url":"https://mistral.x402.paywithlocus.com/mistral/chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"number"},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{}}]},"model":{"type":"string"},"tools":{"type":"array","items":{}},"top_p":{"type":"number"},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"name":{"type":"string"},"role":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","required":["type"],"properties":{"text":{"type":"string"},"type":{"type":"string"},"image_url":{"type":"object","required":["url"],"properties":{"url":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}},{"type":"null"}]},"tool_calls":{"type":"array","items":{"type":"object","additionalProperties":true}},"tool_call_id":{"type":"string"}},"additionalProperties":true}},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":true}]},"response_format":{"type":"object","additionalProperties":true}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y8RQu52cwqeKt2anEsEQN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Send chat messages to Mistral LLMs (Large, Small, Medium, Codestral, Magistral, Pixtral) via a pay-per-call x402 USDC micropayment gateway","exampleAgentPrompt":"Using Mistral Large, send this conversation to the chat endpoint — system prompt: 'You are a concise assistant', user message: 'Explain transformer attention in 3 bullet points' — keep max_tokens at 300 and temperature at 0.7.","exampleUseCases":[{"title":"On-demand code review with Codestral","prompt":"Run my Python function through Codestral and ask it to identify bugs and suggest improvements — here's the code: `def fib(n): return fib(n-1)+fib(n-2)`. Use max_tokens 500 and temperature 0.2."},{"title":"Structured JSON extraction from raw text","prompt":"Send this customer support ticket to Mistral Small and ask it to extract the issue category, urgency level, and customer name as a JSON object: 'Hi, John here — my order #4421 hasn't arrived in 3 weeks, this is urgent!' Set response_format to json_object and max_tokens to 200."},{"title":"Multimodal image understanding with Pixtral","prompt":"Use the Pixtral vision model to describe what's in this product photo and tell me if there are any visible defects — here's the image URL: https://example.com/product123.jpg. Keep max_tokens at 400."}],"resultDescription":"Returns a JSON object with a `data` field containing the Mistral chat completion (choices, message content, tool calls, usage stats), a `success` boolean, a `payment` object showing settled and authorized USDC amounts, and a `request` object with a UUID and status URL for tracking the metered call.","failureModes":["Insufficient USDC balance or failed x402 payment authorization — returns payment failure error","Invalid or unsupported model ID — returns model not found error","max_tokens not specified — may be rejected since it's required to bound the metered authorization","Messages array malformed or empty — returns validation error","Rate limits or upstream Mistral API errors — returns 5xx with error detail","Tool definitions malformed — function calling fails with schema validation error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call access to Mistral's model family (including Codestral for code, Magistral for reasoning, and Pixtral for vision) without a Mistral subscription, paying only $0.001 USDC per call via the x402 micropayment protocol. Ideal for agents that need sporadic, metered LLM access billed on-chain, or for workflows that specifically require Mistral's open-source model lineup rather than OpenAI or Anthropic models.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:37:24.754Z","isFirstParty":false,"canonicalSlug":"mistral-ai-chat-via-locus-x402-15b3ac22"}