Quick Start: Your First Call
This page walks you through your first API call from scratch. The examples use the model deepseek-v4-flash (default group, pay-as-you-go, ¥1 input / ¥2 output per million tokens — one of the most economical chat models on this site).
Prerequisites
Before you start, make sure these three are ready:
- A registered account — if you don't have one yet, see Sign Up & Sign In
- Balance topped up — calls fail when the balance is insufficient; see Billing & Top-up
- An API Key created — you need a token starting with
sk-; see API Key Management
Making the Call
The three examples below are logically identical: they ask deepseek-v4-flash "Who are you? Introduce yourself in one sentence." Pick your language and run it.
This site is OpenAI-SDK compatible. With the official SDKs, just set base_url to https://api-model.shuntianchuang.cn/v1 and api_key to your token — no other code changes needed.
Expected Response
On success, a standard OpenAI-format JSON is returned:
Here choices[0].message.content is the model's answer, and usage is the token consumption of this call (the billing basis).
Common First-Call Failures
See Error Codes & Troubleshooting for the full error reference.
Next Steps
- Full parameters for every endpoint: API Calls
- Use it inside Cherry Studio, Claude Code, and other clients: App Integration
- Cost details of each call: Billing & Top-up
