AI plans and prices
The operator pays for the server AI, so the operator grants it: every project spends its plan's credits.
On this page
A plan is a name, monthly credits and daily credits: -1 unlimited, 0 no server AI. With no plan and no default plan a project has no server AI. The price table says per model how many credits 1M input and 1M output tokens cost; the server makes no call with a model that has no price.
$ tkt operator plan new team --monthly 50000 --daily 5000 --server https://tkt.ideathon.me
Details5 items
tkt operator price set <model> --input N --output N(credits per 1M tokens; an embedding model has output 0),tkt operator price list. The model name is the one the server calls (AITODO_SERVER_LLM_MODEL,AITODO_SERVER_EMBED_MODEL). No price: 503ERR_LLM_NOT_CONFIGURED, and the error names the command.tkt operator plan new|set|list|delete,tkt operator plan default <name>: the default plan applies to every project without a plan of its own, existing ones included.tkt operator project-plan <id> <plan>or--default. A changed plan applies from the next call; a plan in use cannot be deleted:ERR_PLAN_IN_USE(409).- One budget covers every server AI call of the project (LLM and embedding). A call reserves its worst case in credits before it starts and books its real cost. The monthly budget resets on the 1st, the daily one at 00:00 UTC; a call needs room in both.
0or a used-up budget: 429ERR_LLM_QUOTA, with a plain message. - Users see the plan's name, the share used in percent and the reset (
tkt project llm usage,tkt ai doctor, thetkt uiask panel), never tokens.tkt operator projectsshows each project's plan and AI use (calls, credits this month). - The project admin's own caps are switched off for now:
ERR_FEATURE_POSTPONED(501).
Commands on this page#
tkt operator plan newCreate a plan: a name, monthly credits and daily credits (-1 unlimited, 0 no server AI)→
tkt operator plan setChange a plan's monthly or daily credits; every project on it spends by them from its next call→
tkt operator plan listEvery plan: its monthly and daily credits, whether it is the default, and how many projects are on it→
tkt operator plan deleteDelete a plan that no project and not the default uses (ERR_PLAN_IN_USE otherwise)→
tkt operator plan defaultMake a plan the default: every project without a plan of its own spends by it, existing projects included→
tkt operator project-planPut a project on a plan, or back on the default plan with --default; it spends by that plan from its next call→
tkt operator price setSet a model's price: credits per 1M input tokens and per 1M output tokens (an embedding model: input only, output 0)→
tkt operator price listEvery model's price, in credits per 1M input and output tokens→