3/16
Part 1 of 6 · Price a requestLearn and do
A small model, priced the same way
Anthropic lists Claude Haiku 5.5, its small model, at $0.10 per million input tokens and $0.50 per million output tokens, for prompts up to 100,000 tokens.
for name, price in (("Sonnet 5.5", SONNET), ("Haiku 5.5", HAIKU)):
print(f"{name}: ${request_cost(price, 1860, 250) * 3_600_000:,.0f} a month")
Haiku's prices are a twentieth of Sonnet's for both input and output. What's the monthly bill on Haiku?
Pick one to see what it prints.
Pick an answer above to see the rest