Learning on Web Dev Open is free for all.

AI-Native Products > The API is the constraintA cost model on one page
Phase 08The API is the constraint386 of 434

A cost model on one page

Tokens in, tokens out, calls per user action, and the three numbers that change when it goes well rather than badly.

Build40 minAI pair

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Instrument real token counts per request
  • Model cost per user action and per active user per month
  • Identify which usage pattern breaks the model first
Ask the community

Loading…