Skip to content

About

TopxAI documentation: one OpenAI- and Anthropic-compatible API for Claude, GPT, Grok, GLM, Kimi, DeepSeek and Jev at fixed USD prices, with prepaid credit and no stored prompts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TopxAI — one API endpoint for Claude, GPT, Grok, GLM, Kimi, DeepSeek and Jev

TopxAI is a model API service. Claude, GPT, Grok, GLM, Kimi, DeepSeek and TypeSafe's Jev are served through OpenAI- and Anthropic-compatible endpoints at fixed USD prices, on prepaid credit, and nothing you send is stored.

This repository indexes the public documentation: each page under docs/ summarizes a page of https://api.topxai.xyz/docs, where the full text is published in English and Chinese.

The site moved to api.topxai.xyz on 2026-11-13. The old address redirects, but most HTTP clients drop the Authorization header when a redirect changes host and the call fails with 401, so set the base URL to https://api.topxai.xyz/v1 (or https://api.topxai.xyz for Anthropic SDKs).

Quick start

Point the SDK you already use at TopxAI; the key goes where the provider's key would go.

from openai import OpenAI

client = OpenAI(base_url="https://api.topxai.xyz/v1", api_key="sk-...")
reply = client.chat.completions.create(
    model="claude-sonnet-5-5",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(reply.choices[0].message.content)
from anthropic import Anthropic

client = Anthropic(base_url="https://api.topxai.xyz", api_key="sk-...")
reply = client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=256,
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(reply.content[0].text)

More in examples/ and in Connect your SDK.

Endpoints

Path Dialect Models
POST /v1/chat/completions OpenAI Chat Completions every text model except Jev
POST /v1/responses OpenAI Responses gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra, grok-4.7, GLM-5.3-Flash-Abliterated, kimi-k3.1-pro-Abliterated, deepseek-flash-Abliterated, deepseek-flash-fast
POST /v1/messages Anthropic Messages every text model except Jev
POST /v1/images/generations, POST /v1/images/edits OpenAI Images gpt-image-2.6-sunburst, gpt-image-2.6-flare
POST /v1/videos/generations, GET /v1/videos/{request_id} OpenAI Videos grok-imagine-video-1.5
POST /v1/systemone TypeSafe System One jev-1.14.0
GET /v1/models OpenAI the models your key can use

Models

As GET https://api.topxai.xyz/api/pricing listed them on 2026-11-19: 16 models from 7 providers. Each id links to its page with the current price on every route; the full table is at https://api.topxai.xyz/pricing, and prices are not repeated here because they change.

Provider Models
Anthropic claude-fable-5-2 · claude-opus-5-5 · claude-sonnet-5-5
OpenAI gpt-6.1-terra · gpt-6.2-astra · gpt-6.2-sol · gpt-image-2.6-flare · gpt-image-2.6-sunburst
xAI grok-4.7 · grok-imagine-video-1.5
Zhipu AI GLM-5.3-Abliterated (private deployment) · GLM-5.3-Flash-Abliterated (private deployment)
Moonshot AI kimi-k3.1-pro-Abliterated (private deployment)
TypeSafe jev-1.14.0
DeepSeek deepseek-flash-Abliterated (private deployment) · deepseek-flash-fast (private deployment)

Prices are fixed in USD per model. Claude, GPT and Grok are sold on one route per provider at 80% of the provider's list price; a key is set to one route or to Auto route, which bills each model on that model's route (routes and the auto route). Every model on the GLM, Kimi and DeepSeek lines is served from a private deployment rather than the provider's own API, at fixed prices that are the same at every hour; the two GLM models, kimi-k3.1-pro-Abliterated and deepseek-flash-Abliterated have the refusal alignment removed (each request to them starts with a short TopxAI deployment note), and deepseek-flash-fast runs the standard weights. They are covered by the same Acceptable Use Policy as every other line.

Documentation

Getting started

  • What TopxAI is — One base URL, 16 models on seven lines and prepaid USD credit. TopxAI does not store prompts or completions.
  • Create an API key and choose a route — The key drawer step by step, what each route means, and the three 403 refusals a key can hit.
  • Connect your SDK — The base URL, every endpoint with its auth header, working examples for the OpenAI and Anthropic SDKs, and what each error status means.
  • API reference: every endpoint, with an OpenAPI specification — Every endpoint TopxAI serves, what each accepts and returns, the two ways to send the key, and the OpenAPI 3.1 file at /openapi.json for API tools.

Integrations

Routes and pricing

Models

  • Jev (TypeSafe System One) — What Jev 1.14 returns, how to call POST /v1/systemone with text or images, Box questions, the one-line setup for a TypeSafe key, and the price.
  • GLM-5.3-Abliterated and GLM-5.3-Flash-Abliterated — The two GLM models on a private deployment: text-only GLM-5.3-Abliterated and the faster GLM-5.3-Flash-Abliterated with images. Reasoning, limits, prices.
  • Image generation — gpt-image-2.6-sunburst and -flare: the two endpoints, the 1K and 2K per-image prices, how the size tier is chosen, and where the image link comes from.
  • Video generation — grok-imagine-video-1.5: submit a job, poll it, per-second prices by resolution, refunds on failure, and how forgotten jobs are refunded after 24 hours.
  • deepseek-flash-Abliterated and deepseek-flash-fast — The two DeepSeek V4.1 Flash 1017 models on a private deployment, abliterated or on standard weights: limits, four reasoning settings and fixed prices.
  • kimi-k3.1-pro-Abliterated — Call kimi-k3.1-pro-Abliterated: Kimi K3.1 Pro with the refusal alignment removed, on a private deployment. Prices, reasoning, limits and parameters.
  • Claude Opus 5.5 special offer — A temporary, low-priced Claude Opus 5.5 line that is often unavailable: prices, how to create a key for it, the extra tokens it adds and its terms.

Payments and credit

  • Top up with a card, Alipay or WeChat Pay — Add USD credit with Visa, Mastercard, Alipay, WeChat Pay, Apple Pay or Google Pay on the Waffo checkout that the Wallet page opens.
  • Pay with crypto — Top up with USDT or USDC through a NOWPayments invoice: what to send, how long confirmation takes, and what happens if you send too little.
  • Gift cards and credit codes — Buy a single-use credit code, redeem one on any account, and what the User Agreement says about refunds.
  • Monthly plans: credit, weekly unlocks and renewal — Four monthly plans give more credit than they cost. How the credit unlocks, what it pays for, renewal, cancelling and the 48-hour refund.

Troubleshooting

  • Common error responses — What each HTTP status and error code from the gateway means, and what to change before you retry.
  • The model works in curl but not in my tool — Seven places where a tool differs from the working curl: base URL, auth header, model id, key route and limits, IP whitelist, GLM and Jev endpoints, timeouts.
  • Sign-in and account — How sign-in works, how sessions, devices and TopxAI Desktop sign-ins are managed, the regional service notice, and how to reach support.

Comparisons

Privacy and policies

Retention and policies

Prompts, completions and uploaded files are relayed in memory and never written to disk; the usage log keeps token counts, model names, routes and request ids. Details: Privacy Policy, User Agreement, Acceptable Use Policy.

About TopxAI

TopxAI makes this model API and TopxAI Desktop, the Mac app at https://topxai.xyz/. Announcements: X @Topx_AI.

Contributing

The summaries here are generated from the site's sources, so a correction belongs on the page it summarizes: open an issue or write to support@topxai.xyz.

License

The documentation in this repository is released under CC BY 4.0; the code snippets under examples/ are public domain (CC0).

About

TopxAI documentation: one OpenAI- and Anthropic-compatible API for Claude, GPT, Grok, GLM, Kimi, DeepSeek and Jev at fixed USD prices, with prepaid credit and no stored prompts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors