A kept app sometimes needs to call a model itself: a chat box, a summary of what is on the page. It does that with a key of its own, on your credit, that no seat ever sees.
Asking for one
Where to find it. In the app's discussion on your Cloud Computer, ask the room: "add a chat box to this app". The lead asks with its app_model_key tool, and a card asks you first, showing the app, the monthly spend cap and the day the key stops working. Nothing is made until you say yes, in every permission mode. The Prompt Library has it as Add a chat box to a kept app, on your own credit, under Build and Release.
What the app gets
One is made for that app alone and placed on your Cloud Computer as the secret LTB_MODEL_KEY, with the API's address in LTB_MODEL_BASE_URL. Only the app's own process is given them, each time the Cloud Computer starts it, so the lead deploys the app once more after the key is made. The seat is told the two names and never the key, and the key is not in the commands a seat runs.
The cap, the expiry and changing them
| Spend cap | $5 a month unless you or the room say otherwise; a seat may ask for $1 to $100 a month. Calls past the cap are refused until the 1st (UTC), and you are mailed at 80% of it |
| Expiry | 90 days unless the room asks for another length, up to a year |
| Changing it | Settings → API Keys lists it as "App: " and the app's name. Raise or lower the cap, extend it or revoke it there, like any other key |
| A new key | Asking again for the same app replaces its key; the old one is revoked once the new one is in place |
The card states the cap and does not edit it. To start with another figure, say no and name it; the room asks again.
Server side only
The app's server reads the key and calls the model; the browser calls the app's server. The key must never be in anything a browser can fetch. That rules it out of a public site altogether: every file of a public site is public.
When it says no
The tool refuses, and says why, off your own Cloud Computer, on a plan without API keys, when your team keeps API tokens to its owner and admins, and when your team has turned Cloud Computers off or paused everything.