Tollkit Text API
The Text API from Tollkit — 1 operation(s) for text.
The Text API from Tollkit — 1 operation(s) for text.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/tollkit-dev:tollkit-dev-text-api"
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.
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: Tollkit Web Text API
version: 0.39.0
description: 'Web search with date, site and news filters; read one page or five at once, screenshot and summarize them in a real browser; and read PDFs as text. Other Tollkit tools are described at: https://extract.tollkit.dev/openapi.json, https://attest.tollkit.dev/openapi.json, https://chain.tollkit.dev/openapi.json, https://data.tollkit.dev/openapi.json.'
x-guidance: Call any operation with POST and the JSON body its schema shows. Without payment you get HTTP 402 with the exact price in USDC on Base or Solana; pay with any x402 client and repeat the request. Failed calls (any 4xx or 5xx) are never charged. Each operation's description says what it returns and which inputs are refused for free.
contact:
email: hello@tollkit.dev
servers:
- url: https://web.tollkit.dev
tags:
- name: Text
paths:
/summarize:
post:
operationId: summarizeText
summary: Summarize supplied text
description: Summarize text you send (up to 8,000 characters) in the number of words you ask for. $0.005 per call.
tags:
- Text
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.005000'
protocols:
- x402: {}
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- text
properties:
text:
type: string
description: Text to summarize. Refused above 8,000 characters rather than truncated.
max_words:
type: integer
default: 60
description: Clamped to 250.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
required:
- summary
properties:
summary:
type: string
model:
type: string
input_tokens:
type: integer
output_tokens:
type: integer
served_at:
type: string
'400':
description: 'Bad input: a missing or malformed field, or a URL that is not public. Not charged.'
content:
application/json:
schema:
type: object
required:
- error
- message
- charged
properties:
error:
type: string
description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
message:
type: string
description: Plain-English reason, ending in "Nothing was charged."
charged:
type: boolean
const: false
'402':
description: Payment Required. The PAYMENT-REQUIRED header carries the x402 v2 quote (price, asset, network, payTo) for each network accepted. Pay and retry with PAYMENT-SIGNATURE.
'422':
description: Valid input the tool could not answer, e.g. an empty page, a token with no pool, an unknown ticker. Not charged.
content:
application/json:
schema:
type: object
required:
- error
- message
- charged
properties:
error:
type: string
description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
message:
type: string
description: Plain-English reason, ending in "Nothing was charged."
charged:
type: boolean
const: false
'429':
description: Too many requests from this caller; retry after a short wait. Not charged.
content:
application/json:
schema:
type: object
required:
- error
- message
- charged
properties:
error:
type: string
description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
message:
type: string
description: Plain-English reason, ending in "Nothing was charged."
charged:
type: boolean
const: false
'502':
description: An upstream source (the page, a chain RPC, a public data API) failed or timed out. Not charged; safe to retry.
content:
application/json:
schema:
type: object
required:
- error
- message
- charged
properties:
error:
type: string
description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
message:
type: string
description: Plain-English reason, ending in "Nothing was charged."
charged:
type: boolean
const: false
'503':
description: The tool is temporarily unavailable on this deployment. Not charged.
content:
application/json:
schema:
type: object
required:
- error
- message
- charged
properties:
error:
type: string
description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
message:
type: string
description: Plain-English reason, ending in "Nothing was charged."
charged:
type: boolean
const: false