Set the project's own spending limits and route names
put/models/v1/settings
Set the project's own spending limits and route names. A limit is at or below what the project may spend already; null removes it. A route name of the project's own stands on a route the project is given (as), with its own vector size or answer length. Only a signed-in person who manages the project can call this; a key reads the settings.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
models:write- Graphql
Mutation.modelsSettingsSet- Sdk
models.settings.set- Cli
models settings set
Request bodyapplication/json, required
- routesobject or null
- dailyUsdnumber or null
- monthlyUsdnumber or null
- dataPolicyobject or null
Responses
- 200application/jsonSuccess
- objectmodel_settingsrequired
- dailyUsdnumber or nullrequired
- monthlyUsdnumber or nullrequired
- routesobjectrequired
- choiceslist of objectrequired
- idstringrequired
- kindstringrequiredOne of: chat, embedding, speech.
- dataPolicyobject or nullrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring