iRaven

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

How it works

  1. Your app asks for a name

    You give models names of your own, such as voice or planning. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Open a tenantMuninnOpen the console