# Losbeto Jupiter Swap — Solana Token Swap via x402

> Losbeto Jupiter Swap — Solana Token Swap via x402 is a paid API for AI agents from api.losbeto.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Executes or quotes a token swap on Solana using Jupiter aggregator, paid per-call via USDC micropayment over x402 protocol.

## Facts

- Endpoint: GET https://api.losbeto.xyz/jupiter-swap
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-jupiter-swap-solana-token-swap-via-x402-5bae3c5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Km37dbWVkQcxBklwtkT4

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-jupiter-swap-solana-token-swap-via-x402-5bae3c5d
```

Example prompt: Get me a Jupiter swap quote to exchange 10 SOL for USDC on Solana — I want the best route and to know the expected output amount and price impact.

## When to prefer this

Choose this endpoint when an AI agent needs to obtain swap quotes or execute token swaps on the Solana blockchain via Jupiter aggregator, and is willing to pay $0.02 USDC per call using the x402 micropayment protocol. Prefer over alternatives when operating in a Solana-native context or when Jupiter's multi-route aggregation is desired.

## Known failure modes

- Missing or invalid token mint addresses causing a bad request
- Insufficient liquidity for the requested token pair returning no route
- Malformed input schema due to the loosely defined 'properties' property field
- x402 payment failure preventing request from being processed
- Token pair not supported on Jupiter returning an empty or error response

## 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 optimal swap route, expected output token amount, price impact percentage, and transaction data or a quote from the Jupiter aggregator on Solana.

## 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",
     "properties": {
      "pair": {
       "type": "string",
       "description": "Currency pair, e.g. EUR/USD, GBP/USD, USD/JPY"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Jupiter swap quote with the best DEX route and expected slippage for a given pair and size, so an agent can price execution before committing."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-jupiter-swap-solana-token-swap-via-x402-5bae3c5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.losbeto.xyz](https://www.zero.xyz/host/api.losbeto.xyz/llms.txt)
