← Questions

Running cost of streamed token usage

0
AnthropicCodingLast asked Jul 2026

A coding interview question asked in Anthropic's coding round, last asked Jul 2026. It tests streaming, billing and arrays.

A model API bills input and output tokens at different prices per model. Usage reaches the billing code as a stream of records.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Anthropic · Coding · Last asked Jul 202655 min · Live coding on a realistic, multi-part problem, a different one from the screen · No AI

What it tests

streaming · billing · arrays

Your code and the AI tutor open when you unlock this question.