TokPortal AI API

Model discovery, quoted generation, assets and a separate USD wallet.

GitHub OpenAPI

Operations 43

GET /ai/status Read AI availability without starting provider work #
GET /ai/models Discover AI models and capabilities #
GET /ai/models/{model_id} Read a model's current input schema and capabilities #
POST /ai/quotes Quote an AI operation in USD before spending #
POST /ai/generations Generate media with automatic AI wallet billing #
GET /ai/jobs List AI jobs #
GET /ai/jobs/{job_id} Read an AI job #
POST /ai/jobs/{job_id}/cancel Request cancellation of an AI job #
GET /ai/assets List reusable AI media assets #
POST /ai/assets/import Import a media URL into the AI asset library #
POST /ai/assets/uploads Create a signed media upload #
POST /ai/assets/uploads/complete Verify and register a completed media upload #
GET /ai/assets/{asset_id} Read an AI media asset #
PATCH /ai/assets/{asset_id} Update AI asset metadata #
DELETE /ai/assets/{asset_id} Delete an AI asset #
GET /ai/collections List AI asset collections #
POST /ai/collections Create an AI asset collection #
GET /ai/collections/{collection_id} Read an AI asset collection #
PATCH /ai/collections/{collection_id} Update an AI asset collection #
DELETE /ai/collections/{collection_id} Delete an AI asset collection #
GET /ai/collections/{collection_id}/assets List every asset reference in an owned collection #
POST /ai/collections/{collection_id}/assets Add an asset to a collection #
DELETE /ai/collections/{collection_id}/assets/{asset_id} Remove an asset from a collection #
PATCH /ai/collections/{collection_id}/assets/{asset_id} Rename a collection asset reference #
POST /ai/collections/{collection_id}/assets/{asset_id}/refresh Refresh a collection asset reference processing status #
GET /ai/library Browse the available reusable reference library #
GET /ai/library/{reference_id}/thumbnail Read an authorized reference thumbnail #
GET /ai/verifications List human-verification sessions #
POST /ai/verifications Create an explicitly authorized human-verification session #
GET /ai/verifications/{verification_id} Read a locally persisted human-verification session #
POST /ai/verifications/{verification_id}/refresh Explicitly refresh a human-verification result #
POST /ai/chat/completions Run a quoted text operation with optional streaming #
POST /ai/responses Run a quoted text operation with optional streaming #
GET /ai/wallet Read the separate AI USD wallet #
GET /ai/wallet/transactions Read AI USD wallet transactions #
POST /ai/wallet/topups Create an explicitly approved AI wallet top-up checkout #
GET /ai/wallet/auto-topup Read AI automatic top-up settings #
PATCH /ai/wallet/auto-topup Configure recurring AI wallet top-up authority #
GET /ai/access Read this key's AI permissions and budgets #
PATCH /ai/access Configure explicitly approved AI key access and budgets #
GET /ai/inspect Inspect AI jobs, media, wallet or permissions #
POST /ai/manage Manage AI media, collections, cancellations and human verification #
PATCH /ai/configure Configure AI permissions, budgets or automatic billing #

Work with this as data

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/tokportal-com:tokportal-com-ai-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 Specification

tokportal-com-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TokPortal Public AI API
  version: '2026-05-25'
  description: 'Non-breaking public API contract for TokPortal developer integrations. This spec is the first generated surface for SDKs, CLI, MCP, and docs.


    AI: /ai uses a separate USD wallet and quoted, permission-checked operations. Discover models and their schemas, obtain a quote, then execute with the approved maximum USD cost and an Idempotency-Key. An unavailable capability fails closed. AI endpoints do not advertise the legacy dry-run contract.


    SANDBOX (non-AI endpoints): every non-GET operation accepts the `X-TokPortal-Dry-Run: true` header. A dry run runs the full validation and pricing path and stops before the first write; nothing is created, no credits are debited, no webhook fires, and no operator sees it. The response keeps the same shape and status as the real call and adds `dry_run: true`, `dry_run_notice`, and `credits_would_charge` with the real price. Errors are byte-identical to the real call: explore an operation, read its real errors, and see what it would cost BEFORE spending anything, because management credits are debited at creation and there is no refund path for those credits. Rate limits are consumed normally, a supplied Idempotency-Key is ignored rather than burned, and identifiers returned by a dry run are synthetic; reuse one in a real call and you get DRY_RUN_ID_IN_LIVE_REQUEST rather than a confusing not-found.'
servers:
- url: https://app.tokportal.com/api/ext
  description: Production
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (954 KB total) ---
# Full source: https://artifacts.apis.io/tokportal-com/openapi/tokportal-com-ai-api-openapi.yml