r/opencode • • 23d ago

How is Deepseek V4.1 Flash in OpenCode compared to Official API?

I have seen a bunch of benchmarks saying that OpenCode is using a heavily quantized version of Deepseek V4.1 Flash. How bad is it for you guys? I have only seen a few people's experience so I don't know if the majority are having a really bad experience here.

The $100 usage is so attractive to me and idk if I should choose OpenCode Go or Direct API. I value my time as well so it'll suck if I go with OpenCode Go and I'll have to deal with a dumbed down model everyday 😔

103 Upvotes

51 comments sorted by

52

u/squirrelscrush 23d ago

I used both. Here's my review:

  1. DeepSeek API is much faster than OpenCode Go. I suspect it's due to them provisioning more users the same hardware, so inference can be cheaper while cost is reduced. But it's still usable on Go, I get 224tps on average. But it goes slow during peak hours. And sometimes there's some latency between turns too when the servers are full.
  2. It has a much better cache retention time. You can keep cache for hours and come back, while Go has 5mins cache retention. So keep warming: true.
  3. If you know you'll use more than $10 a month, then Go is much more preferable and worth it. I've used around $36 in the last 30 days which has saved me a lot in API costs, and my monthly usage is at 51% (since I used some other models too).
  4. I don't think there's a significant quality decrease compared to API. The big difference is the TPS like I mentioned, but that's irregular throughout the day.

8

u/8000bene70 22d ago

I've gotten full cache hits after 45 minutes on Go. But not after hours like on direct API.

5

u/squirrelscrush 22d ago

It depends on the provider, sometimes your cache may not be overwritten by someone else's. But 5mins is what they say in the docs.

3

u/_derpiii_ 22d ago

If you know you'll use more than $10 a month, then Go is much more preferable and worth it. I've used around $36 in the last 30 days

How are you measuring this? I'm using the Pi cost tracker and I'm getting about $2.50/month of deepseek compute.

Maybe something is wrong with my setup (Pi + opencode go key), but I'm finding direct to be way cheaper.

4

u/squirrelscrush 22d ago

You can see it on OpenCode Console dashboard.

It also depends on how much you code. I keep my agents running for hours so I have a high usage.

2

u/_derpiii_ 22d ago

> OpenCode Console dashboard

Oooh, is that the command line?

I use the subscription in Pi - I haven't used it through open code yet. Probably better optimized through OpenCode, hmm

2

u/squirrelscrush 22d ago

No like if you go on https://opencode.ai/console and log in with the account you made for Go subscription, you can see detailed analytics.

1

u/_derpiii_ 22d ago

Ah I didn't know that! Thank you :)

1

u/LiteSoul 22d ago

Is there a way to keep the cache warm?

1

u/squirrelscrush 22d ago

There is a warming feature in opencode, but it still has an initial cache miss.

1

u/jambyung 20d ago

Never knew about this feature! Thank youuu

1

u/squirrelscrush 20d ago

There is a bug with it presently though, so best to avoid using it

1

u/andimeon 21d ago

Have you tried the last 4.1 1017 model via official API?

2

u/squirrelscrush 21d ago

Yes, I had to use it one whole day when Go was down.

34

u/TimelyLivingCore 23d ago

I stopped trying to chase better value through different providers, output for me as a decently heavy token user is vastly better through the official API compared to anything else i tried to use Deepseek from not to mention the higher TPS

2

u/DertekAn 21d ago

As I mentioned in another comment: While I completely understand that, the biggest difference in quality is actually their own Opencode harness. (Bad)

That said, yesss, DeepSeek is among the best when it comes to speed and caching.

15

u/Vlyn 23d ago

I've used both and also compared them directly on the same task.

Same quality code wise as far as I could see. Official API is faster, but all you get is $10 usage there. Input cache is slightly better on the official API (like best case scenario, half as many input tokens used), but even if OpenCode GO costs double in tokens that's still $20 usage of $100.. with the official API your $10 are gone and that's it.

So just grab OpenCode Go and have fun :)

2

u/ZHName 22d ago

I have to agree. Even on Low Ds4.1 via api directly was rather bland or overly verbose on High.I used their harness and Opencodes, saw no difference but seemed maybe more confusion by the model in a workspace Opencode used before. Kinda disappointing because I wanted DS api to be more cost efficient so those claims did not hold up, which I first saw here in this subbreddit.

13

u/MLGSW4G 23d ago

I haven't tried direct API, but even if OpenCode is quantizing it, I'm ok with it as far as I'm getting 10x value even with slightly lower TPS (I don't notice the slow down practically, but everybody is talking about it).
I tried CommandCode GOAT yesterday and based on like 5 light sessions, they perform almost identical.

2

u/squirrelscrush 23d ago

The TPS depends on the time of the day. Sometimes it's fast, sometimes slow.

16

u/look 23d ago

Slower, but same quality otherwise. It is not quantized.

3

u/AnCey07 22d ago

both aren't abliberated. Restrictions goes through the roof

4

u/owpapi 23d ago • Bravo

Tried both and I stayed with the API. I need to get shit done faster.

2

u/pnbalaji1974 22d ago

I have been using deepseek v4.1 flash 1017 in opencode using clinepass and so far it has been great. I am using the $10 monthly plan of clinepass.

3

u/abhijithwarrier 23d ago

tried both, can tell that no difference in quality. the one given in opencode is a bit slower. about 168tok/s for me, while official ones almost hits 200tok/s. Still manageable for me given the value for 10$

2

u/_4rcadia 23d ago

Mostly the same. Quantization is likely but wouldn't affect the model that much. The performance can be unstable sometimes.

https://x.com/thdxr/status/2116581467715195278?a=ZrPZ8vCZHfc45KhhWRI&s=20

2

