// Models · API key guide
SiliconFlow API base URL & key
Base URL: https://api.siliconflow.cn/v1 (OpenAI-compatible). Keys are created in the console under “API 密钥”.
4 stepsofficial docs onlychecked 2026-10-26
01How to get a SiliconFlow API key
- Log in at cloud.siliconflow.cn (SMS code or email).
- Open “API 密钥” → “新建 API 密钥”, add a description and copy the key.
- Set base_url to https://api.siliconflow.cn/v1 in any OpenAI-compatible SDK.
- Use a model ID from the model square, e.g. a free one such as deepseek-ai/DeepSeek-R1-0528-Qwen3-8B.
Official key page: https://cloud.siliconflow.cn/account/ak – console labels may change; follow what the official page shows.
02Real-name, phone and credit card requirements
| Real-name / ID verification | The quickstart does not require it; the console has a real-name section – which actions need it is up to the platform (以官方为准). |
|---|---|
| Phone number | Login by SMS code or email (per the quickstart). |
| Credit card / payment | Free models need no payment; paid models draw on your account balance. |
03Base URL and a minimal call
https://api.siliconflow.cn/v1SILICONFLOW_API_KEY · Example model:deepseek-ai/DeepSeek-R1-0528-Qwen3-8Bcurl
curl https://api.siliconflow.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SILICONFLOW_API_KEY" \
-d '{
"model": "deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",
"messages": [{"role": "user", "content": "你好"}]
}' Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["SILICONFLOW_API_KEY"], base_url="https://api.siliconflow.cn/v1")
resp = client.chat.completions.create(
model="deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",
messages=[{"role": "user", "content": "你好"}],
)
print(resp.choices[0].message.content) 04Free quota
All free AI APIs →Models marked “free” on the pricing page cost ¥0 (fixed rate limits per model). Any sign-up gift is shown in the console – not published as a fixed amount in the docs we checked.
05SiliconFlow API prices
All model prices →| Model | Input / 1M tokens | Output / 1M tokens | Source |
|---|---|---|---|
gpt-oss-20bopenai/gpt-oss-20b | $0.04 | $0.18 | official · 2026-11-30 |
Qwen3.5-9Bqwen/qwen3.5-9b | $0.1 | $0.15 | official · 2026-11-30 |
Ling-mini-2.0inclusionAI/Ling-mini-2.0 | ¥0.5 | ¥2 | official · 2026-10-10 |
Qwen3 30B A3B Instruct 2507qwen/qwen3-30b-a3b-instruct-2507 | $0.09 | $0.3 | official · 2026-11-30 |
Step 3.5 Flashstepfun/step-3.5-flash | $0.1 | $0.3 | official · 2026-11-30 |
Step-3.5-Flashstepfun-ai/Step-3.5-Flash | ¥0.7 | ¥2.1 | official · 2026-10-10 |
Qwen3.5-35B-A3BQwen/Qwen3.5-35B-A3B | ¥0.4 | ¥3.2 | official · 2026-10-10 |
DeepSeek V4 Flash 0423deepseek/deepseek-v4-flash | $0.13 | $0.28 | official · 2026-11-30 |
Standard (non-batch) list prices from our price database; cheapest first, max 8 rows. Prices change – the official page wins.
06Keep your API key safe
- Free and Pro/ models have different rate limits – check each model page before going to production.
- Keep the key in an environment variable or a secrets manager – never hard-code it, never commit it to Git, never paste it into a screenshot, chat or issue.
- Never put a long-lived key in front-end, mobile or desktop client code – anyone can extract it. Call the API from your own server.
- One key per project or environment, so a leak can be revoked without breaking everything else.
- If a key leaks, delete it in the console immediately and create a new one, then check usage and billing.
- Do not buy keys from resellers or “API relays” and do not paste your key into websites you do not trust.
07FAQ
FAQ
What is the SiliconFlow API address?
https://api.siliconflow.cn/v1 (OpenAI-compatible), e.g. POST https://api.siliconflow.cn/v1/chat/completions.
Where do I create a SiliconFlow API key?
cloud.siliconflow.cn → “API 密钥” → “新建 API 密钥”.
Which SiliconFlow models are free?
Those marked “free” on siliconflow.cn/pricing – on 2026-10-26 including deepseek-ai/DeepSeek-R1-0528-Qwen3-8B, Qwen2.5-7B-Instruct, Hunyuan-MT-7B, PaddleOCR-VL-1.5 and BAAI bge models.
08Official sources
- 硅基流动 · 快速上手 docs.siliconflow.cn
- 硅基流动 · 模型价格 www.siliconflow.cn
All facts checked against these pages on 2026-10-26. If anything differs, the official page wins.