# Losbeto OpenAI-Compatible LLM Chat Completions (x402)

> Losbeto OpenAI-Compatible LLM Chat Completions (x402) is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Sends a chat prompt to an OpenAI-compatible LLM gateway and receives a completion response, billed per-call at $0.005 USDC via the x402 protocol — no API keys or accounts required.

## Facts

- Endpoint: POST https://markets.losbeto.xyz/v1/chat/completions?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-openai-compatible-llm-chat-completions-x402-2791cb05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oJ-JO08I-j7oon31eP7gJ

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-openai-compatible-llm-chat-completions-x402-2791cb05 -d '<json body>'
```

Example prompt: Ask the Losbeto LLM gateway to summarize this paragraph for me — use up to 512 tokens and a temperature of 0.3, and pay the $0.005 USDC fee automatically: 'Artificial intelligence is rapidly transforming industries by automating tasks that once required human expertise.'

## When to prefer this

Choose this endpoint when an AI agent needs keyless, accountless LLM inference billed in USDC stablecoins via x402 micropayments — ideal for autonomous agents on Base, Solana, or Algorand that cannot hold traditional API credentials. Prefer it over direct OpenAI/Groq APIs when the agent must pay programmatically per call without pre-provisioned keys, or when operating in a crypto-native agentic stack. Not suitable when streaming, tool use, or vision/image input is required.

## Known failure modes

- Payment not received or invalid x402 USDC transaction — returns 402 Payment Required
- Messages array missing or malformed — returns 400 Bad Request
- All backend providers (Groq, Gemini) unavailable — returns 503 or error in response body
- Streaming, function/tool calls, or vision inputs requested — returns an explicit unsupported-feature error
- max_tokens outside 16-2048 range — may be clamped or rejected
- Temperature outside 0.0-1.5 range — may be clamped or return validation error

## 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

An OpenAI-compatible chat.completion JSON object containing the assistant's message content, model used, and token usage counts. The response mirrors the standard OpenAI /v1/chat/completions format so any OpenAI SDK can parse it directly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "method": {
     "type": "string",
     "description": "POST"
    },
    "bodyParams": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "model": {
       "type": "string",
       "default": "losbeto-fast",
       "description": "Model alias; any string accepted (failover chain picks the live provider)."
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "role",
         "content"
        ],
        "properties": {
         "role": {
          "enum": [
           "system",
           "user",
           "assistant"
          ],
          "type": "string"
         },
         "content": {
          "type": "string"
         }
        }
       },
       "description": "OpenAI chat messages, oldest first."
      },
      "max_tokens": {
       "type": "integer",
       "default": 1024,
       "description": "Completion cap, 16-2048."
      },
      "temperature": {
       "type": "number",
       "default": 0.4,
       "description": "Sampling temperature, 0.0-1.5."
      }
     },
     "additionalProperties": false
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "OpenAI-compatible chat completions over x402: POST the standard {model, messages, max_tokens} body and receive a standard chat.completion response — any OpenAI SDK works by changing only base_url. Payment is the x402 challenge (USDC on Base, Solana or Algorand), so an agent needs no provider account, no credit card, no API key. Failover chain behind the door: Groq first for speed, Gemini and paid tiers as backup. v1: no streaming, tools or vision — declared in every error..."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-openai-compatible-llm-chat-completions-x402-2791cb05/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)
