r/golang • • 2d ago

Different models for coding tasks in Go?

Hi all

Has anyone here tested different models for coding tasks in Go?

I’m especially looking for cost-efficient, open models that may not be cutting edge but are good enough to write solid code.

I’m talking about providers like Qwen, Z.ai, DeepSeek and Tencent, and each of them offers several models. The market is crowded, and it’s hard to choose one.

The price difference compared to Anthropic, the current tech leader, is significant.

These are the models currently on my shortlist:

  • DeepSeek V4.1 Flash: very cheap, strong coding scores
  • DeepSeek V4 Pro: for harder tasks, very cheap with caching
  • GLM-5.3 (Z.ai): seems strong for agentic and multi-file work
  • MiniMax M3.1 Flash: ultra cheap option for routine tasks
  • Tencent Hy4 preview: new, promising benchmarks
  • Qwen3-Coder-Next: small, fast and cheap

Has anyone actually tested these runner-up models and can share some tips?

Did you have good or bad experiences with them?
Is there a model missing from my list that I should take a look at?

I’m currently using Compare AI Models: Pricing, Context & Benchmarks | OpenRouter and I’m happy with it, but I’m open to alternatives as well.

Best wishes,
Karl

0 Upvotes

6 comments sorted by

3

u/tiagocesar 2d ago

I used DeepSeek and GLM in the past, now I use Claude because of client constraints. I don’t think a model can compete with Claude at the moment, especially in finding corner cases. I would say DeepSeek is 85% if the way there, so if running a model from China is fine, it is a good choice.

Still, I have the $ 20 Claude subscription and it’s usually enough for my needs, as I write code less than 50% of my work week.

1

u/titpetric 2d ago edited 2d ago

Qwen3 coder next was the one which performed best in my last 12G vram gpu test. It passed some henious tests like making implementation plans to reimplement a tool of mine, then only with the plan reimplement the tool. Figuring out how you can pre-populate the context for execution is better than trying to get there with prompt/claude/tool calling outputs.

Most other models of the same size, or smaller models (any), fail on coding tasks imho. The idea of having fable or a sota model write the plan and have it execute with offline models is feasible, so you can workhorse some agentic code factory

I am fine using deepseek 4.1 flash and the openrouter cost is laughable. I do use the claude cli and its been about 2 weeks off the max plan, works fine for most things. I want to forget some stuff around trying to max out on a claude sub, it was even if i have some level of self-awareness, a pretty toxic mindset to speedrun through project or product management. It is what it is, going offline costs money if you are gpu poor

1

u/Thiht 2d ago

I use DeepSeek 4.1 Flash with OpenChamber for all my side projects and Claude Sonnet at work, I barely see any difference and Flash is dirt cheap. Only reason I'm using Claude at work is because we have an Anthropic workspace set up with cost management and everything so using Anthropic globally is easier.

I never actually need to use Opus for backend work, just doing a plan / grilling sessions gives me outstanding results, so I've never needed to use DeepSeek 4 Pro either.

1

u/sayboom 2d ago

AT this moment i testing GLM 5.3 as a coordinator and DeepSeek 4.1 Flash as a worker. Looks fine. Not so good, as Claude of course, but its cheap and enough for some tasks.

1

u/GaborDev 2d ago

Have you checked the pricing of Haiku? It is only 1/10th of Sonnet, and it is adequate for daily coding tasks

1

u/Accurate-Sundae1744 2d ago

I use glm 5.3 Flash a lot via opencode. It's stupidly cheap and with good context and within established project it does quite well. I sometimes refer design / architecture to sol