iRaven // Huginn
HuginnAI models for your apps
Lets your app call AI models with no provider's key inside it.
Your users sign in, every call is counted, and you change models without a new version of your app.
What it does
A provider's key inside an app can be copied out of it, and whoever copies it spends your money. Without a count for each user, a few users can make most of your bill. Models also change: providers change prices, retire models on set dates and sometimes fail, and each time your app has to change with them.
Huginn sits between your app and the models. Your app holds no provider's key. Each user signs in, and every call from your app names the user who made it. Before a call runs, iRaven checks it against the ceilings that you set: the most that may be used in a period. Your app asks for a model by a name of your own, so you can change the model behind the name and your app stays as it is.
Features
-
No key in your app
The provider's key never leaves iRaven. Your app holds at most a publishable key, which only says which tenant (your app and your team on iRaven) and which app it belongs to, and does not need to be hidden.
-
Every call from your app names its user
Each user signs in, and every call from your app names the user who made it. The pass that a user gets at sign-in, called a token, does not work when it is copied to another device.
-
A ceiling for every user
Set the most that a user, a group, a key or your whole tenant may use in a day, a week or a month. A hard ceiling refuses the call that would pass it.
-
Names of your own
Give models names such as
voiceorplanning. Your app asks for the name. You choose the model behind it and change it at any time, with no new version of your app. -
Chat and speech
Chat calls use the formats that common libraries already send, so on your server a library needs only iRaven's address and your secret key. Speech calls turn text into a voice and a voice into text.
-
Your server too
Your own server can call with a secret key. It can name the user it acts for, and a call that names no one counts against the key.
-
No chat is stored or logged
iRaven never stores or logs what a user says in a chat or what a model answers there. It keeps only the count and the size of each call.
-
Your own providers
Add the accounts that you hold at providers in the console. iRaven seals each key and shows it to no one. You choose, model by model, that your own account serves it. Every call is still counted for each user and checked against your ceilings.
-
Pictures and video
Coming soonYour app will ask for pictures and video. A video will run as a job that your app collects when the job is done.
-
Several providers at once
Coming soonYou will split the calls of your users or your apps across several providers, and your apps will keep working when one of them fails.
-
The cheapest provider for each model
Coming soonHuginn will show where each model costs least and, if you choose, send your calls there. When a price changes, the provider behind a name will change, and your apps and your users will notice nothing.
How it works
-
Your app asks for a name
You give models names of your own, such as
voiceorplanning. Your app asks for a name, not for a model. Each name points at a model and never at a provider, so you can change the model behind a name without a new version of your app. -
Which calls iRaven accepts
Chat calls use the common formats that existing libraries already send, so on your server a library needs only iRaven's address and your secret key. Other calls, such as speech, must be on a fixed list, and iRaven refuses any call that is not on it. Long work, such as a long piece of speech, runs as a job: your app gets the job's number and fetches the result when the job is done.
-
Where the models come from
iRaven provides models through providers that it sets up, and you can add your own provider accounts. Your users and your apps see the model and its name, never the provider.
-
What iRaven keeps
iRaven keeps the count and the size of each call. It never stores or logs what a user says in a chat or what a model answers there. Files that your app uploads, and the result of a job, are kept only for a set time.
-
A tool that serves it
Sign-in and devices
Each tenant has its own sign-in. Your users sign in with a passkey, a password or a code sent by email. A token is a short-lived pass that names the user. iRaven ties it to a key that the user's device makes. Every call from your app carries a fresh proof signed by the device, so a copied token is of no use on another device.
-
A tool that serves it
Usage and ceilings
A ceiling is the most that may be used in a period. You set ceilings for a user, a group, a key, a name or your whole tenant. The period is a day, a week, a month, or a moving window: a set number of hours or days that moves forward with time. Before a call runs, iRaven sets aside an estimate of its use under every ceiling that applies; when the call ends, iRaven counts the real amount instead. A hard ceiling refuses any call that would go past it.