First OpenAI-compatible
API call in 3 minutes
AlphaTech adheres to the official OpenAI REST API specification. Point api_key and
base_url at our gateway; new accounts start at ¥0, and topping up from ¥1 unlocks live calls with failed requests unbilled.
From Sign-In to Your First Valid Response
Sign in, create a key, confirm balance (from ¥1), copy your tool config, and send your first live request directly from the browser. Skip or revisit any step — progress saves locally, your API key never does.
Step 1 · Sign In to Console
Open the AlphaTech console in a new tab to sign in or register. Keep this walkthrough open so you can continue right away.
Step 2 · Create an API Key
Follow these steps in order and keep the full key handy for your tool setup.
-
Sign in to the console
Open the sign-in page, fill in “Username or Email” and “Password”, and click “Sign in”.
Interface diagram alphatech.net.cn/sign-inUsername or EmailPassword ••••••••Sign in -
Find API Keys in the sidebar
After signing in, select “API Keys” under “General” in the sidebar. On a narrow screen, open the navigation menu first.
Interface diagram Sidebar · GeneralOverviewAPI Keys /keysUsage Logs -
Click Create API Key
At the top of the key list, click “Create API Key” to open the form.
Interface diagram API KeysCreate API KeyKey list -
Enter a name
Under “Basic Information”, enter a recognizable name such as quickstart-dev in “Name”.
Interface diagram Create API KeyBasic InformationName quickstart-devGroup -
Choose the quota settings
For a first test with your own key, leave “Unlimited Quota” on. Calls still draw from your account balance. For a shared key or a per-key spending cap, switch it off and enter a positive limit in the unit shown.
Interface diagram Quota Settings · Personal testUnlimited Quota OnQuota Settings · Per-key capUnlimited Quota OffQuota (in the unit shown) -
Check the group and model limits
Keep the preselected “Group” under “Basic Information” for your first call. If access fails, check the catalog. For example, claude-sonnet-5 is available in default and deepseek-v4.1-flash in cn. Under “Advanced Settings”, leave “Model Limits” empty to allow the group’s available models, or add only the model IDs you plan to use.
Interface diagram Basic InformationGroup Keep the preselectionAdvanced SettingsModel Limits Leave blank or select models -
Submit the form
Click “Save changes” at the bottom of the form. Back in the list, find the name you entered and check that the status is “Enabled”.
Interface diagram Create API KeyCloseSave changes -
Copy the full sk- key
In the new key’s row, use the “Copy API key” icon next to the key. When pasting, check for the sk- prefix and remove any surrounding spaces.
Interface diagram API Keysquickstart-dev EnabledMasked preview sk-••••••••Copy API key
Common API key problems
- Incomplete key
- Return to the list and use the copy icon to get the full value.
- Key disabled
- Check “Status”. If it shows “Disabled”, enable the key from the row’s actions menu or use another enabled key.
- Key quota exhausted
- Edit the key and increase its available quota in “Quota Settings”, or turn on “Unlimited Quota” if it suits your usage.
- Account balance is ¥0
- Open “Wallet”, top up from ¥1, and try again. Top Up in Console (from ¥1) ↗
Step 3 · Top Up from ¥1
After creating a key, follow the steps below to top up from ¥1. Check your wallet balance after payment.
- Minimum top-up ¥1 (~$0.14), zero monthly subscription
- Failed requests (401 / 400 / 404 / 5xx) are never billed
- Balance never expires; every call is logged line by line
-
Open Wallet
After signing in, open “Wallet” under “Personal” in the sidebar.
Interface diagram Sidebar · PersonalWallet /wallet -
Enter the top-up amount
In “Add Funds”, choose a preset or enter an amount from ¥1 in “Custom Amount”.
Interface diagram WalletAdd FundsCustom Amount ¥1 -
Confirm payment and check the balance
Choose a payment method shown on the page, check the amount due, and select “Confirm Payment”. Complete payment and check “Current Balance” in Wallet before calling a model.
Interface diagram Add FundsPayment MethodConfirm PaymentWalletCurrent Balance
How far does ¥1 go? (Live catalog rates, estimated at 500 input + 250 output tokens per call)
Already have balance? Click "Next" to pick your tool.
Step 4 · Choose Your Tool
Choose the SDK or client you use most. The CC Switch setup is available in this step.
CC Switch v4.0.40
-
Download and install CC Switch
Install the package for your OS and architecture. macOS supports Homebrew or DMG, Windows has MSI or portable ZIP, and Linux has DEB, RPM, or AppImage. Install the Claude Code or Codex CLI you plan to use as well.
Interface diagram GitHub Releases · v4.0.40macOS .dmgWindows .msi / Portable.zipLinux .deb / .rpm / .AppImage -
Open the app and choose a tool
Open CC Switch, choose “Claude Code” or “Codex” in the sidebar, and open the “Direct” tab. Set up each tool separately if you use both.
Interface diagram CC SwitchClaude CodeCodexDirect Provider list -
Add a custom provider
Choose the plus at the top right to “Add Provider”, then select “Custom Configuration” at the top of “All”. Refer to your CC Switch version for the field positions.
Interface diagram CC Switch+ Add ProviderAllCustom Configuration -
Fill in the URL, API key, and model
Name the provider AlphaTech and paste the full sk- key from the console. For Claude Code, open the advanced options, select native Anthropic Messages and ANTHROPIC_AUTH_TOKEN, and enter the fallback model. For Codex, choose “Responses (Native)” and set the default model.
Interface diagram Claude CodeProvider Name AlphaTechAPI Endpoint https://alphatech.net.cnAPI Key Paste your sk- keyAuthentication Field ANTHROPIC_AUTH_TOKENDefault fallback model claude-sonnet-5CodexProvider Name AlphaTechAPI Request URL https://alphatech.net.cn/v1API Key Paste your sk- keyUpstream Format Responses (Native)Default Model gpt-6-luna -
Save and enable AlphaTech
Click “Add” at the bottom of the form, then click “Enable” on the AlphaTech card in the provider list. If Codex is running, quit and relaunch it.
Interface diagram Custom ConfigurationAddProvider listAlphaTech DirectEnable -
Verify in the terminal
Run the matching commands to start the CLI and send a short prompt. After the model replies, look for the request in the console’s “Usage Logs”.
Interface diagram Terminal · Claude Code$ claude --version$ claudeTerminal · Codex$ codex --version$ codex
Step 5 · Paste Key & Copy Config
Paste your sk- key below to generate a ready-to-copy snippet pointed at https://alphatech.net.cn/v1.
Follow Step 4 to enable AlphaTech in CC Switch. To continue testing in the browser, paste the same key here.
Your API key lives strictly in page RAM — never uploaded to third-party servers, never placed in URLs, localStorage, or cookies, and wiped immediately on refresh.
Step 6 · Verify /v1/models
Run a same-origin GET /v1/models request with your Bearer key directly from the browser to confirm credentials and list available model count.
Terminal curl check (uses $ALPHATECH_API_KEY, never hardcodes raw key)
Export ALPHATECH_API_KEY="sk-your-key" in your terminal, then run:
Step 7 · Send First Message
Pick an inexpensive model (default deepseek-v4.1-flash, aligned with our docs) and send a real POST /v1/chat/completions call. Seeing choices[0].message.content confirms your setup.
Terminal curl check (uses $ALPHATECH_API_KEY, never hardcodes raw key)
Export ALPHATECH_API_KEY="sk-your-key" in your terminal, then run:
First API Call Complete · Ready to Build
You received a live choices[0].message.content response. Explore model pricing, connect Claude Code or Cursor, or talk to us if your team needs a custom UI, approvals, or system integration.
-
Create key & top up ¥1+
Generate an
Top up from ¥1 in /walletsk-token under/keys. New accounts start at ¥0 — add ¥1 or more in/walletbefore testing. -
Set the base_url
Point
Browse model IDsbase_urlathttps://alphatech.net.cn/v1and keep the model IDs from the catalog. Every other parameter and response shape is identical to OpenAI. -
Make your first request
Call
Jump to the codechat.completionswith the official SDK or curl. A response means the path is live.
Code samples
Example model deepseek-v4.1-flash; other IDs are in the
model catalog.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ALPHATECH_API_KEY"],
base_url="https://alphatech.net.cn/v1"
)
response = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[
{"role": "user", "content": "Give me your analysis."}
]
)
print(response.choices[0].message.content) import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: process.env.ALPHATECH_API_KEY,
baseURL: 'https://alphatech.net.cn/v1'
});
async function run() {
const completion = await openai.chat.completions.create({
messages: [{ role: 'user', content: 'Generate a typed LRU cache in TypeScript' }],
model: 'deepseek-v4.1-flash',
});
console.log(completion.choices[0].message.content);
}
run(); curl https://alphatech.net.cn/v1/chat/completions \
-H "Authorization: Bearer $ALPHATECH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Give me your analysis."}]
}' Endpoint reference
| Endpoint | Method | URL |
|---|---|---|
| Base URL The base_url for every SDK | n/a | https://alphatech.net.cn/v1 |
| Chat Completions Chat, streaming and tool calls | POST | https://alphatech.net.cn/v1/chat/completions |
| Models List the currently published models | GET | https://alphatech.net.cn/v1/models |
| Pricing Public ratios and groups, no auth required | GET | https://alphatech.net.cn/api/pricing |
One-click import into CC Switch
Optional. If you manage multiple API providers with CC Switch, copy the one-click import configuration from the
console’s /keys page instead of entering the Base URL and key by hand. Supported apps:
For other CLI and desktop tools that follow standard OpenAI environment-variable conventions, export these variables in your environment or current terminal:
export OPENAI_API_BASE="https://alphatech.net.cn/v1"
export OPENAI_BASE_URL="https://alphatech.net.cn/v1"
export OPENAI_API_KEY="$ALPHATECH_API_KEY" Supported API features
- Streaming SSE
- Token-by-token streaming via
stream=true. - Tool calling tools
- Full support for the standard
toolsandtool_choiceparameters. - Reasoning output thinking
- Native support for reasoning-model trajectories.
- Vision input vision
- Multi-turn conversations with image URLs or Base64 attachments.
AlphaTech Custom Software & Enterprise AI
Integrating LLMs into existing business systems? Talk to our custom software & Enterprise AI team
Beyond the LLM API gateway, we deliver scoped fixed-quote custom software and Enterprise AI systems — business apps, enterprise knowledge bases, dashboards, and private deployments typically shipped remotely in 2–4 weeks.
Formal contracts and VAT special invoices available · Full source-code handover · Add us on WeChat (+86 188 5762 2822), typically replying within 24 hours.
The example model deepseek-v4.1-flash is taken from the public pricing endpoint
https://alphatech.net.cn/api/pricing
(fetched 2026-11-24T11:28:35.506Z); 47 text models are currently published.