Authentication

Create Scoped Jwt

Changed on
post/v1/scoped-jwt

Request

  • Base URL: https://api.deepinfra.com
  • URL: https://api.deepinfra.com/v1/scoped-jwt
  • Auth: HTTP bearer

Headers

xi-api-keystring nullable
x-api-keystring nullable

Request body

api_key_namestring required
modelsstring[] nullable

allow inference only to the specified model names

expires_deltainteger nullable

how many seconds in the future should the token be valid for

expires_atinteger nullable

unix timestamp when the token should expire

spending_limitnumber nullable

only allow spending that much USD until the token becomes invalid

Response

Successful Response

tokenstring required

The newly minted scoped JWT ready for use

Changes