How to create an API key for accessing Yandex Cloud AI Studio
Yandex Cloud AI Studio is part of Yandex Cloud and uses its authentication and authorization mechanism. You can send API requests to AI Studio, Yandex Translate, Yandex Vision OCR, or SpeechKit models under your user account by authenticating with an IAM token. This is the most secure way to do a quick trial as the IAM token lifetime is limited to 12 hours.
We recommend accessing the API as a service account with an API key.
To create an API key:
- In the AI Studio interface, click Create API key in the top-right corner.
- Optionally, change the description of the API key so you can easily find the key later.
- Select the API key expiration date.
- Click Create.
- Save the ID and secret key.
Alert
Do not share your API key with anyone. After you close this dialog, the key value will no longer be available.
This will automatically create a service account holding the minimum required roles and an associated API key with the required scope for accessing all components and services across AI Studio.
What roles a service account gets
Once created, such a service account holds the following roles:
|
Role |
Description |
|
|
Access to Yandex Translate, Yandex Vision OCR, Yandex SpeechKit, and Yandex Cloud AI Studio |
|
|
Access to MCP servers, including via MCP Hub |
|
|
Access to external MCP servers |
|
|
Access to Yandex Workflows workflow execution |
|
|
Access to Yandex Search API via API v2 |
What scope the API key gets
Once created, such an API key has the following scopes:
|
Scope |
Description |
|
|
Access to image generation |
|
|
Access to text generation by Model Gallery models |
|
|
Access to speech recognition |
|
|
Access to speech synthesis |
|
|
Access to text translation |
|
|
Access to image analysis |
|
|
Access to Yandex Search API |
|
|
Access to container invocation |
|
|
Access to function calling |
You can now send requests to all service APIs across AI Studio using the created API key.