Skip to main content
Blog

July 31, 2026

DeepSeek V4 Flash on OpenCode Go now requires China hosting opt-in

What happened today, why it matters, and how to keep coding without China data routing

Photo of Fabio Borges

Fabio Borges

July 31, 2026 — DeepSeek shipped the official V4-Flash-0731 release (public beta). The model ID deepseek-v4-flash didn't change, but the upstream did: OpenCode Go/Zen now routes this model exclusively through DeepSeek's first-party API at api.deepseek.com, which is hosted on PRC infrastructure.

If you use OpenCode Go and have "Enable models hosted in China" disabled (the default), requests to deepseek-v4-flash now fail with:

"The latest version of this model is only available hosted in China and requires explicit opt in: https://opencode.ai/workspace/.../go"

This caught many developers mid-session today.

The preview version of V4 Flash (released April 24) was available via multiple third-party providers — DeepInfra, Fireworks, Novita, Morph, etc. — all offering US/EU residency with zero data retention.

The official 0731 release is served only from DeepSeek's own infrastructure in China. OpenCode's gateway doesn't yet proxy the 0731 checkpoint through non-China hosts. OpenCode staff confirmed on Bilibili that the gateway now serves the official build, and Responses API support is still in compatibility testing.

  1. Go to your OpenCode workspace: https://opencode.ai/workspace/<your-workspace-id>/go
  2. Enable "Enable models hosted in China"
  3. Continue using deepseek-v4-flash via OpenCode Go

Trade-off: Your requests (prompts, context, code) route through DeepSeek's PRC servers under Chinese data law. No ZDR (zero data retention) guarantee on this path.

ProviderRegionZDRInput/Output per 1MOpenAI-compatible
DeepInfraUS✅$0.09 / $0.18Yes
FireworksMulti✅$0.14 / $0.28Yes
NovitaUS✅$0.14 / $0.28Yes
MorphUS✅$0.14 / $0.28Yes
SferenceEU✅$0.14 / $0.28Yes
TensorXEU✅$0.15 / $0.30Yes

Set your own API key and base URL:

Env
# Example: DeepInfra
OPENAI_BASE_URL=https://api.deepinfra.com/v1/openai
OPENAI_API_KEY=your_deepinfra_key
OPENAI_MODEL=deepseek-v4-flash

This keeps your data in US/EU jurisdictions with zero data retention guarantees.

OpenCode Go includes 14+ models. Non-China-hosted alternatives on the platform:

  • MiMo-V2.5 (Xiaomi) — $0.28/1M, 30,100 req/5hr
  • MiMo-V2.5-Pro — $0.87/1M
  • Qwen3.7 Plus — $3.00/1M
  • GLM-5.2 (Zhipu) — $4.40/1M
  • Kimi K2.7 Code (Moonshot) — $3.50/1M
  • MiniMax M3 — $1.20/1M

Run with:

Bash
opencode run --model opencode-go/mimo-v2.5 "your task"

V4 Flash weights are MIT-licensed on Hugging Face (~158 GB FP4/FP8). Runs on:

  • 1× H200 (141 GB) or 2× A100 80 GB
  • 4× RTX 4090 with INT4 quantization (quality trade-off)

Zero network egress. Your hardware, your rules.

The preview checkpoint is effectively deprecated. OpenCode's gateway has switched to 0731. If you were relying on the preview via third-party hosts through OpenCode, that path is gone — at least until OpenCode adds non-China upstream proxies for the official release.

ApproachData residencyCostEffort
Enable China toggleChina (PRC law)$0.14/$0.281 click
DeepInfra/Fireworks/Novita directUS/EU, ZDR$0.09–$0.14 / $0.18–$0.28New API key
Switch to MiMo-V2.5 on GoUnknown (check per model)$0.28Model flag
Self-hostYour infraGPU costHigh
  • OpenCode may add non-China upstreams for 0731 (watch #39845)
  • Responses API support for deepseek-v4-flash on OpenCode is in testing
  • DeepSeek V4 Pro official release coming soon (separate model, separate hosting)

For now: if you need non-China data routing, use a direct provider API key instead of OpenCode Go for this model.

Full disclosure: This site uses OpenCode Go for the AI assistant on every page. The API key is set via OPENCODE_API_KEY in the deployment environment. As of today, we've switched the chat API to mimo-v2.5 (see commit) to avoid the China routing requirement.

Share this post:

Discuss this post on Dev.to
26 GitHub repos