Hiện tại vẫn đang có chương trình nạp lần đầu thưởng 15 % nhé các bácView discount conditions
ThAPI API · VND billing · VAT invoices on request

One API platformFor applications and AI agents

Connect your application to 118 AI models through the Anthropic or OpenAI SDK. Pay in VND, manage API keys, and track the cost of each call. From $0.0682/1M tokens.

Some models have a per-request minimum. Check the exact model ID, billing unit, rate and minimum on Pricing.

API · TOKEN · AGENTthapi.cloud
THAPI Signal — inside an AI connectionContext goes in. Code streams back to your app through the same connection. Illustrative processing flow.THAPI Signal — CodeContext goes in. Code streams back to your app through the same connection.
Receiving the requestIllustrative processing flow
118 AI modelsClaude, GPT, Gemini, DeepSeek
From $0.0682/1M tokensPay through VietQR
Anthropic and OpenAI SDKsConfigure your API key and base URL
Platform activity

Platform activity

Cumulative figures from usage logs, updated every 5 seconds.

Aggregated from usage logs
Updates every 5 seconds
From the log
100.00%
Request processing rate
Cumulative rate using infrastructure-error filters; not an SLA commitment.
Awaiting update
Successful API calls
Successfully served out of 52,770 requests sent
Cumulative tokens
TOKEN
Total recorded tokens
Cumulative input and output tokens from usage logs.
—
Last updated
When the system last recorded a data snapshot.
Vietnam time · UTC+7

Awaiting update · Illustrative lines

API integration

Start integrating

Choose the right example and follow three steps to send your first request.

1
Create an API key

Sign up, verify your email and create an API key. Set STALI_API_KEY for cURL, Node.js and Claude Code; Python can prompt for it. In OpenClaw, replace the sample apiKey in configuration and keep keys out of Git.

2
Configure the connection

Use the gateway root URL for the Anthropic SDK and Claude Code. For the OpenAI SDK, append /v1 to the root URL; the SDK adds the API path. The example shows your gateway URL.

3
Choose a model and send a request

Choose a model ID from the catalogue and use it in the matching example. Review the result and cost of each call in your dashboard.

Set up environment variables safely
curl -N https://thapi.cloud/v1/messages \
  -H "x-api-key: ${STALI_API_KEY:?STALI_API_KEY}" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-fable-5",
    "max_tokens": 1024,
    "stream": true,
    "messages": [
      { "role": "user", "content": "Write a quicksort function in Python" }
    ]
  }'
Inside the platform

Manage your API from one dashboard

Preview key management, cost tracking, and prompt testing in one interface.

Create a separate key for each application and revoke it when no longer needed.

Open dashboard
ThAPIDemo data
API keys02
Test applicationsk-demo-••••••••a1
Example
Internal assistantsk-demo-••••••••b2
Example

These sample keys are illustrative and cannot be used to call the API.

Illustrative data only. Not linked to an account and no API requests are sent.

Catalogue online

Choose a modelfor your application

118 models with published prices and billing units. Choose the model ID that fits your integration.

Showing 9 of 9 models

DeepSeek V4.1 Flash

deepseek-v4.1-flash
Token billing
$0.0909 / 1M tokensMinimum $0.00227 / request
Context window1,000,000 token
Maximum output128,000 token

Claude Haiku 4.5

claude-haiku-4-5
Token billing
$0.2727 / 1M tokensMinimum $0.00909 / request
Context window200,000 token
Maximum output64,000 token

DeepSeek V4 Flash

deepseek-v4-flash
Token billing
$0.0682 / 1M tokensMinimum $0.00227 / request
Context window1,000,000 token
Maximum output128,000 token

GPT 5.6 Luna

gpt-5.6-luna
Token billing
$0.1091 / 1M tokensMinimum $0.00227 / request
Context window1,050,000 token
Maximum output128,000 token

Claude Sonnet 5.5

req/claude-sonnet-5-5
Per request
$0.0205 / request
Context window1,000,000 token
Maximum output128,000 token

