apipay
v0.4.2Prepaid 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | What 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.
| Parameter | Type | Description |
|---|---|---|
slug * | string | API slug from search_apis, e.g. "web-search" |
params | object | Params object per the API's manifest, e.g. {"q": "latest AI news"} |
get_vault_link
Get a secure one-time link where the user can save their OWN API key for a provider (BYOK). Use when the user wants to use their existing key (e.g. their fal.ai key) with apifare, or when an API says it is not configured. Never ask the user to paste an API key into the chat — always use this link instead. BYOK calls cost a flat 0.1 credits; the user's own provider account pays the provider.
| Parameter | Type | Description |
|---|---|---|
provider * | string | API slug from search_apis, e.g. "fal" |
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Provider-native path, no leading slash, e.g. "v3/serp/google/organic/live/advanced" |
provider * | string | Proxy provider name, e.g. "dataforseo" |
body | JSON body per the provider's docs | |
method | string | HTTP method (default GET) |
query | object | Query 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.
| Parameter | Type | Description |
|---|---|---|
amount_usd | integer | Optional 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | The vendor's own API path, e.g. "v9/projects" |
vendor * | string | Vendor name, e.g. "vercel" |
body | object | JSON body for write methods |
method | string | HTTP 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
to * | object | |
bytes | integer |