Tavily Search via Spawnpay

AI-optimised web search through Tavily, billed in USDC by the call.

BYOK $0.001 / 2xx No reselling — your upstream relationship stays exactly as it is.

Why route through Spawnpay

RAG agents that need grounded, summarised search results. Spawnpay handles billing + audit so every retrieval is reconciled.

Endpoint

Method
POST
Upstream path
/search
Upstream auth
Authorization
Auth note
X-Provider-Key becomes "Authorization: Bearer …" upstream.
Routing fee
$0.001 USDC per upstream 2xx (4xx is free)
Provider docs

curl

curl -X POST https://spawnpay.ai/api/proxy \
  -H 'Authorization: Bearer spk_live_…' \
  -H 'X-Provider-Key: $TAVILY_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "provider": "tavily",
  "path": "/search",
  "method": "POST",
  "body": {
    "query": "agent-native payments",
    "search_depth": "basic"
  }
}'

Node (spawnpay-paywall)

import { proxy } from 'spawnpay-paywall';

const out = await proxy({
  "provider": "tavily",
  "path": "/search",
  "method": "POST",
  "body": {
    "query": "agent-native payments",
    "search_depth": "basic"
  },
  "providerKey": process.env.TAVILY_KEY
});

console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt

What you get back

The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.

▶ Try Tavily Search live → 60-sec quickstart All providers