Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex AI Studio
  • Compatibility with OpenAI
    • Overview
    • API authentication
        • Overview
          • Overview
          • TextEmbedding
  • Access management
  • Pricing policy
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • HTTP request
  • Body parameters
  • Response
  1. API references
  2. Embeddings API
  3. REST
  4. Embeddings
  5. TextEmbedding

Foundation Models Embedding API, REST: Embeddings.TextEmbedding

Written by
Yandex Cloud
Updated at August 8, 2025
  • HTTP request
  • Body parameters
  • Response

A method for obtaining embeddings from text data.

HTTP requestHTTP request

POST https://llm.api.cloud.yandex.net/foundationModels/v1/textEmbedding

Body parametersBody parameters

{
  "modelUri": "string",
  "text": "string",
  "dim": "string"
}

Request for the service to obtain text embeddings.

Field

Description

modelUri

string

The model URI to be used for obtaining text embeddings.

text

string

The input text for which the embedding is requested.

dim

string (int64)

Optional parameter to specify embedding dimension for models that support multi-dimensional outputs

ResponseResponse

HTTP Code: 200 - OK

{
  "embedding": [
    "string"
  ],
  "numTokens": "string",
  "modelVersion": "string"
}

Response containing generated text embedding.

Field

Description

embedding[]

string

A repeated list of double values representing the embedding.

numTokens

string (int64)

The number of tokens in the input text.

modelVersion

string

The model version changes with each new releases.

Was the article helpful?

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