# Jupiter Swap Quote (x402) — CuseTheJuice

> Jupiter Swap Quote (x402) — CuseTheJuice is a paid API for AI agents from app.cusethejuice.com, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Returns a Jupiter DEX swap quote between two Solana SPL token mints for a given raw input amount, paid via x402 micropayment

## Facts

- Endpoint: GET https://app.cusethejuice.com/api/jupiter/quote-x402
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/app-cusethejuice-com-0a540c24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1Dfc1vw5V19Jka1KA9ZAZ

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 app-cusethejuice-com-0a540c24
```

Example prompt: Get me a Jupiter swap quote to trade 1,000,000 raw units of USDC (mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) for SOL (mint So11111111111111111111111111111111111111112) with 50 basis points slippage on Solana.

## When to prefer this

Use this endpoint when you need a real-time Jupiter aggregator swap quote on Solana between any two SPL token mints and want to pay per-call via x402 USDC micropayment without managing a Jupiter API key directly. Prefer this over direct Jupiter API calls when operating in an agentic x402-payment context on Base/Solana.

## Known failure modes

- Invalid or unrecognized SPL mint address returns an error in the error field
- Amount of 0 or missing amount may return a null result
- Missing JUPITER_API_KEY on the server side causes 500 or auth error
- x402 payment not fulfilled results in 402 response before quote is returned
- Unsupported token pair with no Jupiter route returns null quote
- Network congestion on Solana may cause delayed or stale quote data

## How this service works

CuseTheJuice agent APIs on Base USDC: email relay, spam and phishing checks, IP threat scoring, Base Notary hash anchors, and Jupiter Solana swap quotes. Pay with x402 (Base USDC). HTTP shape: extensions.bazaar on the 402. Catalog: https://app.cusethejuice.com/agents

## Output

Returns a JSON object with the inputMint, outputMint, amount, slippageBps, and a full Jupiter quote object containing routing details, estimated output amount, price impact, and swap route information.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "result"
     ],
     "properties": {
      "error": {
       "type": "string"
      },
      "result": {
       "type": [
        "object",
        "null"
       ],
       "required": [
        "inputMint",
        "outputMint",
        "amount",
        "slippageBps",
        "quote"
       ],
       "properties": {
        "quote": {
         "type": "object"
        },
        "amount": {
         "type": "string"
        },
        "inputMint": {
         "type": "string"
        },
        "outputMint": {
         "type": "string"
        },
        "slippageBps": {
         "type": "number"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result"
 ],
 "properties": {
  "error": {
   "type": "string"
  },
  "result": {
   "type": [
    "object",
    "null"
   ],
   "required": [
    "inputMint",
    "outputMint",
    "amount",
    "slippageBps",
    "quote"
   ],
   "properties": {
    "quote": {
     "type": "object"
    },
    "amount": {
     "type": "string"
    },
    "inputMint": {
     "type": "string"
    },
    "outputMint": {
     "type": "string"
    },
    "slippageBps": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/app-cusethejuice-com-0a540c24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from app.cusethejuice.com](https://www.zero.xyz/host/app.cusethejuice.com/llms.txt)