u/DisagioUngerese 23d ago

i am unsure, but official api seems to take into account the accumulated token count only, when using up the balance,  while opencode go does this for each call separately, resulting at least the minimal fee per call for input/cache/output. 

anyhow, my credits last waaaay longer at deepseek directly.

2

u/meanmrgreen 23d ago

So you get more credits for 10 dollar from official API than from opencode?

1

u/DisagioUngerese 23d ago

according to my experience.. yes. 

1

u/sertdisk 23d ago

In both scenarios, here are my experiences and observations:

Official API:

- Noticeably much faster.

- I have never experienced any service interruptions.

- The caching rate is tremendous—it’s at 97% for me.

- It feels more stable in operation.

- It seems more robust when it comes to problem-solving (though this impression might simply stem from its speed and stability).

"Go" (Subscription):

- I haven’t noticed any difference in the quality of the code output.

- I don’t know my exact caching rate, but the $100 credit provided allows for a massive volume of usage.

- During long, extended sessions, I occasionally have to remind the model of the task at hand. (I’m not referring to simple, single-prompt cycles, but rather long, multi-turn sessions; sometimes, after a lengthy process, the model might treat a new prompt as if it’s unrelated to the main topic of the ongoing work.)

Conclusion:

Since there is a significant cost advantage without any noticeable drop in quality, I primarily use my "Go" subscription. If any issues arise with "Go," I fall back to the API—a process handled automatically by the extension I use.

Note: Because about 90% of my DeepSeek usage happens via "Go," it’s possible that the rare issues I’ve encountered there simply haven’t come up when using the API.

1

u/BusinessBroccoli4313 23d ago

Has anyone used DeepSeek models with Fireworks AI pay-as-you-go (serverless)?The best experience I’ve had with LLMs by far is the combination of pi and FirePass (Kimi 2.6/2.7 Turbo). I stopped using it when they got rid of the FirePass sub but am thinking of going back.

1

u/Ok_Anybody1075 22d ago

Use it on codeMago and thanks me.

1

u/PuzzleheadedBread854 22d ago

Para usar la api toca en DeepSeek Harness o cómo??

1

u/Administraciones 22d ago

1017 Flash is a little better, but both accomplish tasks good, I've been using them for different things for like a month, alternating both of them within the same projects. OpenCode 4.1 Flash is much more slower than "official", that's the main difference, at least for me.

1

u/sirloindenial 22d ago

depends if you want 1 billion fast quality tokens, or subpar slower 10 billion tokens of dsv4.1.

1

u/zitoliv 22d ago

Easy to check yourself tbh: same task on both, compare. And the official API is cheaper than it looks for agents, cache hits are $0.006/M ($0.003 off-peak) : most of a session is history at that price.

1

u/AyieJosh 21d ago

official is faster toks/s but subscription based model gives you more quota. it's a nice trade-off

1

u/HolidayAd7430 17d ago

slower , less capable ,but much much cheaper

1

u/simo025 16d ago

try DS of alibaba token plan, starting ftom 6 dollars per month, i use the 68 dollars subscription plan. its excellent

1

u/Current-Abalone-5557 23d ago

10x better cost effective

1

u/DertekAn 21d ago
  1. The only differences I notice are in terms of speed (it’s slower) and cache hits.
  2. I’m using my key directly in the DeepSeek harness, and the quality is absolutely stellar. I’m currently building games, and everything I test looks fantastic. The code also appears to be high-quality. (I have also used OpenAI and Anthropic, so I know how good the results can look)
  3. Unfortunately, I cannot recommend the OpenCode harness; the quality there is significantly worse (unless you’re willing to accept lower quality in exchange for faster, cheaper results).

0

u/Not-So-Logitech 23d ago

Absolutely no issue with it. Been using it for a while. It's a good model. Having said that, sometimes I get a heavier model to review some of the output. 

-6

u/horrbort 23d ago

Heavily quantized on weak hardware. How else do you expect it to be 2c per 1Mtok

4

u/CampMaster69 23d ago

Big assumptions here mate..

1

u/squirrelscrush 23d ago

By sharing more users on the same hardware. And DeepSeek is relatively easy to infer too.

It is also economics of scale, some people use more while some use less. So even if the breakeven point is $50 for DeepSeek API equivalent (if it costs â…•th of selling price to infer), I'm sure most users don't cross that line too.

-6

u/DitiPenguin 23d ago edited 22d ago

You’re on a subreddit about the OpenCode harness (it’s written in the about page), not about the OpenCode Go platform. So I’ll give an answer related to the harness: don’t pay for a plan, pay for API use directly, on whichever inference platform offers non-quantized DeepSeek 4.1 Flash 1017. I personally use Deep Infra (it’s American, but it’s cheap).

1

u/EvolvingDior 23d ago

I get a much lower cache hit rate with Depinfra than with Deepseek API.

1

u/xapep 22d ago

Cache hit rate is mostly a property of the host, not the model. Two things decide it: the retention window and whether your calls land on the same backend. A short TTL looks fine inside a loop and collapses the moment you stop to read a diff, and a host balancing across replicas without a shared cache drops hits even on a byte-identical prefix.

Check whether the low number is a real miss or a reporting difference. cached_tokens over prompt_tokens, measured on a warm loop and not on the first call of a session.

The prefix itself matters as well. Tool schemas or system prompts that get reordered between turns break the match, and nothing in the response tells you.

I work on inference at Entrim, so discount the provider half of this. What's your hit rate on a warm loop, and does it come back if you keep the prefix fixed?

0

u/DitiPenguin 23d ago edited 22d ago

Yeah, that’s to be expected since Deep Infra has zero-retention policy. The KV cache gets cleared quickly. OpenCode Go trains on your data and the cache could theoretically be retained for up to 30 days.