Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/taskfuel-ai:taskfuel-ai-calls-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: taskfuel Gateway Calls API
version: v1
summary: Discover and call paid HTTP-402 APIs through one prepaid account.
description: The CLI and canonical taskfuel agent skill are the recommended interface. Install the CLI with `curl -fsSL https://taskfuel.ai/install.sh | sh`, run `taskfuel sync-skill`, then use `taskfuel connect`. The user must complete browser sign-in/approval and card top-ups themselves. Use this OpenAPI document for direct HTTP integrations.
servers:
- url: https://app.taskfuel.ai
security:
- bearerAuth: []
tags:
- name: Calls
description: Quote or execute calls to allowed paid services.
paths:
/v1/call:
post:
operationId: callPaidService
tags:
- Calls
summary: Quote or call an allowed paid service
description: 'Set dryRun to true to read the real price from a paid upstream''s HTTP-402 challenge without paying. A dry run never executes anything: an endpoint whose spec declares no price is refused with not_quotable and nothing is sent. The response body and content type otherwise pass through from the upstream. Quote the first call, and use maxAmountUsd on the paid call to cap it at the approved quote.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CallRequest'
responses:
'200':
description: Quote JSON, free response, or paid upstream response. Successful upstream status codes other than 200 are also passed through.
headers:
x-taskfuel-source:
description: Present when the body was relayed from the upstream endpoint (always `upstream`). Responses the gateway authors itself (quotes and gateway errors) omit it, so on a failure it tells you whose error you are reading.
schema:
type: string
enum:
- upstream
x-taskfuel-cost:
description: USD charged for this response, formatted to six decimals.
schema:
type: number
format: double
x-taskfuel-balance:
description: Remaining prepaid USD balance, formatted to six decimals.
schema:
type: number
format: double
x-taskfuel-result-url:
description: 'Where this same response can be fetched back, free, for the next hour. Present only on a charged call. It exists because a paid call is not cancelled when a client stops waiting for it: use this rather than repeating the call, which would pay for the same work twice.'
schema:
type: string
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Quote'
- {}
text/plain:
schema:
type: string
application/octet-stream:
schema:
type: string
format: binary
'400':
description: The JSON request is invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: The bearer API key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: The account balance is empty and the user must top up in the dashboard, or (`payment_rejected`) the upstream refused the payment. Nothing was paid either way; upstream_402_body says why.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The domain is not allowed or the upstream price exceeds the active cap.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: The request body exceeds 1 MiB.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: The API key exceeded a rate limit (60 calls/min per key, 300/min across all keys). The body's retry_after_seconds and the Retry-After header give the wait.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: The upstream request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: The payment adapter is not configured, or (`upstream_unavailable`) the upstream answered 402 without a payment challenge. Nothing was paid; retry the latter shortly.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
default:
description: Any upstream status and body can be passed through after a call.
headers:
x-taskfuel-source:
description: Present when the body was relayed from the upstream endpoint (always `upstream`). Responses the gateway authors itself (quotes and gateway errors) omit it, so on a failure it tells you whose error you are reading.
schema:
type: string
enum:
- upstream
x-taskfuel-cost:
description: USD charged for this response, formatted to six decimals.
schema:
type: number
format: double
x-taskfuel-balance:
description: Remaining prepaid USD balance, formatted to six decimals.
schema:
type: number
format: double
x-taskfuel-result-url:
description: 'Where this same response can be fetched back, free, for the next hour. Present only on a charged call. It exists because a paid call is not cancelled when a client stops waiting for it: use this rather than repeating the call, which would pay for the same work twice.'
schema:
type: string
/v1/calls:
get:
operationId: listCallResults
tags:
- Calls
summary: List paid results still available to fetch back
description: 'What the caller has outstanding: `in_flight` for calls still running, `results` for finished calls whose response is still stored, newest first. Free. This is the way back in after a client-side timeout: no response arrived, so no request id was ever learned. A call is in flight for as long as the upstream takes, which is exactly when a caller who gave up is deciding whether to call again, so check here before repeating anything. Results are kept for an hour, and only for calls that were charged.'
security:
- bearerAuth: []
responses:
'200':
description: The caller's still-available results.
content:
application/json:
schema:
type: object
properties:
in_flight:
type: array
description: 'Calls running right now: the upstream has not answered, so they are not charged and have no result yet. Wait for one rather than repeating it.'
items:
$ref: '#/components/schemas/InFlightCall'
results:
type: array
items:
$ref: '#/components/schemas/CallResult'
retention_seconds:
type: number
detail:
type: string
'401':
description: The bearer API key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/calls/{request_id}:
get:
operationId: getCallResult
tags:
- Calls
summary: Fetch back a paid call's response
description: 'Returns the stored response for a call already paid for, with the upstream''s own status, content type and body, so it parses like the POST /v1/call response it replaces. It carries x-taskfuel-cost for what the original call cost, but no x-taskfuel-balance, since nothing is charged here. Free: the call is already paid for, and charging to collect it would reproduce the problem this solves. Use it instead of repeating a call that timed out.'
security:
- bearerAuth: []
parameters:
- name: request_id
in: path
required: true
description: The call's request id, as returned in x-taskfuel-request-id or by GET /v1/calls.
schema:
type: string
responses:
'200':
description: The stored upstream response. Other successful upstream status codes are mirrored the same way.
headers:
x-taskfuel-cost:
description: USD charged for this response, formatted to six decimals.
schema:
type: number
format: double
x-taskfuel-source:
description: Present when the body was relayed from the upstream endpoint (always `upstream`). Responses the gateway authors itself (quotes and gateway errors) omit it, so on a failure it tells you whose error you are reading.
schema:
type: string
enum:
- upstream
x-taskfuel-request-id:
description: The request id this result belongs to.
schema:
type: string
x-taskfuel-replayed:
description: Always `true` here. Marks this as a replay of a call already billed, so the spend is not counted twice.
schema:
type: string
enum:
- 'true'
x-taskfuel-called-at:
description: When the original call was made (ISO 8601).
schema:
type: string
format: date-time
content:
application/json:
schema: {}
text/plain:
schema:
type: string
application/octet-stream:
schema:
type: string
format: binary
'202':
description: 'The call is still running: the upstream has not answered, so nothing has been charged and there is no body yet. The in-flight metadata is returned alongside. Ask again rather than repeating the call.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: The bearer API key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No stored result for that request id: it expired, the call was never charged, or it belongs to another account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: The call was charged, but its body was too large to store. The metadata is returned alongside the error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
InFlightCall:
type: object
description: 'A paid call that is running right now. It has no status, no body and no charge yet: the upstream has not answered. Repeating it buys the same work a second time.'
required:
- request_id
- method
- endpoint
- domain
- started_at
- state
properties:
request_id:
type: string
method:
type: string
endpoint:
type: string
domain:
type: string
started_at:
type: string
format: date-time
state:
type: string
enum:
- in_flight
additionalProperties: false
CallRequest:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: An operation URL returned by /v1/discover on an allowed domain.
method:
type: string
default: GET
headers:
type: object
additionalProperties:
type: string
body:
anyOf:
- type: object
- type: array
- type: string
description: 'The upstream request body. Pass JSON as an object or array: it is serialized once and forwarded. A string is forwarded byte for byte, so do not JSON-encode the object yourself.'
dryRun:
type: boolean
default: false
description: Read the upstream's 402 price without paying. Free endpoints execute at $0.
maxAmountUsd:
type: number
format: double
exclusiveMinimum: 0
description: Caller-selected USD ceiling. It can tighten but never raise the gateway cap.
model:
type: string
maxLength: 128
description: 'The caller''s own model id, e.g. claude-opus-5. Recorded with the call and nothing else: it never affects pricing, routing, what is sent upstream, or whether the call succeeds.'
additionalProperties: false
CallResult:
type: object
description: 'A paid call whose response is still stored. The body itself is not here: fetch it with GET /v1/calls/{request_id}.'
required:
- request_id
- method
- endpoint
- domain
- status
- content_type
- body_bytes
- charged_usd
- settlement
- called_at
- expires_at
properties:
request_id:
type: string
method:
type: string
endpoint:
type: string
domain:
type: string
status:
type: integer
content_type:
type: string
body_bytes:
type: integer
charged_usd:
type: number
format: double
settlement:
type:
- string
- 'null'
description: The settlement reference this call was debited against, `x402:<tx>`, `mpp:<reference>` or `l402:<payment_hash>`.
called_at:
type: string
format: date-time
expires_at:
type: string
format: date-time
additionalProperties: false
Quote:
type: object
required:
- dry_run
- amount_usd
- exceeds_cap
- exceeds_balance
- per_call_cap_usd
- max_amount_usd
- detail
- upstream_402_body
properties:
dry_run:
const: true
amount_usd:
type: number
format: double
exceeds_cap:
type: boolean
exceeds_balance:
type: boolean
per_call_cap_usd:
type: number
format: double
max_amount_usd:
type:
- number
- 'null'
format: double
detail:
type: string
upstream_402_body: {}
additionalProperties: false
Error:
type: object
required:
- error
properties:
error:
type: string
detail:
type: string
additionalProperties: true
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A taskfuel API key with the sk-402- prefix.
externalDocs:
description: Agent setup, usage guide, and human handoffs
url: https://app.taskfuel.ai/llms.txt