# Mistral AI Text Embeddings via Locus x402

> Mistral AI Text Embeddings via Locus x402 is a paid API for AI agents from mistral.x402.paywithlocus.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-11).

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.

## Facts

- Endpoint: POST https://mistral.x402.paywithlocus.com/mistral/embed?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mistral-ai-text-embeddings-via-locus-x402-e2214859
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-sbpQuhumvHEi7Ka3udC2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mistral-ai-text-embeddings-via-locus-x402-e2214859 -d '<json body>'
```

Example prompt: 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'.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Premier and open-source LLMs — Mistral Large, Medium, Small, Codestral, Magistral reasoning, Pixtral vision, text embeddings, and content moderation.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {}
    }
   ]
  },
  "model": {
   "type": "string"
  },
  "encoding_format": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mistral-ai-text-embeddings-via-locus-x402-e2214859/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mistral.x402.paywithlocus.com](https://www.zero.xyz/host/mistral.x402.paywithlocus.com/llms.txt)
