Quick numbers
At $0.33 per 1M tokens:
| Tokens | Cost |
|---|---|
| 1,000 | $0.00033 |
| 100,000 | $0.033 |
| 1,000,000 | $0.33 |
| 15,151,515 | about $5.00 |
RATE_PER_MILLION = 0.33 # USD, same for input and output
def cost_usd(total_tokens):
return total_tokens / 1_000_000 * RATE_PER_MILLION
print(cost_usd(800_000 + 200_000)) # 0.33Chats add up
If you send the full history each turn, and every turn adds 500 tokens of question and 500 of answer:
| Turn | Input sent | Output | Tokens this turn |
|---|---|---|---|
| 1 | 500 | 500 | 1,000 |
| 2 | 1,500 | 500 | 2,000 |
| 3 | 2,500 | 500 | 3,000 |
| 10 | 9,500 | 500 | 10,000 |
Ten turns total 55,000 tokens, about $0.018, although only 10,000 tokens of new text were written. Trimming or summarizing old turns keeps this down; see Conversation History.
Your balance and actual usage are in the dashboard. See Usage and Billing.
