# POST /market/quote: $0.001 per call

Describe a job in plain English and get the best proven third-party x402 service for it, with our Aayat AI-fulfilled price up front: we'd buy the call from the seller for you and charge this all-in price (seller price + 30% + $0.005). Only sellers that answered 95%+ of our checks this week, $0.10 or less, on Base USDC, checked live. A quote only: nothing is bought yet.

- **Price:** $0.001 in USDC, the same on Base, Solana, Polygon, Arbitrum. Failed calls are never charged.
- **Free trial:** yes, 20 free calls a day from Claude, Cursor or any MCP client ([set-up](/mcp/setup)).
- **Answers cached for:** not cached
- **Data sources:** x402-guide finder (our daily index of the Bazaar and our unpaid uptime checks); one live unpaid request to each shortlisted seller
- **Lane:** Marketplace ([OpenAPI](/openapi/marketplace.json))
- **Live health:** [status page](/status)

## Free sample

See an answer for the demo input first, free (no payment, 10 a minute): [https://aayatai.com/sample/market-quote](/sample/market-quote). It is a stored real answer when we have one, otherwise an example marked `"kind": "illustrative"`.

```bash
curl "https://aayatai.com/sample/market-quote"
```

## 1. See the price (free)

Call it without paying: you get `402 Payment Required` and a `PAYMENT-REQUIRED` header with the exact price and where to pay.

```bash
curl -i -X POST https://aayatai.com/market/quote -H "content-type: application/json" -d '{"job":"live token price and liquidity on Base"}'
```

## 2. Pay and call (TypeScript)

```bash
npm install @x402/fetch @x402/evm viem
```

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet used only by your agent, holding a little USDC on Base.
const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://aayatai.com/market/quote", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"job":"live token price and liquidity on Base"}),
});
console.log(await res.json());
```

## 3. Or as an MCP tool

```ts
// MCP server: https://aayatai.com/mcp (Streamable HTTP). With the x402 MCP client (see /start):
const result = await client.callTool("market-quote", {"job":"live token price and liquidity on Base"});
```

## Inputs

- `job` **(required)** (string): The job in plain English, e.g. 'live token price on Base'.
- `input` (object): Optional: the input you'd send the seller (kept with the quote for the buy step).
- `maxPrice` (number): Optional: the most you'll pay us for the job, in USD.

Bad inputs are rejected with HTTP 400 before any payment is asked for.

## Example answer

Example only: the shape of an answer, with placeholder addresses and made-up figures. It is not data about any real token or wallet; call the service (or its free sample) for real results.

```json
{
  "quoteId": "3f9a0c1d2e4b5a6978c0d1e2",
  "expiresAt": "2026-09-29T12:05:00.000Z",
  "job": "live token price and liquidity on Base",
  "price": "$0.012",
  "priceLabel": "Aayat AI-fulfilled price (we buy from the seller for you)",
  "priceUsd": 0.012,
  "sellerPriceUsd": 0.005,
  "seller": {
    "name": "a.example token price",
    "resource": "https://a.example/token/price",
    "method": "GET",
    "does": "Live token price and liquidity on Base",
    "reliability": "answered 100% of our 6 unpaid checks this week",
    "inputExample": {
      "method": "GET",
      "queryParams": {
        "token": "string"
      }
    }
  },
  "alternatives": [],
  "buying": {
    "open": false,
    "why": "Buying opens after the capped buyer is live (target 13 Oct). Nothing has been bought or paid."
  },
  "refunds": "When buying opens, a failed call is never charged: the price goes back to your credits.",
  "note": "Ranked by the Aayat AI finder; only proven sellers, re-checked just now."
}
```

New here? [Getting started in 60 seconds](/start). All services: [Aayat AI](/).