AIGatewayProviderKeys

Create

Create a new AI Gateway Provider Key

post/ai_gateway_provider_keys

Headers

ngrok-versioninteger required

Request body

ai_gateway_api_key_idstring required

unique identifier of the AI Gateway API Key this provider key is attached to

provider_idstring required

which AI provider this key is for, e.g. "openai", "anthropic"

valuestring required

plaintext provider key value — write-only input

descriptionstring

human-readable description of this provider key

metadatastring

arbitrary user-defined metadata for this provider key

Response

Create a new AI Gateway Provider Key

idstring

unique identifier for this provider key

uristring

URI of this AI Gateway Provider Key API resource

created_atstring

Timestamp when the provider key was created (RFC 3339 format)

updated_atstring

Timestamp when the provider key was last updated (RFC 3339 format)

provider_idstring

which AI provider this key is for, e.g. "openai", "anthropic"

descriptionstring

human-readable description of this provider key

metadatastring

arbitrary user-defined metadata for this provider key

display_namestring

redacted display form of the key value, e.g. sk-abc***xyz

last_usedstring

Timestamp when the provider key was last used (RFC 3339 format)

Changes

Changed in 1 of the 9 revisions of this API.1