Yandex Cloud
Поиск
Связаться с намиПопробовать бесплатно
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
  • Marketplace
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Истории успеха
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex AI Studio
  • О сервисе Yandex AI Studio
  • Начало работы с Model Gallery
  • Yandex Workflows
  • Переход с AI Assistant API на Responses API
  • Совместимость с OpenAI
    • О Yandex AI Studio SDK
      • Overview
      • Authentication
      • Request retries
  • Квоты и лимиты
  • Правила тарификации
  • Управление доступом
  • Аудитные логи Audit Trails
  • Публичные материалы
  • История изменений
  • Термины и определения

В этой статье:

  • Authentication methods classes
  • class yandex_ai_studio_sdk.auth.APIKeyAuth
  • class yandex_ai_studio_sdk.auth.EnvIAMTokenAuth
  • class yandex_ai_studio_sdk.auth.IAMTokenAuth
  • class yandex_ai_studio_sdk.auth.MetadataAuth
  • class yandex_ai_studio_sdk.auth.NoAuth
  • class yandex_ai_studio_sdk.auth.OAuthTokenAuth
  • class yandex_ai_studio_sdk.auth.YandexCloudCLIAuth
  1. Yandex AI Studio SDK
  2. Справочник SDK (англ.)
  3. Authentication

Authentication

Статья создана
Yandex Cloud
Обновлена 28 января 2026 г.
  • Authentication methods classes
    • class yandex_ai_studio_sdk.auth.APIKeyAuth
    • class yandex_ai_studio_sdk.auth.EnvIAMTokenAuth
    • class yandex_ai_studio_sdk.auth.IAMTokenAuth
    • class yandex_ai_studio_sdk.auth.MetadataAuth
    • class yandex_ai_studio_sdk.auth.NoAuth
    • class yandex_ai_studio_sdk.auth.OAuthTokenAuth
    • class yandex_ai_studio_sdk.auth.YandexCloudCLIAuth

Here must be algorithm about how auto-authorization works

And here – how SDK will work if you pass a string to SDK auth param

Authentication methods classesAuthentication methods classes

class yandexaistudiosdk.auth.APIKeyAuthclass yandex_ai_studio_sdk.auth.APIKeyAuth

Authentication method using an API key.

Read more about the API key in the IAM documentation.

class yandexaistudiosdk.auth.EnvIAMTokenAuthclass yandex_ai_studio_sdk.auth.EnvIAMTokenAuth

Auth method, which takes IAM token from environment variable for every request.

It is assumed that the token will be refreshed in the environment before it expires.

However, by default, the YC_TOKEN environment variable is used when auto-selecting the auth method, in order to be compatible with a Yandex DataSphere environment. Therefore, it is not recommended to use this environment variable when setting up a personal work environment.

class yandexaistudiosdk.auth.IAMTokenAuthclass yandex_ai_studio_sdk.auth.IAMTokenAuth

Authentication method using an IAM token.

Read more about the IAM token in the AIM documentation.

class yandexaistudiosdk.auth.MetadataAuthclass yandex_ai_studio_sdk.auth.MetadataAuth

Authentication class for retrieving IAM tokens from metadata service.

This class retrieves IAM tokens from the Google Cloud metadata service. Read more in the VM metadata documentation.

class yandexaistudiosdk.auth.NoAuthclass yandex_ai_studio_sdk.auth.NoAuth

class yandexaistudiosdk.auth.OAuthTokenAuthclass yandex_ai_studio_sdk.auth.OAuthTokenAuth

Auth method that uses an OAuth token for authentication.

This class extends the RefresheableIAMTokenAuth to provide functionality for managing and using an OAuth token for authentication purposes.

Read more about the OAuth token in the corresponding documentation.

class yandexaistudiosdk.auth.YandexCloudCLIAuthclass yandex_ai_studio_sdk.auth.YandexCloudCLIAuth

Authentication class for Yandex Cloud CLI using IAM tokens.

It handles the initialization and retrieval of IAM tokens via the Yandex Cloud CLI that should be installed and configured.

Yandex Cloud CLI is a downloadable software for managing cloud resources via the command line. Read more in the CLI documentation.

Была ли статья полезна?

Предыдущая
SpheechKit domain
Следующая
Overview
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»