Overview
The Unbound Security AI Gateway provides a RESTful API that allows you to integrate AI capabilities into your applications while maintaining enterprise-grade security, cost control, and compliance. The API is compatible with OpenAI’s Chat Completions API format, making it easy to migrate existing integrations.Base URL
All API requests should be made to:Authentication
The Unbound API uses Bearer token authentication. Include your API key in the Authorization header:Get your API key at gateway.getunbound.ai/connect.
Chat Completions
Create a completion for the provided chat messages.Endpoint
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token with your API key |
Content-Type | string | Yes | Must be application/json |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The model to use for completion |
messages | array | Yes | Array of message objects |
max_tokens | integer | No | Maximum tokens to generate (default: 1000) |
temperature | number | No | Sampling temperature (0.0 to 2.0, default: 1.0) |
stream | boolean | No | Whether to stream the response (default: false) |
Message Object
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | Yes | Role of the message sender (user, assistant, system) |
content | string | Yes | Content of the message |

