跳到主要内容

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.

3-Minute Interactive Guide · 7 Steps to First Call

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.

Progress 0%
Shortcut: Alt + ← / → to switch steps
LEVEL 01 / 07

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.

Open Console Sign-In ↗ Already signed in? Click "Next" below to jump to Step 2.
100% OpenAI-compatible47 live modelsPay-as-you-go, no monthly fee
  1. Create key & top up ¥1+

    Generate an sk- token under /keys. New accounts start at ¥0 — add ¥1 or more in /wallet before testing.

    Top up from ¥1 in /wallet
  2. Set the base_url

    Point base_url at https://alphatech.net.cn/v1 and keep the model IDs from the catalog. Every other parameter and response shape is identical to OpenAI.

    Browse model IDs
  3. Make your first request

    Call chat.completions with the official SDK or curl. A response means the path is live.

    Jump to the code

Code samples

Example model deepseek-v4.1-flash; other IDs are in the model catalog.

python main.py
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)
js index.mjs
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 request.sh
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:

Claude CodeCodexGemini CLIOpenCodeOpenClawHermesGrokBuild

For other CLI and desktop tools that follow standard OpenAI environment-variable conventions, export these variables in your environment or current terminal:

shell env.sh
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 tools and tool_choice parameters.
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.

Leave a one-line brief — reply within 24h

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.