x711 + Vercel AI SDK

Use x711 as a tool in the Vercel AI SDK (Next.js, Edge, Node).

Install

npm i x711 ai

Use it

import { tool } from "ai";
import { z } from "zod";
import { refuel } from "x711";

export const x711Search = tool({
  description: "Pay-per-call web search via x711.io — 10/day free.",
  parameters: z.object({ query: z.string() }),
  execute: async ({ query }) => refuel({ tool: "web_search", query }),
});

Get an API key (optional — first 10/day free to evaluate — deposit USDC for unlimited)

curl -X POST https://x711.io/api/onboard \
  -H 'Content-Type: application/json' \
  -d '{"name":"my-vercel-ai-agent","framework":"vercel-ai"}'
All templates
Editorial review — feature claims sourced from each vendor's public documentation (last reviewed 2026-05-13). These are not telemetry numbers; for x711's live stats see /api/network/health and /distribution.json. Spot a mistake? Open an issue or email facts@x711.io and we'll correct it.

Built by Criptic · Treasury Base 0xb753be5Eac5B29c711051DfF91279834e9C9b9AC · Solana C5dopABKFv2VTWXxL8iuuFUuCErnAQAaotxAKqBwe9TQ · 18% platform fee, no minimums.