# Losbeto BR PIX Code Generator

> Losbeto BR PIX Code Generator is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Generates a valid Brazilian PIX QR code EMV payload (with CRC16 checksum) from a PIX key, amount, and optional metadata — for use when an AI agent needs to receive payment in Brazil.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/br-pix-code?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-br-pix-code-generator-731e2e8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XpUfzVMTuxKrOq60R0Prl

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 losbeto-br-pix-code-generator-731e2e8b
```

Example prompt: Generate a Brazilian PIX QR code for my key 'meupix@email.com.br' with an amount of R$49.90 so I can receive payment — include my name 'João Silva' and city 'São Paulo'.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically generate a PIX QR code payload to receive BRL payments in Brazil — especially for agentic commerce, invoicing, or checkout flows. Do NOT use this to decode or parse an existing PIX QR code (use /br-pix-parse for that). Prefer this over manual EMV construction because it handles CRC16 computation and self-validates the output automatically. Ideal when building Brazil-facing payment flows without a Brazilian bank API account.

## Known failure modes

- Missing required 'key' parameter returns an error — PIX key is mandatory
- Invalid or malformed PIX key format may produce an unacceptable EMV payload
- CRC16 mismatch detected in self-check indicates an encoding error
- Non-numeric amount strings may cause parsing failure
- Payment via x402 not completed results in 402 response before payload is returned

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.

## Output

Returns a JSON object containing the EMV-formatted PIX payload string (the raw QR code content), the CRC16 checksum appended to the payload, and a self-check re-parse of the generated code confirming the fields are correctly encoded. This is the string you embed in a QR image or display for scanning.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "amount",
      "key"
     ],
     "properties": {
      "key": {
       "type": "string",
       "description": "key parameter"
      },
      "amount": {
       "type": "string",
       "description": "amount parameter"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Generate a valid static or amount-fixed PIX BR Code from ?key= plus optional name, city, amount, txid. Returns the EMV payload with a correct CRC16, plus a self-check that re-parses what it just built. Use when an agent needs to be PAID in Brazil. Do NOT use to decode an existing QR — that is /br-pix-parse."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-br-pix-code-generator-731e2e8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
