{"uid":"cap_-q1ibMDdlsneAM0Z7B06H","slug":"locus-x402-mistral-chat-api-bb45578c","name":"Locus x402 Mistral Chat API","description":"Locus public pay-per-use API","url":"https://mistral.x402.stage.paywithlocus.com/mistral/chat","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":null,"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_Q0GstGxcWcevC_HfBVg2L","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":"Pay-per-use Mistral LLM chat completions endpoint with x402 micropayment billing at $0.001 USDC per call","exampleAgentPrompt":"Using the Mistral large model, complete this conversation with temperature 0.7 and a max of 512 tokens — the user asked: 'Summarize the key differences between REST and GraphQL APIs in three bullet points.'","exampleUseCases":[{"title":"On-demand code generation with Codestral","prompt":"Use codestral-latest to generate a Python function that parses ISO 8601 timestamps and converts them to Unix epoch time — keep max tokens to 300 and temperature at 0.2 for deterministic output."},{"title":"Structured JSON extraction from user text","prompt":"Send this customer feedback to mistral-large-latest and extract the sentiment, main complaint, and urgency level as a JSON object — response_format should be json_object, max 200 tokens: 'Delivery was two weeks late and the packaging was completely crushed.'"},{"title":"Multi-turn assistant conversation","prompt":"Continue this support conversation using mistral-large-latest at temperature 0.5, max 400 tokens — the user said 'My order hasn't arrived after 10 days, what should I do?' and our assistant previously said 'I'm sorry to hear that, let me look into it.'"}],"resultDescription":"Returns a Mistral chat completion object containing the assistant's reply message, finish reason, usage statistics (prompt/completion tokens), and optionally structured tool call payloads or JSON-formatted output depending on the response_format and tools configured.","failureModes":["Payment failure: x402 payment authorization rejected if USDC balance insufficient or max_tokens not specified (required for metered billing)","Invalid model ID: returns error if model string does not match a valid Mistral model (e.g. mistral-large-latest, codestral-latest)","Missing messages array: request fails without at least one message object in the messages field","Token limit exceeded: error if max_tokens exceeds model context window","Rate limiting or staging environment downtime: endpoint is on staging infrastructure and may have lower reliability SLAs","Malformed tool definitions: tool_choice or tools array with invalid schema causes inference error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use access to Mistral models (including mistral-large-latest and codestral-latest) without committing to a subscription, billed via x402 USDC micropayments at $0.001 per call. Ideal for agent workflows, low-volume or sporadic inference tasks, or applications where per-call cost accountability matters. Prefer over direct Mistral API when you want automatic micropayment settlement via the x402 protocol rather than managing API keys and monthly billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:36:55.047Z","isFirstParty":false}