Skip to content
English

Switch theme

// 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

  1. Log in at cloud.siliconflow.cn (SMS code or email).
  2. Open “API 密钥” → “新建 API 密钥”, add a description and copy the key.
  3. Set base_url to https://api.siliconflow.cn/v1 in any OpenAI-compatible SDK.
  4. 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 verificationThe quickstart does not require it; the console has a real-name section – which actions need it is up to the platform (以官方为准).
Phone numberLogin by SMS code or email (per the quickstart).
Credit card / paymentFree models need no payment; paid models draw on your account balance.

03Base URL and a minimal call

Base URL:https://api.siliconflow.cn/v1
International site: siliconflow.com (separate account and endpoint – check its docs).
Environment variable:SILICONFLOW_API_KEY · Example model:deepseek-ai/DeepSeek-R1-0528-Qwen3-8B
Marked free (¥0) on the official pricing page on 2026-10-26. Paid twins of free models carry a “Pro/” prefix.

curl

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)

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.

Our free-API tracker:Models marked “free” on the pricing page cost nothing (billed at ¥0); paid twins carry a Pro/ prefix.
checked 2026-10-22 · details →

05SiliconFlow API prices

All model prices →
ModelInput / 1M tokensOutput / 1M tokensSource
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

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

All facts checked against these pages on 2026-10-26. If anything differs, the official page wins.

09Related

Other API key guides

Data updated: Model API prices · HF model metadata(UTC+8)