Aider, Continue.dev & OpenCode with DeepSeek, Qwen & GLM API

Copy-paste custom OpenAI-compatible provider configs for Aider, Continue.dev, and OpenCode using DeepSeek V4.1 Flash (45% off), GLM 5.3 Flash (1M ctx), and Qwen 3.8 Flash on one prepaid key.

Modelseed ·
INTERACTIVE CONFIG WIZARD

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)
30-SECOND API QUICK START

deepseek-v4-1-flash · Input $0.0822 · Output $0.3289 per 1M tokens

Get key + bonus
from openai import OpenAI
client = OpenAI(base_url="https://api.modelseed.dev/v1", api_key=os.environ["MODELSEED_API_KEY"])
res = client.chat.completions.create(model="deepseek-v4-1-flash", messages=[{"role":"user","content":"Hello!"}])
Starter bonus: $0.20–$1.00 (200–1,000 credits) + +10% first-payment bonus · Lava from $1, USDT & Binance Pay · DeepSeek rates · Pricing calculator

One cheap OpenAI-compatible key across terminal and IDE coding agents

Open-source coding agents like Aider, Continue.dev, and OpenCode let you bring your own API key instead of paying $20–$200/month per locked-in seat. The main bottleneck is choosing a single endpoint that offers aggressive token pricing for routine edits, 1M context for large repositories, and seamless escalation to stronger reasoning models.

Modelseed exposes https://api.modelseed.dev/v1 for standard OpenAI chat/completions clients so Aider, Continue.dev, and OpenCode share one 365-day prepaid balance (or one non-renewing 30-day Pro/Max/Ultra coding bundle) with zero recurring card lock-in.

Recommended coding-agent model split on Modelseed (USD per 1M tokens)
Coding TaskModel IDInput / OutputWhy It Fits
Daily edits & diff patchesdeepseek-v4-1-flash$0.082 / $0.329 (off-peak)45% off official + $0.0016 cache read
Fast low-TTFT chat & autocompletegpt-6.2-sol$0.064 / $0.321 (flat 24/7)~1.9s TTFT, zero peak multiplier
Large-repo 1M context searchglm-5.3-flash / qwen3.8-flash$0.100–$0.191 in (flat 24/7)1M context window on one key
Hard architecture & code reviewdeepseek-v4-pro / gpt-6.2-astra$0.410 / $0.257 inEscalate only when complex diffs need it

Aider configuration (CLI & .aider.conf.yml)

Aider routes custom OpenAI-compatible gateways via the openai/ model prefix plus OPENAI_API_BASE and OPENAI_API_KEY. Set a strong architect model alongside deepseek-v4-1-flash as the fast editor model to cut multi-file refactor costs by 60–80%.

bash / zsh — Launch Aider with Modelseed (DeepSeek V4.1 Flash)
export OPENAI_API_BASE="https://api.modelseed.dev/v1"
export OPENAI_API_KEY="sk-YOUR_MODELSEED_KEY"

# Fast & cheap everyday edits
aider --model openai/deepseek-v4-1-flash

# Optional: architect + editor split on the same key
aider --architect \
  --model openai/gpt-6.2-astra \
  --editor-model openai/deepseek-v4-1-flash

Continue.dev (config.yaml) & OpenCode (opencode.json)

In Continue.dev (VS Code / JetBrains), configure provider: openai with apiBase pointing to https://api.modelseed.dev/v1. In OpenCode, declare a custom @ai-sdk/openai-compatible provider so you can switch models mid-session without restarting.

~/.continue/config.yaml (Continue.dev) & opencode.json (OpenCode)
# --- ~/.continue/config.yaml (Continue.dev) ---
name: Modelseed Coding Stack
version: 1.0.0
schema: v1
models:
  - name: DeepSeek V4.1 Flash (Modelseed)
    provider: openai
    model: deepseek-v4-1-flash
    apiBase: https://api.modelseed.dev/v1
    apiKey: ${{ secrets.MODELSEED_API_KEY }}
    roles: [chat, edit, apply]
  - name: Qwen 3.8 Flash 1M (Modelseed)
    provider: openai
    model: qwen3.8-flash
    apiBase: https://api.modelseed.dev/v1
    apiKey: ${{ secrets.MODELSEED_API_KEY }}
    roles: [chat, autocomplete]

// --- opencode.json (OpenCode custom provider) ---
// {
//   "$schema": "https://opencode.ai/config.json",
//   "provider": {
//     "modelseed": {
//       "npm": "@ai-sdk/openai-compatible",
//       "options": { "baseURL": "https://api.modelseed.dev/v1", "apiKey": "{env:MODELSEED_API_KEY}" },
//       "models": {
//         "deepseek-v4-1-flash": { "name": "DeepSeek V4.1 Flash" },
//         "gpt-6.2-sol": { "name": "GPT-6.2 Sol" },
//         "qwen3.8-flash": { "name": "Qwen 3.8 Flash" }
//       }
//     }
//   }
// }

Starter templates for Aider, Continue, Cline, Roo Code, Kilo Code, LiteLLM, Dify, and n8n are also published open-source at github.com/uniteonline/modelseed-api-examples.

Frequently asked questions

Why does Aider require the openai/ prefix before deepseek-v4-1-flash?

Aider uses LiteLLM under the hood to pick the client dialect. Prefixing openai/ tells LiteLLM to send standard OpenAI Chat Completions requests to OPENAI_API_BASE (https://api.modelseed.dev/v1) using your exact Modelseed model ID.

Can I test Aider or Continue.dev before paying anything?

Yes. New verified accounts receive $0.20–$1.00 in welcome credits with no credit card required, which is enough for hundreds of Aider edits or Continue chat turns on deepseek-v4-1-flash.

How do I prevent an autonomous coding agent from burning my whole balance?

Create a dedicated API key per tool (e.g., aider-key, continue-key) inside the Modelseed console and set an explicit USD quota cap on each key before pasting it into your config.

Do 30-day Pro/Max/Ultra plans work with Aider, Continue.dev, and OpenCode?

Yes. Pro ($20 / 22,000 credits), Max ($100 / 118,000 credits), and Ultra ($200 / 240,000 credits) all use the same standard API keys and never auto-renew.

Official references

BUILD WITH MODELSEED

From an idea to your first request.

One key and a familiar API. New verified accounts receive a $0.20–$1.00 welcome bonus (200–1,000 credits, 30 days) + 10% bonus on their first payment.

Get API key + bonus