Inference API

Other

View as Markdown

API key

/v1/api-key

Get information about an API key, including name, status, permissions and users who created or modified this key.

Response Body

acls

array

A list of ACLs authorized with the API key, e.g. "api-key:endpoint:*", "api-key:model:*".

api_key_blocked

boolean

Indicates whether the API key is blocked.

api_key_disabled

boolean

Indicates whether the API key is disabled.

api_key_id

string

ID of the API key.

create_time

string

Creation time of the API key in Unix timestamp.

modified_by

string

User ID of the user who last modified the API key.

modify_time

string

Last modification time of the API key in Unix timestamp.

name

string

The name of the API key specified by user.

redacted_api_key

string

The redacted API key.

team_blocked

boolean

Indicates whether the team that owns the API key.

team_id

string

The team ID of the team that owns the API key.

user_id

string

User ID the API key belongs to.


Tokenize text

/v1/tokenize-text

Tokenize text with the specified model

Request Body

Response Body

token_ids

array

A list of tokens.


Did you find this page helpful?