How to measure cost of models for programming

Reddit r/AI_Agents News

Summary

An explainer analyzing the real-world cost of AI models for programming, comparing DeepSeek Flash and OpenAI's Luna via token pricing, caching distributions, and subscription math.

Recently, DeepSeek and OpenAI released their recent model refreshes for the mini sized models (Flash and Luna) with purported scores from DeepSWE at around GPT5.4, but its hard for people to understand how much they cost. Below is some basic math. A good rule of thumb is that if you're using say a subscription to codex luna will roughly 12-25x your total max usage. Roughly, you will get about 140Billion tokens a month via Codex 20x subscription. In real $ costs at about 7 billion tokens/month, luna is going to cost about $250. Comparatively, deepseek is going to $75 for 7 billion tokens. This is about 1/3rd Luna price. But you'd need to buy directly. If you're on a small budget of like $10-20/month, you can probably just use opencode go and get fairly decently far. To measure cost of a model, calculate cost of tokens versus distribution. The average distribution of your usage for programming is going to be 93/95% cached input tokens, non cached at about 2-4% and output at about 1-2%. The output increased proportional to if you're using max or not. The main reason DeepSeek flash is much cheaper is that the cache tokens are about 1/7th luna equivalent pricing, and about 1/5th the output tokens. If your use case is significantly different wherein you are mostly generating the tokens, and not using caching the distribution will change.
Original Article

Similar Articles

A cheaper AI model is not necessarily cheaper once retries are counted

Reddit r/artificial

A side-by-side coding experiment comparing GPT-5.6 Luna and DeepSeek V4 Flash shows that DeepSeek's apparent 5x price advantage shrinks when retries are included. The article argues for more comprehensive benchmarks reporting cost per attempt and cost per verified success.

Price per 1M tokens is meaningless

Hacker News Top

This article argues that comparing AI models by price per million tokens is misleading due to differences in tokenizers and token efficiency. It provides a benchmark cost analysis showing that models with higher per-token prices can be cheaper per completed task, with DeepSeek V4 Pro being a strong cost-efficiency outlier.

Cost Analysis of 33 AI Image Models

Reddit r/artificial

An analysis comparing the costs of 33 different AI image generation models, providing insights into pricing and value for developers and businesses.