Update AI Gateway configuration
Update the AI Gateway configuration for the authenticated account. Omitted fields preserve their existing stored value.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Total timeout duration for a request through the AI Gateway (Go duration string, e.g. 30s, 1m).
Per-request timeout duration for individual upstream requests (Go duration string, e.g. 30s, 1m).
Maximum number of input tokens allowed per request.
PATCH: omit to preserve, send null to clear the cap (no
limit), or send a number to set it. Accounts that have not
written a value read back the per-account default; once
cleared with null, GET returns null until a new value is
written.
Maximum number of output tokens allowed per request.
PATCH: omit to preserve, send null to clear the cap (no
limit), or send a number to set it. Accounts that have not
written a value read back the per-account default; once
cleared with null, GET returns null until a new value is
written.
Arbitrary user-defined metadata for the AI Gateway configuration.
PATCH: omit to preserve, send null to clear, or send a string
to set it. GET returns null when no value is stored.
4096Response
The updated AI Gateway configuration.
Unique identifier of the account this configuration belongs to.
URI of this AI Gateway Configuration API resource.
Total timeout duration for a request through the AI Gateway (Go duration string, e.g. 30s, 1m).
Per-request timeout duration for individual upstream requests (Go duration string, e.g. 30s, 1m).
Maximum number of input tokens allowed per request.
PATCH: omit to preserve, send null to clear the cap (no
limit), or send a number to set it. Accounts that have not
written a value read back the per-account default; once
cleared with null, GET returns null until a new value is
written.
Maximum number of output tokens allowed per request.
PATCH: omit to preserve, send null to clear the cap (no
limit), or send a number to set it. Accounts that have not
written a value read back the per-account default; once
cleared with null, GET returns null until a new value is
written.
Arbitrary user-defined metadata for the AI Gateway configuration.
PATCH: omit to preserve, send null to clear, or send a string
to set it. GET returns null when no value is stored.
4096