Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex AI Studio
  • About Yandex AI Studio
  • Getting started with Model Gallery
  • Yandex Workflows
  • Switching from the AI Assistant API to Responses API
  • Compatibility with OpenAI
    • Overview
    • API authentication
  • Quotas and limits
  • Pricing policy
  • Access management
  • Audit Trails events
  • Public materials
  • Release notes
  • Terms and definitions
  1. API references
  2. API authentication

Authentication with the Yandex Cloud AI Studio API

Written by
Yandex Cloud
Updated at January 20, 2026

To use the Yandex Cloud AI Studio API, you need to get authenticated:

Yandex account, federated account, or local account
Service account
  1. Get an IAM token for a Yandex account, federated account, or local account.

  2. Get the ID of the folder for which your account has at least the minimum role for the functionality:

    • ai.languageModels.user or higher: For text generation models.
    • ai.imageGeneration.user or higher: For YandexART.
    • ai.assistants.editor and ai.languageModels.user or higher: For Responses API.
    • ai.models.user or higher: For Realtime API.
    • serverless.mcpGateways.editor or higher: To manage MCP servers.

    You will need the folder ID to get the model's URI.

  3. When accessing AI Studio via the API, specify the IAM token in the Authorization header of each request:

    Authorization: Bearer <IAM_token>
    

To access AI Studio, your service account needs at least the minimum required role:

  • ai.languageModels.user or higher: For text generation models.
  • ai.imageGeneration.user or higher: For YandexART.
  • ai.assistants.editor and ai.languageModels.user or higher: For Responses API.
  • ai.models.user or higher: For Realtime API.
  • serverless.mcpGateways.editor or higher: To manage MCP servers. The MCP Hub API supports only IAM token authentication.

The AI Studio APIs support two service account authentication methods:

  • With an IAM token:

    1. Get an IAM token.

    2. Provide the IAM token in the Authorization header in the following format:

      Authorization: Bearer <IAM_token>
      
  • With API keys.

    Use API keys if requesting an IAM token automatically is not an option.

    1. Get an API key.

    2. Provide the API key in the Authorization header in the following format:

      Authorization: Api-Key <API_key>
      

Do not specify the folder ID in your request headers, as the service uses the folder the service account was created in. However, you will need the parent folder ID to get the model's URI.

Was the article helpful?

Previous
Overview
Next
Overview
© 2026 Direct Cursus Technology L.L.C.