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
        • Overview
        • createEmbedding
  • Quotas and limits
  • Pricing policy
  • Access management
  • Audit Trails events
  • Public materials
  • Release notes
  • Terms and definitions

In this article:

  • HTTP request
  • Body parameters
  • Response
  • Embedding
  • Usage
  1. API references
  2. OpenAI-compatible APIs
  3. Embeddings
  4. createEmbedding

REST: Create embeddings

Written by
Yandex Cloud
Updated at December 30, 2025
  • HTTP request
  • Body parameters
  • Response
  • Embedding
  • Usage

Creates an embedding vector representing the input text.

HTTP requestHTTP request

POST https://ai.api.cloud.yandex.net/v1/embeddings

Body parametersBody parameters

Request schema: application/json

{
  "input": "unknown",
  "model": "unknown",
  "encoding_format": "string",
  "dimensions": "integer",
  "user": "string"
}

Field

Description

input

Any of string | string

model

unknown

Required field. ID of the model to use. You can use the List models API to see all of your available models. of them.

encoding_format

enum

Required field. The format to return the embeddings in. "base64" currently not supported, "float" required.

  • float
  • base64 [NOT SUPPORTED]

dimensions

integer

NOT SUPPORTED BY ALL MODELS. The number of dimensions the resulting output embeddings should have.

user

string

[CURRENTLY NOT SUPPORTED]

ResponseResponse

HTTP Code: 200

OK

Response schema: application/json

{
  "data": [
    {
      "index": "integer",
      "embedding": [
        "number"
      ],
      "object": "string"
    }
  ],
  "model": "string",
  "object": "string",
  "usage": {
    "prompt_tokens": "integer",
    "total_tokens": "integer"
  }
}

Field

Description

data[]

Embedding

Required field. Represents an embedding vector returned by embedding endpoint.

model

string

Required field. The name of the model used to generate the embedding.

object

enum

Required field. The object type, which is always "list".

  • list

usage

Usage

Required field. The usage information for the request.

EmbeddingEmbedding

Represents an embedding vector returned by embedding endpoint.

Field

Description

index

integer

Required field. The index of the embedding in the list of embeddings.

embedding[]

number (float)

Required field.

object

enum

Required field. The object type, which is always "embedding".

  • embedding

UsageUsage

The usage information for the request.

Field

Description

prompt_tokens

integer

Required field. The number of tokens used by the prompt.

total_tokens

integer

Required field. The total number of tokens used by the request.

Was the article helpful?

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