r/opencode • • Oct 28 '26

My 2 day experience with Deepseek API with $10 balance

I'm just sharing my experience so you can compare what it would be like to consume $10 USD on the Deepseek API directly. It can be concluded that my needs are not too complex and fine-tuned skills, mcp and agents have been carried out so that it is made optimally in terms of token efficiency and output that fits the context of the instructions, so with a balance of $10 USD on Deepseek it only lasts 2.5 days. For those who use it for free, and it's abusive, don't be loud, don't be fussy, you'll demonstrate to the government so that our dollar rate goes down.

Additions regarding Input (Cache hit-miss) and Output:

2026-10-27
2026-10-28
57 Upvotes

30 comments sorted by

8

u/P4ITON Oct 28 '26

Meio bilhão de token por 8$ pra mim está mais que ótimo

2

u/afcreative_id Oct 28 '26

Of course, plus there is very optimal synergy between agent rules, mcp, skills.

1

u/P4ITON Oct 28 '26

O uso foi totalmente pelo opencode? Pode passar os métodos para economia dos tokens?

6

u/afcreative_id Oct 28 '26

Yes, I just use Opencode as the agent. It's simple for me, try making 1 ms to be like the sitemap, so the agent doesn't guess too much. Plus use mcp, workflow skills that synergize with each other and are optimally integrated. Sometimes I always get SS where there are too many mcp, too many skills, which sometimes aren't used. Make sure the md rules file, which is always updated regularly, is made readonly and the agent never overwrites or updates it, it's best to create a new md file. Make sure every week you always ask the agent to update his own library so he can choose which ones are often used and which ones are useless. Regarding caveman, don't submit the caveman process every time, but every month or every 2 weeks always reprocess the library or rules agent for the compression process using caveman. Make sure the MD is written in one language, namely English, so that the caveman process is more efficient.

1

u/P4ITON Oct 28 '26

Muito bom!

6

u/squirrelscrush Oct 28 '26

What is your cache hit rate?

2

u/afcreative_id Oct 28 '26

Check the update post above, I've added it.

4

u/squirrelscrush Oct 28 '26

Got it. It's a lot of cache miss / output tokens compared to total tokens, because $8 easily can go more than 1B tokens.

2

u/afcreative_id Oct 29 '26

Regarding this, I am not very experienced because I am just sharing my experience. I don't have an example yet with a balance of $8 you can get more than 1B tokens, if you can do that, try to prove it and I need correction on this.

4

u/squirrelscrush Oct 29 '26

https://imgur.com/a/aWsec7b

This has been my usage for past one month. The CNY amount is around $0.91, so it comes around $6.87 for 918.7M tokens. Extrapolating it to $8, it'll easily cross 1B.

1

u/afcreative_id 29d ago

This is because the first time I monitor technical things like cache hit-miss, then how to optimize things like cache tokens? what about the instruction pattern and agent rules? or from the configuration of the platform? BTW I always automatically process the compaction every 120k tokens, is it less effective if I always process the compaction every 120k tokens?

3

u/squirrelscrush 29d ago

Most harnesses optimize well for cache hits, but if you use only DeepSeek then dsh is the best since it's their inhouse one. DeepSeek's cache stability is very simple: it adds cache from left->right so don't change any of the config/agent/tool-definition/etc files once a session starts. ie. don't change the cache prefix (the part which you already entered into the context).

And yes, if you always do compaction at 120k tokens it'll reduce the cache hit because everytime you perform compaction, it writes a summary of the whole context window so it invalidates the cache prefix so it makes new cache which is a cache miss. Keep the limit around 600-750k tokens, that's a sweet spot.

You can also use some plugin that has dynamic context pruning, ie. they only remove the chats at the middle/end of the cache prefix instead of changing the whole cache, so there's reduced cache misses.

Also as I said, once the session starts, don't change anything about the harness like don't add/delete/edit tools/MCPs/skills/agents/AGENTS.md etc.. These files are usually added at the beginning of the cache, so changing them means the whole cache gets invalidated (since the parser checks from left->right).

1

u/afcreative_id 29d ago

Maybe what I'm trying to change is the habit of compacting to every 600k tokens first, because for rules agents it changes very often for me because often every time I find a new discovery that can make it efficient, such as making agent tools which are usually reusable, then there must be information to the rules agent so that he uses it in certain conditions and it is proven that this can speed things up. Thanks for the suggestion.

6

u/MeliousAI_HQ Oct 28 '26

Cache hit rate is the number to look at. If something at the start of your context changes every turn, like a timestamp in the system prompt or tools loading in a different order, almost nothing gets cached and you pay full input price on the whole history with every request. Keeping that prefix stable usually makes the same balance last a lot longer.

1

u/afcreative_id Oct 28 '26

Check the update post above, I've added it.

6

u/MeliousAI_HQ Oct 28 '26

ah thanks for adding that! turns out I was wrong lol, 97-98% cache hits is honestly great.

The bigger cost seems to be size per request: ~600M tokens over ~5k requests is around 115k of context going in for ~650 tokens out each turn. Cheap per token but it adds up fast loading fewer MCP servers and starting fresh sessions a bit more often could probably stretch that $10 quite a bit further. cool breakdown btw, super useful to see real numbers

4

u/afcreative_id Oct 28 '26

OK, I'll take the suggestion and put it in, just let me know. Later I will also recap opencode go - go plus when the balance on Deepseek runs out.

1

u/MeliousAI_HQ Oct 29 '26

Sure stoked to see!

4

u/ncxxi 25d ago

DeepSeek has that off-peak, on-peak pricing and the on-peak pricing is not really worth it if your budget is tight or is a student.

1

u/afcreative_id 25d ago

Sure, I’m just experimenting, better than staying curious, right?

2

u/bestlabib Oct 28 '26

Please share your setup like what skill mcp hooks you use to get things done optimally

2

u/afcreative_id 29d ago

This is optimal in my opinion and the project base that I use now, what is certain is that the MCP that I use supports it from the agent side, not from the programming language that I use.

2

u/P4ITON Oct 28 '26

Ele compartilhou lá em cima

2

u/MorbilyABeast 26d ago

As someone who was banned from using claude recently for ue5 game dev c++. Im thinking about deep seek , is there anything a newb like me should know to get the best quality and usage?

1

u/afcreative_id 26d ago

Provide a limit on the number of sub-agents running, don't have too many agent instances running simultaneously. It could be that you were banned because you had too many sub-agents.

1

u/MorbilyABeast 26d ago

I dont use agents. Just tell desktop version what I want and thats it

2

u/Plane-Ad-2690 19d ago

We have the same token cons, my 10$ can only last me 2 days at most in the deepseek API, but recently i transitioned into opencode go 10$, they have a maximum allowance of 100$ for deepseek, i would say it's prtty massive, and i haven't hit the limit yet in 6 days

1

u/afcreative_id 19d ago

That's right, I used Opencode Go from the start, I only used Deepseek for $20, because netizens here were curious and said it was more worth it directly Deepseek Api, and it was proven that those who said this were bullshit.

3

u/SpectyteCovelight Oct 28 '26

Share the page to get the DeepSeek API please