How Coding Plan points are counted: input, output and cache tokens

Coding with AICoding Plan·· 17 views· 3 min read

In the Coding Plan, each request to a plan model spends points instead of credits. The count uses the tokens of the request and the value of the model.

The count for each request

Three kinds of tokens count: input tokens (what the tool sends: instructions, files and the chat), output tokens (the model's answer) and cache tokens (input the model reads from the cache). Each one is multiplied by the value of that model. Stronger models spend more points per token.

A request to a model that is not in the plan spends no points: it is paid with credits, as usual.

Why there is no fixed number of requests

The points depend on the model and on the size of each request. Coding agents make many requests in a row, and each one carries the chat context. In the Plan tab, each plan shows an estimate of requests per week. That estimate uses a fast model, with 20,000 input tokens and 1,000 output tokens per request. With a stronger model, or bigger requests, fewer fit.

How to spend fewer points

1 Use a light model for simple tasks and keep the stronger ones for big changes and hard bugs.
2 Add only the files you need to the chat: each request carries fewer input tokens.
3 Start a new chat when you change subject, so the old history does not travel with every request.
4 Check the tool setup with a sandbox_ key, which spends no points.

Seeing how much you spent

The This week and This month bars in the Plan tab show the points used and the points left. You can also use aio balance or GET /v1/ai/balance: checking the points left.

The points of each plan, per week and per month, are in Coding Plan: which plan to choose and on the Plans and credits page of the docs.

Want points every week to code with AI? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

Weekly points in the Coding Plan: they come back every Monday at 00:00 UTC

Which models spend Coding Plan points, and which are paid with credits

Checking the points left: the Plan tab, GET /v1/ai/balance and aio balance

Coding Plan: which plan to choose, what it costs and how to subscribe

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.