v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Everywhere Inference

Create inference API key

This endpoint creates a new API key for everywhere inference. It returs api key's actual secret only once after creation.

post/cloud/v3/inference/{project_id}/api_keys

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

Request body

descriptionstring

Description of the API Key.

expires_atstring

Expiration date of the API Key in ISO 8601 format.

namestring required

Name of the API Key.

Example request

{
  "description": "This key is used for accessing the inference service.",
  "expires_at": "2024-10-01T12:00:00Z",
  "name": "my-api-key"
}

Response

OK

created_atstring required

Timestamp when the API Key was created.

deployment_namesstring[] required

List of inference deployment names to which this API Key has been attached.

descriptionstring nullable required

Description of the API Key.

expires_atstring nullable required

Timestamp when the API Key will expire.

namestring required

API Key name.

secretstring required

The actual API Key secret.

Example response

{
  "created_at": "2023-10-01T12:00:00Z",
  "deployment_names": [
    "inference-1",
    "inference-2"
  ],
  "description": "This key is used for accessing the inference service.",
  "expires_at": "2024-10-01T12:00:00Z",
  "name": "my-api-key",
  "secret": "qLyjWDarjtT1zdp7dc"
}