{"uid":"cap_-sbpQuhumvHEi7Ka3udC2","slug":"mistral-ai-text-embeddings-via-locus-x402-e2214859","name":"Mistral AI Text Embeddings 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/embed?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"anyOf":[{"type":"string"},{"type":"array","items":{}}]},"model":{"type":"string"},"encoding_format":{"type":"string"}}},"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.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oXGX1mZFmo0qk2X8QZFaS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts one or more text strings into dense vector embeddings using Mistral's embedding models (mistral-embed or codestral-embed), paid per-call via x402 micropayment.","exampleAgentPrompt":"Embed these three product descriptions using mistral-embed and return the float vectors so I can store them in my vector database: 'wireless noise-cancelling headphones', 'over-ear studio monitor headphones', 'true wireless earbuds with ANC'.","exampleUseCases":[{"title":"RAG pipeline document indexing","prompt":"I need to vectorize these 5 paragraphs from my knowledge base using mistral-embed so I can store them in Pinecone for retrieval-augmented generation — can you embed them all and return float vectors?"},{"title":"Semantic search query embedding","prompt":"Take this user search query — 'best practices for containerizing Python microservices' — and embed it with mistral-embed as a float array so I can run a nearest-neighbor search against my document index."},{"title":"Code similarity with Codestral embeddings","prompt":"Use codestral-embed to generate float embeddings for these two Python functions so I can compute their cosine similarity and detect if they're semantically equivalent."}],"resultDescription":"Returns a JSON object containing an embedding data payload (vectors for each input text as float arrays or base64), a payment record showing settled and authorized USDC amounts, and a request object with a unique ID and status URL for tracking the call.","failureModes":["Invalid or unsupported model name returns an error — use 'mistral-embed' or 'codestral-embed'","Empty or missing 'input' array causes a validation error","Payment failure or insufficient USDC balance prevents processing","Input text exceeding model token limits may be truncated or rejected","Invalid encoding_format value (not 'float' or 'base64') returns a schema error"],"whenToPreferThis":"Choose this endpoint when you need Mistral-quality embeddings (including the code-specialized codestral-embed) with pay-per-call USDC micropayments via x402, requiring no subscription or API key management — ideal for agents that need on-demand embedding without upfront commitment or when codestral-embed's code-domain specialization is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:33:10.169Z","isFirstParty":false,"canonicalSlug":"mistral-ai-text-embeddings-via-locus-x402-e2214859"}