Replace bring-your-own-key (BYOK) by a one-click solution in your AI application
Stop asking for AI
API keys
We provide every user with a global AI account they can connect to your app with one click. After connection, your app obtains a secure access token to run inference on behalf of the user. 150+ models supported.
Note: we are NOT a key aggregator. Users never have to share any key with us.
![BrainLink flow diagram](/_next/image?url=%2Fdeveloper-diagram.png&w=1920&q=75)
BrainLink connection UX
You can create your own custom button. Click here to play with the live demo.
![Demo GIF](/button-demo.gif)
How to integrate
Show the brainlink connect button
Create a button or link pointing to the brainlink connection page. Or use our embeddable button. When clicked, the user will be prompted to accept the connection.
Obtain the user access token
Once the user accepts the connection it will be redirected back to your application. You can then get the user access token to perform inference calls on behalf of the user.
Use the access token on your inference requests
Use the user access token to make inference requests to the model of your choice on behalf of the user. You can use any AI SDK by configuring the baseUrl (BrainLink is OpenAI compatible) or direct REST API calls.
Why should you use Brainlink?
Most non-technical people don't know how to configure API keys or other credentials. Allow your users to connect their inference account with a single click.
Most AI providers discourage the usage of API keys in the client side, and strictly prohibit the storage of users' API keys on servers. We remove API keys from the equation and follow secure OAuth/PKCE flows.
Most users don't know how to manage API keys properly. We replace them by secure access tokens that follow the high security OAuth/PKCE flows.
Take control of which model to use for each task. No more dependency on provider-supported models. We support most models available out there.
You can combine multiple models without having to configure different inference providers or SDKs. Access all of them with a standard OpenAI compatible API.
Allow the users to top up their inference credits without leaving your app and show them exactly how much they are consuming.
Forget about complex monetization strategies to cover unpredictable inference costs, let each user pay for what they consume by linking their account with one click.
Whether you are building a web application, a mobile application or a desktop application, Brainlink can be used in all of them.
Pricing
$0
totally free for developers