---
title: "Set AI Gateway settings"
method: PUT
path: "/v1/org/ai-gateway-settings"
tags: ["Inference Providers"]
---

# Set AI Gateway settings

`PUT /v1/org/ai-gateway-settings`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/ai-gateway-settings`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Turns member AI Gateway API keys on or off for the organization. Turning it off stops every member key at the Gateway at once; the keys are kept and work again when it is turned back on. Requires Edit organization settings.

## Request body

- OrganizationAiGatewaySettingsInput
  - `memberApiKeys` boolean

## Response `200`

AI Gateway settings saved.

- OrganizationAiGatewaySettings
  - `settings` object, required
    - `memberApiKeys` boolean, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication required.
- `403`: The caller cannot edit organization settings.
- `404`: The organization was not found.

## Changes

- **2026-11-10** `02023e0242a2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/ai-gateway-settings/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
