AI Gateway lets your app call AI models from the server without you creating or pasting a provider key. Usage is charged to your workspace credits.
What you can ask for#
Add a support assistant that answers questions from the signed-in user's saved articles. Stream the reply.
Summarise each new blog comment in one sentence and store the summary next to the comment.
Add a button that rewrites a product description in a friendlier tone.
Connect AI Gateway#
There is nothing to connect. AI Gateway is built in and always on, so it does not appear as a connection you add or remove.
What the AI can and can't do#
- Build AI features that run in a server function, such as chat, summaries, classification and rewriting.
- Stream replies to the page as they are written.
- Charge usage to your workspace credits, with no separate provider account.
- It cannot be removed or disconnected. It is part of every project.
- The gateway key must stay on the server. If you ask for it in browser code, the AI should refuse or move the call to a server function.
Troubleshooting#
The feature says there are not enough credits.
Add credits or ask the AI for a lighter version of the feature, then try again. Calls stop when your balance runs out.
Where do I see what it used?
Open Tools, then Settings, then Usage to see credit use for the project.
Do I need an API key?
No. The key is managed for you and added to your project as a server secret.
General steps for any connector are in Connect an integration. To remove it, see Disconnect an integration.
What Swarmz can do with it
Managed key
A per-project key is provisioned for you and saved as a managed project secret.
Many models, one endpoint
One endpoint, many models, OpenAI-compatible.
Credit-metered
Usage is deducted from your workspace credit balance.
More in AI & models
Still stuck?
A person from Swarmz Support can take a look.