# Losbeto LLM Inference Gateway (x402)

> Losbeto LLM Inference Gateway (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).

Pay-per-call LLM inference via GET request — submit a free-text query and get an AI-generated answer, billed at $0.005 USDC per call with no API keys required

## Facts

- Endpoint: GET https://markets.losbeto.xyz/llm?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-llm-inference-gateway-x402-14b5bec4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NP22Brei9v-LeSWNRB7fI

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-llm-inference-gateway-x402-14b5bec4
```

Example prompt: Ask Losbeto's LLM gateway to summarize the following paragraph in 3 bullet points, limiting the response to 200 tokens: 'Central banks globally are tightening monetary policy in response to persistent inflation, raising concerns about a synchronized global recession.'

## When to prefer this

Choose this endpoint when an AI agent needs one-off or high-frequency LLM inference without managing provider API keys or subscriptions — especially useful for autonomous agents that pay micropayments in USDC on Base, Solana, or Algorand. Prefer this over hosted OpenAI/Groq directly when you want keyless, account-free access with flat per-call pricing and automatic provider failover.

## Known failure modes

- Payment not sent or insufficient USDC — returns HTTP 402 Payment Required
- max_tokens parameter missing or invalid — returns 400 Bad Request
- q (query) parameter missing — returns 400 Bad Request
- All upstream LLM providers unavailable — returns 503 or provider timeout
- USDC payment on unsupported chain — transaction not recognized, request rejected

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

A JSON response containing the LLM-generated text answer to the submitted query, produced by the first available provider in a Groq/Gemini failover chain, truncated to the requested max_tokens.

## 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": [
      "max_tokens",
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Free-text search query"
      },
      "max_tokens": {
       "type": "string",
       "description": "max_tokens parameter"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "LLM inference as a pay-per-call commodity — ask anything (?q=...) and get the first live answer from a multi-provider failover chain (Groq, Gemini, paid tiers when configured). One flat price, any subject, no API keys to manage. This is the high-frequency SKU agents refill daily: summarization, extraction, drafting, classification. OpenAI-compatible door at POST /v1/chat/completions..."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-llm-inference-gateway-x402-14b5bec4/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)
