Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string
required

The organization's id (UUID) or slug — either form is accepted.

projectId
string
required

The project's id (UUID) or slug — either form is accepted.

Query Parameters

environment
string

Environment slug to scope this operation to. Defaults to "production". An environment that does not exist on the project answers 404. The gateway is created in the addressed environment.

Pattern: ^[a-z][a-z0-9-]{0,38}$

Body

application/json
name
string
required
Pattern: ^[a-z][a-z0-9-]{1,61}$
allowedModels
enum<string>[]
required
Required array length: 1 - 3 elements
Available options:
korve/fast,
korve/balanced,
korve/reasoning
monthlyBudgetUsd
number
required
Required range: 1 <= x <= 100000
timeoutMs
integer
Required range: 1000 <= x <= 120000
maxRetries
integer
Required range: 0 <= x <= 3
redactPrompts
boolean

Response

AI gateway created.

id
string
required
name
string
required
environment
string
required
allowedModels
enum<string>[]
required
Available options:
korve/fast,
korve/balanced,
korve/reasoning
monthlyBudgetUsd
number
required
timeoutMs
integer
required
maxRetries
integer
required
redactPrompts
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required