Skip to main content
POST
Create Scoped Jwt

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null
x-api-key
string | null

Body

application/json
api_key_name
string
required
models
string[] | null

allow inference only to the specified model names

expires_delta
integer | null

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

expires_at
integer | null

unix timestamp when the token should expire

spending_limit
number | null

only allow spending that much USD until the token becomes invalid

Response

Successful Response

token
string
required

The newly minted scoped JWT ready for use