Authentication

Create Api Token

Changed on

Create an API token. The reply carries the secret; no later call returns it.

post/v1/api-tokens

Request

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

Headers

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

Request body

namestring required

Response

Successful Response

created_atinteger required

creation unix timestamp

namestring required
token_idstring required
allowed_ipsstring[] nullable
prefixstring

sk-di-, or empty on a token minted before it

fragmentstring

display suffix; last 5 chars of the secret

tokenstring required

the secret; this reply is the only place it is ever returned

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      response property token_id list-of-types was narrowed by removing types null from media type application/json of response 200