For app publishers

AI

Give the app an AI model, on whose key, and its budget.

What this is

This page gives your app an AI model, a program that answers questions in writing. The technical name is an LLM, a large language model. cyantula makes every call for your app, so the app never holds the provider's key. cyantula also counts what every call uses and costs.

You decide whose account pays: the company's, or each person's own. You also pick the model and see what the app has spent.

Where to find it

  1. Open the Apps page and click your app.
  2. Click the card Integrations, then AI.

AI is an Advanced theme. Switch to Advanced at the top of the app page. You can also open it from the link on All integrations. The Simple view only has the switch and the Try a prompt button there.

What you see

Let this app call an LLM. The main block:

  • This app calls an LLM: the on/off switch.
  • Who pays for this app's model calls, once AI is on: cyantula's key (the company account pays, counted against the daily budget) or Each user's own key (nothing is charged to the company). With the second choice, a box Hand the key to the app appears.
  • Default model: a list starting with Platform default, then the models you can pick, with their price per million tokens. A token is a small piece of text, roughly three quarters of a word. It is how AI use is measured. Your app can still ask for another model per call.
  • Daily token budget: how many tokens the app may use per rolling 24 hours.
  • Once AI is on: App token, with Show, Copy and Regenerate, and Try a prompt.

What this app is spending. Under it, Last 24 hours, This month and Per call, with tokens, cost and number of calls. When the app runs on each user's own key, the title is What this app is using — on your colleagues' own keys and none of it is billed to the company.

Recent calls. A table with When, Model, What for, Tokens, Cost and Status. cyantula records what each call cost, never what was said. Prompts and answers are not stored.

How to switch AI on

  1. Tick This app calls an LLM.
  2. A green message says AI is on. Click Deploy to hand the credentials to your app.
  3. Deploy the app. See Deploys & logs.

How to choose the model

  1. Pick a model in Default model. Leave Platform default to follow what your administrator chose.
  2. Click Save.
  3. A message says Model saved — deploy to apply it. Deploy the app.

How to try a prompt

  1. Switch AI on. Try a prompt only shows once it is on.
  2. Type a question, or leave the box empty for a short greeting.
  3. Click Send. A message says The model answered. and the answer appears below, with the model, the tokens used and the cost.

How to make each person use their own key

Use this so the company pays nothing.

  1. Under Who pays for this app's model calls, choose Each user's own key.
  2. A message says On each user's own key. Colleagues who have not connected a key are asked to before the app opens. They do it in their Profile.
  3. If your own key is missing, a warning says so. Add one in your Profile. The app will not open for you until you do.

To go back, choose cyantula's key. A message says Back on cyantula's key.

Hand the key to the app. Tick this only if your app needs to talk to the provider directly. cyantula then passes each visitor's key to the app on every request. The connect screen tells visitors so before they paste a key. It takes effect at once. Leave it unticked if you are unsure.

How to set the daily budget

  1. Type a number in Daily token budget. Leave it empty to follow the platform limit. Type 0 for no limit.
  2. Click Save. A message says Budget saved.

Only an administrator, or a person with a role that allows it, can change the budget. For everyone else the box is greyed out. The budget does not apply while the app runs on each user's own key.

How to replace the app token

See Email. It is the same token. The window asks Replace the token? and warns that the running app can no longer call the model until you deploy again.

When something looks wrong

  • The provider this app's model (...) runs on is not set up on this cyantula server yet, so calls come back with a canned answer instead of reaching a model. Ask an administrator to add the provider, or switch the app to each user's own key.
  • You haven't connected your own key for ... yet, so this app won't open for you either. Add a key in your Profile.
  • Nothing called yet. The app has not used the model, or AI is not deployed yet.
  • A blocked status in Recent calls: the call was refused. The reason is written under What for. If it is the daily budget, raise it if you may, or ask an administrator.
  • A red message after you click a button: the change was not saved. Try again. If it keeps failing, ask an administrator.

Good to know

  • Switching AI on or off, and changing the model, only reach the running app after a deploy. Handing the key to the app takes effect at once.
  • Each call is capped at a number of output tokens, written under Per call.
  • Models cyantula does not know a price for are counted in tokens only, and show no cost.
  • On each user's own key, a colleague with a Claude subscription spends their plan allowance. A colleague with an API key is charged in their own account.