13 Python tasks in OpenCode: DeepSeek Flash cost $0.67, Claude Opus cost $8.76
In a test of four models on 13 Python tasks, all solutions passed the checks. DeepSeek Flash incurred a cost of $0.67, while Claude Opus cost $8.76.

The author ran OpenCode in non-interactive mode and allowed the models only to edit files and execute a limited set of Python commands and system utilities. Requests were sent via TeamoRouter, so the results pertain to this route and its caching conditions.
The set included ten individual functions with edge cases and three small repositories: one with transactions in a key-value store, one with bugs in a tabular engine, and one involving the replacement of a notification interface. For each task, three runs were performed, and the solutions were verified using hidden and standard project tests.
An identical result did not imply an identical approach. In the transaction task, Claude left new tests in the repository, even though their addition was not required. DeepSeek maintained the original number of checks: the model ran additional checks in the console or temporary scripts and then deleted them.
The author separately recalculated the costs based on the published model rates. This calculation turned out to be higher than the actual charges via TeamoRouter, especially for Claude: the difference was influenced by caching, the number of steps, and the volume of output tokens. The author notes, however, that the small set of tasks does not allow for confident conclusions about the superiority of the models, as all of them passed the checks.





