API Reference

Overview

Base URL, authentication, and the full endpoint list.

Base URL: https://api.tk24.ai

All endpoints are under /v1/ except /health.

Machine-readable spec

The full API is published as an OpenAPI 3.1 spec — point your agent, SDK generator, or API client at it. For LLM context, /llms.txt indexes the docs and /llms-full.txt is every page as one markdown file.

Authentication

MethodUsed for
API key — Authorization: Bearer sk-<64 hex>Inference, usage queries
SIWE — signed message + signatureAPI key management

See Authentication for details.

Endpoints

EndpointMethodAuthDescription
/healthGET—Health check
/v1/modelsGET—List models with pricing
/v1/topup/directPOST—Claim a USDT transfer by tx hash, if the indexer missed it
/v1/configGET—Collection wallet address, minimum top-up, network mode, accepted chains and tokens
/v1/topups/:walletGETAPI key / SIWEList top-up history
/v1/auth/keysPOSTSIWECreate API key
/v1/auth/keysGETSIWEList API keys
/v1/auth/keys/:idDELETESIWERevoke API key
/v1/chat/completionsPOSTAPI keyInference (OpenAI-compatible)
/v1/usage/:walletGETAPI key / SIWEBalance & usage stats
/v1/balance/:walletGET—Available balance only

Health

GET /health

curl https://api.tk24.ai/health
{ "status": "ok" }

On this page