apipay

v0.4.2
io.github.iamalanlui/apipay Checked 3 days ago Published 2 months ago

Prepaid balance for AI agents: one key, 4,900+ tools your agent can run today, caps, receipts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_apis

Search the apifare catalog of ready-to-call APIs (web search, scraping, weather, and more). Returns each API's slug, params, and per-call price in prepaid credits. Every miss is logged so missing APIs get added.

ParameterTypeDescription
query *stringWhat kind of API you need, in plain words, e.g. "search the web"

call_api

Call an API from the apifare catalog by slug (find slugs with search_apis). The cost in prepaid credits is deducted automatically and returned with the result.

ParameterTypeDescription
slug *stringAPI slug from search_apis, e.g. "web-search"
paramsobjectParams object per the API's manifest, e.g. {"q": "latest AI news"}

proxy_call

Call a provider's NATIVE API through the apifare transparent proxy — write the request exactly as the provider's own docs say; apifare injects the auth, meters the prepaid balance, and returns the provider's response verbatim (including native error codes). Providers: dataforseo, open-meteo, apify (no key from the user), and brave/scrapingbee/openweather/fal (uses the user's vaulted key). Example: provider "dataforseo", method "POST", path "v3/serp/google/organic/live/advanced", body per DataForSEO docs.

ParameterTypeDescription
path *stringProvider-native path, no leading slash, e.g. "v3/serp/google/organic/live/advanced"
provider *stringProxy provider name, e.g. "dataforseo"
bodyJSON body per the provider's docs
methodstringHTTP method (default GET)
queryobjectQuery params per the provider's docs

check_balance

Check the remaining apifare prepaid credit balance (1 credit = $0.01) and get the top-up link.

topup

Top up the apifare balance from the owner's standing auto-refill mandate (if the owner enabled one). Charges within the owner's configured limits and returns the new balance. Without a mandate, returns payment instructions to relay to the user.

ParameterTypeDescription
amount_usdintegerOptional whole-dollar amount; defaults to the mandate's refill amount and is clamped to it

vendor_call

Call a vendor MANAGEMENT API (supabase, vercel, fly, resend, github, npm, cloudflare, lemonsqueezy) with the owner's vaulted root credential injected server-side. Native request/response; destructive, billing, and member/admin routes are blocked. The root token is never visible.

ParameterTypeDescription
path *stringThe vendor's own API path, e.g. "v9/projects"
vendor *stringVendor name, e.g. "vercel"
bodyobjectJSON body for write methods
methodstringHTTP method (default GET)

secret_transfer

Move a secret from one vendor to another SERVER-SIDE — the value never enters this conversation. Example: fetch a Supabase service_role key and place it as a Vercel env var.

ParameterTypeDescription
from *object
to *object

secret_generate

Generate a random secret and place it directly at a vendor resource SERVER-SIDE — the value never enters this conversation.

ParameterTypeDescription
to *object
bytesinteger