Grok 4.7

req/grok-4.7
Per request
$0.0136 / request
Context window500,000 token
Maximum output128,000 token

Grok 4.7

grok-4.7
Token billing
$0.2273 / 1M tokensMinimum $0.00455 / request
Context window500,000 token
Maximum output128,000 token

GLM 5.3

glm-5.3
Token billing
$0.1364 / 1M tokensMinimum $0.00455 / request
Context window1,000,000 token
Maximum output128,000 token

Claude Fable 5

claude-fable-5
Token billing
$0.3773 / 1M tokensMinimum $0.00909 / request
Context window1,000,000 token
Maximum output128,000 token
View full pricing
Gateway infrastructure

API infrastructureFor your AI applications

Integrate multiple models, manage access, and track costs on one platform.

Clear pricing

Pay for what you use

VND pricing for each model. Top up in advance and use as needed, with no maintenance fee.

Easy integration

Work with familiar SDKs

Use the OpenAI or Anthropic SDK with your ThAPI API key and base URL. Guides are available for Claude Code, Cursor, and Cline.

Access control

Manage API keys by application

Create separate keys for your applications, give them clear names, and revoke them when no longer needed.

Fallback routing

Switch routes, keep the model

Supports fallback to another route for the same model when routing conditions are met.

For businesses

Electronic VAT invoices

Electronic VAT invoices are available on request. Contact support with your invoice details and transaction reference.

Model selection

Multiple models, one platform

Access Claude, GPT, Gemini, and DeepSeek in one catalogue. Review each model’s pricing and billing units before use.

Cost visibility

Track every API call

View the model, token count, cost, and status of each call in your dashboard.

Payment and cost management

Payment and managementwhen using the API

Compare payment methods and management tools. Direct purchase terms vary by provider, market and account.

Compared itemThAPI · VNĐDirect API purchase
Claude Opus 5 / 1M tokens$0.2955Provider list pricing
Claude Fable 5 / 1M tokens$0.3773Provider list pricing
Minimum standard top-up$2.27Varies by provider
Payment methodVietQR / VND bank transferSupported payment methods
Value-added tax (VAT)Electronic VAT invoice when you need itSubject to provider policy
Cost control per callDetail for each request, CSV exportProvider-specific tools

ThAPI prices are shown in VND. This table does not convert foreign prices or claim cost savings; compare the same model and billing method. Some models have a per-request minimum. Check the exact model ID, billing unit, rate and minimum on Pricing.

Before you try a call

Frequently asked questionsIntegration, costs and data

Learn about model billing, usage limits, invoices and data.

Does ThAPI bill by token or by request?

The Pricing page specifies the billing unit for each model ID. Some models are billed by token and others by request. For token-based models, the listed pricing applies to input and output tokens. Some models have a per-request minimum. Check the exact model ID, billing unit, rate and minimum on Pricing.

Does wallet balance expire?

No. Wallet balance never expires — use it until it runs out.

How do I configure the SDKs, Claude Code, and OpenClaw?

Choose the matching Quickstart example, then configure your API key, base URL, and model ID. The Anthropic SDK, OpenAI SDK, Claude Code, and OpenClaw have their own configuration; use the example for your tool.

Is there a rate limit?

No fixed RPM cap currently applies to the API key. Capacity still depends on the model, provider route, system load and protective limits; this does not guarantee unlimited requests.

Do you store my prompts?

API usage logs retain metadata such as model, tokens, cost and status for billing, reconciliation and support. Playground conversations saved to your account contain messages, replies, system instructions and attachment data. See the Privacy policy for retention scope and deletion requests.

What if I run out of balance mid-session?

The API returns HTTP 402 when your balance is insufficient. Once your top-up is confirmed, you can continue using your existing API key.

STANDARD TOP-UP FROM VND 50,000 · ONE VND 10,000 TRIAL FOR ELIGIBLE ACCOUNTS

Start integratingwith ThAPI

Create an account, add balance, and get your API key. Contact support if you need help with the configuration.

Zalo group