How to Get Free DeepSeek V4 Access in Claude Code (Bailian & ModelScope)
Chon Hyeonwoo from Tokyo shared a guide on free access to DeepSeek V4 in Claude Code:
Step 1: get an API key
You can use Aliyun Bailian or ModelScope — both provide a free quota
Aliyun Bailian (1 million tokens each for V4 flash and pro)
ModelScope (on average 2000 free calls per day, limit — 500 calls per model)
Step 2: download CC Switch and create a provider
— a desktop tool for switching between providers
After installation:
— open the app
— create a new provider
— choose Bailian or ModelScope from the presets
— paste the API key
Step 3: configure the model
Configuration depends on the task. Example:
— main model: V4 flash
— for complex tasks: V4 pro
Nuance: by default, the context is 200K
To enable 1M, you need to add [1m] to the model name
Model name formats :
— Aliyun Bailian:deepseek-v4-flash[1m], deepseek-v4-pro[1m]
— ModelScope:deepseek-ai/DeepSeek-V4-Flash[1m], deepseek-ai/DeepSeek-V4-Pro[1m]
Step 4: save the config and launch Claude Code