ai newsSa., 24. Okt.
EilmeldungGoogle’s Data Agent Kit Hits GA, Splitting Agent Guardrails Between Skills and IAM

DeepSeek V4.1 Flash in Claude Code and OpenCode: setup, test runs, and what it costs on four platforms

DeepSeek's newest Flash snapshot (V4.1 Flash 1017) is now what you get behind the deepseek-flash model name on DeepSeek's API. I wanted two answers: does it hold up as the model behind a coding agent, and what does it actually cost depending on where you call it? Disclosure: I run XHuoAPI, one of t

dev.toSamstag 09:35 · 24.10.1 Min. Lesezeit
Bild: dev.to

Veröffentlicht am 24. Okt. • Zuerst erschienen auf xhuoapi.ai

DeepSeeks neuester Flash-Snapshot (V4.1 Flash 1017) ist nun das Modell, das hinter dem Modellnamen deepseek-flash in DeepSeeks API steckt. Ich wollte zwei Fragen beantworten: Hält es sich als Modell hinter einem Coding-Agent durch, und was kostet es tatsächlich, je nachdem, über welchen Anbieter man es aufruft?

Offenlegung: Ich betreibe XHuoAPI, eine der vier unten verglichenen Anlaufstellen. Die Preise aller vier Anbieter sind mit Quellen aufgeführt, damit Sie sie selbst nachprüfen können.

Ich habe dieselbe kleine Aufgabe dreimal in jedem Tool ausgeführt: in einem leeren Ordner die Anweisung, eine Datei hello.py zu erstellen, die 'hello from xhuo' ausgibt, und einen Durchlauf nur als bestanden gewertet, wenn die Datei mit dem richtigen Inhalt existierte.

Die Claude-Code-Durchläufe dauerten 16 bis 27 Sekunden, OpenCode 9 bis 11 Sekunden. Jeder Claude-Code-Durchlauf sandte rund 32k bis 55k Eingabe-Tokens, fast ausschließlich Claude Codes eigenes System-Prompt und die Tool-Definitionen, sodass für die Agent-Nutzung der Eingabepreis wichtiger ist als der Ausgabepreis.

Claude Code (jeder zu Anthropic kompatible Endpunkt funktioniert auf dieselbe Weise; lassen Sie /v1 in der Basis-URL weg):

export ANTHROPIC_BASE_URL = https://api.xhuoapi.ai export ANTHROPIC_AUTH_TOKEN = IHR_KEY export ANTHROPIC_MODEL = deepseek-v4.1-flash export ANTHROPIC_DEFAULT_HAIKU_MODEL = deepseek-v4.1-flash Vollbildmodus öffnen Vollbildmodus schließen OpenCode 2, opencode.jsonc in Ihrem Projekt:

{ "$schema": "https://opencode.ai/config.json", "providers": { "xhuoapi": { "name": "XHuoAPI", "env": [ "XHUOAPI_API_KEY" ], "package": "@opencode/ai/providers/openai-compatible", "settings": { "baseURL": "https://api.xhuoapi.ai/v1" }, "models": { "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" } } } } } Vollbildmodus öffnen Vollbildmodus schließen Danach opencode run -m xhuoapi/deepseek-v4.1-flash "...".

Die vollständige Preistabelle (einschließlich V4 Pro) und die Testergebnisse pro Tool finden Sie in den entsprechenden Anleitungen auf xhuoapi.ai.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

Posted on Oct 24 • Originally published at xhuoapi.ai

DeepSeek's newest Flash snapshot (V4.1 Flash 1017) is now what you get behind the deepseek-flash model name on DeepSeek's API. I wanted two answers: does it hold up as the model behind a coding agent, and what does it actually cost depending on where you call it?

Disclosure: I run XHuoAPI, one of the four places compared below. Prices for all four are listed with sources so you can check them yourself.

I ran the same small task three times in each tool: in an empty folder, "Create a file hello.py that prints 'hello from xhuo'", and counted a run as passed only if the file existed with the right content.

Claude Code runs took 16–27 s; OpenCode 9–11 s. Each Claude Code run sent roughly 32k–55k input tokens, almost all of it Claude Code's own system prompt and tool definitions, so the input price matters more than the output price for agent use.

Claude Code (any Anthropic-compatible endpoint works the same way; leave /v1 off the base URL):

export ANTHROPIC_BASE_URL = https://api.xhuoapi.ai export ANTHROPIC_AUTH_TOKEN = YOUR_KEY export ANTHROPIC_MODEL = deepseek-v4.1-flash export ANTHROPIC_DEFAULT_HAIKU_MODEL = deepseek-v4.1-flash Enter fullscreen mode Exit fullscreen mode OpenCode 2, opencode.jsonc in your project:

{ "$schema": "https://opencode.ai/config.json", "providers": { "xhuoapi": { "name": "XHuoAPI", "env": [ "XHUOAPI_API_KEY" ], "package": "@opencode/ai/providers/openai-compatible", "settings": { "baseURL": "https://api.xhuoapi.ai/v1" }, "models": { "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" } } } } } Enter fullscreen mode Exit fullscreen mode Then opencode run -m xhuoapi/deepseek-v4.1-flash "...".

The full price table (including V4 Pro) and the per-tool test results are here: https://xhuoapi.ai/en/guides/deepseek-api-outside-china.html?utm_source=devto&utm_medium=article&utm_campaign=deepseek-v41-flash and https://xhuoapi.ai/en/guides/chinese-models-in-coding-agents.html?utm_source=devto&utm_medium=article&utm_campaign=deepseek-v41-flash

Quelle: dev.to (dev.to). Original öffnen