AI API gateway · Quickstart
Connect your first AI model.
An AI API gateway lets your app reach models from several providers through one service. With instack, you can use the web workspace or connect a supported client with your own API key.
Choose a model
Browse the catalog by provider. Copy the exact model ID you intend to use, then check that your key has access to it.
Browse modelsCreate your API key
Sign in and open API keys. Create a key for your app and copy it into your local configuration. Keep the key out of shared code and messages.
Open API keysConnect your client
Choose your AI in the setup guide. Copy the base URL for that client, enter your key and select the model. Send a short message and check its reply and usage record.
Open setup tutorials
Check the connection
With your key stored in INSTACK_API_KEY, run this command in a terminal to list models available through the gateway. Copy an ID from the response when configuring an OpenAI-compatible client.
macOS / Linux · Bash / Zsh
curl https://api.instackapi.com/v1/models \
-H "Authorization: Bearer $INSTACK_API_KEY"
Windows · PowerShell
Invoke-RestMethod -Uri "https://api.instackapi.com/v1/models" -Headers @{
Authorization = "Bearer $env:INSTACK_API_KEY"
}If you see 401, check that the key is active and was copied in full. If a model is missing, check the permissions on that key.