Skip to main content
OpenAI-compatible model routing with provider-neutral models, tenant budgets, retries, redacted audit events, and unified usage.

aiGateways.list

List AI gateways in one project environment.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Query parameters

Example

Responses

Response body (200)

An array of objects with these fields:

aiGateways.create

Create a budgeted AI gateway in one project environment.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: write

Query parameters

Request body

Example

Responses

Response body (201)

aiGateways.get

Get AI gateway configuration.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

aiGateways.update

Update model allowlists, budget, timeout, retry, and prompt-retention policy.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: write

Request body

Example

Responses

Response body (200)

aiGateways.delete

Permanently delete an AI gateway and revoke every gateway key.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: owner
  • Risk: destructive · sensitive (elevated blast radius)

Example

Responses

Response body (200)

aiGateways.models

List provider-neutral models available through this gateway.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

One of: korve/fast, korve/balanced, korve/reasoning.

aiGateways.listKeys

List gateway key metadata. Secret values are never returned.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Risk: read · sensitive (elevated blast radius)

Example

Responses

Response body (200)

An array of objects with these fields:

aiGateways.createKey

Create a least-privilege gateway key. The secret is returned exactly once.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: write · sensitive (elevated blast radius)

Request body

Example

Responses

Response body (201)

aiGateways.revokeKey

Permanently revoke a gateway key.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Risk: destructive · sensitive (elevated blast radius)

Example

Responses

Response body (200)

aiGateways.usage

Get token and spend usage for the current billing month.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

aiGateways.runtimeChatCompletions

Run an OpenAI-compatible chat completion using an injected runtime capability or a gateway-scoped key.
  • Auth: Project app-service token (Authorization: Bearer $APP_SERVICE_TOKEN).
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: write

Request body

Example

Responses

Response body (200)