

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Providers and Models
incomplete
2: Model Costs
incomplete
3: Open-Weight Models
incomplete
4: Self-Hosting Models
incomplete
5: Reasoning Models
incomplete
6: Payment Strategies
incomplete
7: Cost Effectiveness
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
With each new prompt, you can quickly switch models with /models and variants with ctrl+t. Those are your two main levers for controlling cost.
You can waste a lot of time micromanaging this on every prompt. I just use a sane default for most work.
As you're watching OpenCode do its thing, keep an eye on the right sidebar's "Context" section. You'll see something like this:
Context
147,529 tokens
37% used
$5.56 spent
This tells me that my current session, OpenCode's term for a conversation, has an estimated token (API) cost of $5.56 so far, which is not necessarily what you pay under a subscription due to the subsidy.
Many developers new to AI assume time = money in coding sessions. Not really. OpenCode can spend a lot of time on a task without creating a huge inference bill. You pay for tokens, not time.
For example, these things can take a while without adding much inference cost: