Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex SpeechKit
  • SpeechKit technology overview
    • About the Python SDK
    • Installing the Python SDK
    • Resolving version conflicts during the installation of Python SDK
    • Authentication in the Python SDK
    • Synchronous recognition using the Python SDK
    • Speech synthesis using the Python SDK
  • Supported audio formats
  • IVR integration
  • Quotas and limits
  • Access management
  • Pricing policy

In this article:

  • Authentication with an API key
  • Authentication with an IAM token
  1. SDK
  2. Authentication in the Python SDK

Authentication in the Python SDK SpeechKit

Written by
Yandex Cloud
Updated at March 28, 2025
  • Authentication with an API key
  • Authentication with an IAM token

SpeechKit supports authentication with an API key and IAM token. To get authenticated, use one of the snippets below.

Authentication with an API keyAuthentication with an API key

from speechkit import configure_credentials, creds

configure_credentials(
    yandex_credentials=creds.YandexCredentials(
        api_key='<API_key>'
    )
)

Where api_key is the API key for the service account. You can learn how to create a key here.

Authentication with an IAM tokenAuthentication with an IAM token

from speechkit import configure_credentials, creds

configure_credentials(
    yandex_credentials=creds.YandexCredentials(
        iam_token='<IAM_token>'
    )
)

Where iam_token is the IAM token for the service account. You can learn how to create a token here.

Was the article helpful?

Previous
Resolving version conflicts during the installation of Python SDK
Next
Synchronous recognition using the Python SDK
© 2025 Direct Cursus Technology L.L.C.