data/usage_log.csv is a real file in your working directory: one row per API call, with the model name, token counts, and whether the call succeeded.
It is not clean. One request was logged twice, one model name has inconsistent casing, one failed call still has token counts recorded, and one row is missing its token counts entirely.
A pricing table is provided as PRICING: a dict of {model: {"prompt": $ per 1K prompt tokens, "completion": $ per 1K completion tokens}}.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in