Generate a ready-to-paste config in 5 seconds
Pick your client, OS, and model — then click below to sign up and auto-fill this exact snippet with a scoped Starter API Key.
# Kilo Code / Cline / Roo Code · Provider Settings
API Provider: OpenAI Compatible
Base URL: https://api.modelseed.dev/v1
API Key: sk-YOUR_MODELSEED_KEY
Model ID: deepseek-v4-1-flash
Safety Cap: $2 (2,000 credits) (set per-key quota in Console -> API Keys)Why developers pair OpenCode v2 with GLM 5.3 and DeepSeek V4.1 Flash
OpenCode v2 has become one of the fastest-growing open-source terminal coding agents because it eliminates vendor lock-in: you keep full LSP integration, local git control, and session portability while bringing any OpenAI-compatible provider.
Pairing OpenCode v2 with Modelseed lets you switch seamlessly between glm-5.3-flash ($0.1003/1M input, 1M context), glm-5.3 ($0.8207/1M), deepseek-v4-1-flash ($0.0822/1M off-peak), and gpt-6.2-sol ($0.0642/1M) inside a single opencode.json config.
- 1M-context GLM 5.3 Flash and GLM 5.3 routes with flat 24/7 pricing and zero peak-hour surges.
- One Modelseed API key covers OpenCode v2, OpenCode Console, Codex CLI, and Claude Code.
- No monthly OpenCode Go subscription lock-in — prepaid credits stay valid for 365 days.
Published GLM 5.3 vs DeepSeek V4.1 Flash rates for OpenCode
GLM 5.3 Flash and GLM 5.3 stand out for agentic tool-calling reliability and generous 1M-token context tiers without separate peak-hour multipliers.
| Model ID | Context Tier | Input (no cache) | Output | Cache Read |
|---|---|---|---|---|
| glm-5.3-flash | 1M context | $0.1003 | $0.3511 | $0.0288 |
| glm-5.3 | 1M context | $0.8207 | $2.8725 | $0.2052 |
| deepseek-v4-1-flash | Standard | $0.0822 (off-peak) | $0.3289 | $0.0016 |
| gpt-6.2-sol | ≤272K tier | $0.0642 | $0.3208 | $0.0032 |
Copy-paste opencode.json custom provider configuration
Save this provider block in your ~/.config/opencode/opencode.json (or project opencode.json), export MODELSEED_API_KEY, and launch opencode to pick any listed model directly from the model selector.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"modelseed": {
"npm": "@ai-sdk/openai-compatible",
"name": "Modelseed",
"options": {
"baseURL": "https://api.modelseed.dev/v1",
"apiKey": "{env:MODELSEED_API_KEY}"
},
"models": {
"glm-5.3-flash": { "name": "GLM 5.3 Flash (1M)" },
"glm-5.3": { "name": "GLM 5.3 (1M)" },
"deepseek-v4-1-flash": { "name": "DeepSeek V4.1 Flash" },
"gpt-6.2-sol": { "name": "GPT-6.2 Sol" }
}
}
},
"model": "modelseed/glm-5.3-flash"
}Frequently asked questions
Does OpenCode v2 work with Modelseed without an OpenCode Go API key?
Yes. Defining modelseed under provider with @ai-sdk/openai-compatible connects OpenCode directly to https://api.modelseed.dev/v1 using your Modelseed API key.
When should I pick glm-5.3-flash vs glm-5.3 in OpenCode?
Use glm-5.3-flash ($0.1003/1M input) for routine refactors, tests, and rapid iteration. Switch to glm-5.3 ($0.8207/1M) or gpt-6.2-astra when tackling tricky multi-module bugs.
Can I also run Claude models inside OpenCode through Modelseed?
Yes. Add an Anthropic-compatible provider entry pointing to https://api.modelseed.dev (without /v1) to access claude-opus-5-5-kiro from the same balance.
How do I test OpenCode v2 before topping up?
Sign in to Modelseed Console for $0.20–$1.00 in starter credits, create a scoped OpenCode API key with a $2 cap, and run your first repository edits immediately.