Models
DeepSeek V4 Flash API: Pricing, Requests & Tool Setup
Updated
Start here
The Chat Completions example checks your key, model name, and basic response. Desktop handles the DeepSeek Harness configuration; start a new Harness session after applying it.
- UnifyLLM model ID: deepseek-v4-flash
- Example endpoint: /v1/chat/completions
Pricing and billing
Open current DeepSeek V4 Flash pricing to filter the list. Select your key’s group and the credit or cash unit.
- Input and output are charged separately. For rates per million tokens, cost for each category = tokens ÷ 1,000,000 × its rate.
- Cached input follows the model and group’s cache rules. Cache reads and writes are different categories; an unlisted rate does not mean zero cost.
- Check the group before use. The same model can have different ratios and availability across groups.
- Use usage logs to reconcile the actual model, group, input, output, cache usage, and final charge.
Send a short request
Use Bash or zsh and set UNIFYLLM_API_KEY before running the example. On Windows, use a Bash terminal; see the endpoint reference for SDK fields. The request uses a small amount of credit.
See the Chat Completions reference for full fields, streaming, and response structure.
1curl https://api.unifyllm.top/v1/chat/completions \2 -H "Authorization: Bearer $UNIFYLLM_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "deepseek-v4-flash",6 "max_tokens": 512,7 "messages": [8 {9 "role": "user",10 "content": "Explain how to read a project before changing files."11 }12 ]13}'Use it in a coding tool
Harness desktop and CLI/Web share settings. Existing sessions keep their original model; reopen Harness and start a new session.
Download UnifyLLM Desktop and follow the DeepSeek Harness setup guide. Enter your key and use deepseek-v4-flash as the model name.
Check results and common errors
Reconcile the request in console usage logs. Keep the request ID, error, and time; omit your real key when asking for help.
- 401: check the complete key and the authentication header required by the endpoint.
- Model not found or access denied: check the full model name, key group, and permissions.
- 429: inspect the limit and reduce concurrency. Avoid blindly retrying successful or uncertain paid requests.
- API works but the tool fails: check activation, restart, and project-level overrides.