Skip to main content
PUT
Update Model Gateway credentials

Authorizations

Authorization
string
header
required

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

Body

application/json
apiKey
string

OpenRouter API key used for model requests.

Required string length: 1 - 512
Pattern: .*\S.*
managementKey
string

OpenRouter management API key used only for activity analytics.

Required string length: 1 - 512
Pattern: .*\S.*

Response

Updated masked Model Gateway credential status

apiKey
object
required
managementKey
object
required