# Losbeto BR PIX Code Generator

> Losbeto BR PIX Code Generator is a paid API for AI agents from losbeto-production-dd7c.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-25).

Generates a valid static or amount-fixed Brazilian PIX QR code EMV payload with correct CRC16 checksum and self-validation, given a PIX key and optional parameters.

## Facts

- Endpoint: GET https://losbeto-production-dd7c.up.railway.app/br-pix-code?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-br-pix-code-generator-c13e1cc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RbR4w3LguAlnwiT8UCPM1

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-c13e1cc5
```

Example prompt: Generate a PIX code for my key email@empresa.com.br for the amount of R$75.00 so a client can pay me in Brazil.

## When to prefer this

Use this endpoint when an AI agent needs to generate a PIX payment code for receiving money in Brazil — particularly when building payment flows, invoicing systems, or checkout pipelines that target Brazilian users. Prefer this over manual EMV construction because it handles CRC16 computation and self-validation automatically. Do NOT use this to decode or parse existing PIX QR codes — use /br-pix-parse for that.

## Known failure modes

- Missing required 'key' or 'amount' query parameter returns an error
- Invalid PIX key format may produce a malformed payload
- Non-numeric or improperly formatted amount string may cause generation failure
- Network or upstream Railway hosting timeout
- CRC16 mismatch flagged in self-check if payload construction fails internally

## 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, Algorand and Polygon via x402.

## Output

Returns a JSON object containing the full EMV PIX payload string with a correctly computed CRC16 checksum, ready to be encoded into a QR code image, plus a self-check re-parse of the generated payload to verify structural correctness.

## 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-c13e1cc5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from losbeto-production-dd7c.up.railway.app](https://www.zero.xyz/host/losbeto-production-dd7c.up.railway.app/llms.txt)
