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
        • listChatCompletions
        • createChatCompletion
        • getChatCompletion
        • updateChatCompletion
        • deleteChatCompletion
  • Quotas and limits
  • Pricing policy
  • Access management
  • Audit Trails events
  • Public materials
  • Release notes
  • Terms and definitions

In this article:

  • HTTP request
  • Path parameters
  • Body parameters
  • Response
  • ChoicesItem
  • ChatCompletionResponseMessage
  • AnnotationsItem
  • UrlCitation
  • Audio0
  • Logprobs0
  • ChatCompletionTokenLogprob
  • TopLogprobsItem
  • CompletionUsage
  • CompletionTokensDetails
  • PromptTokensDetails
  1. API references
  2. OpenAI-compatible APIs
  3. Chat
  4. updateChatCompletion

REST: Update chat completion

Written by
Yandex Cloud
Updated at December 30, 2025
  • HTTP request
  • Path parameters
  • Body parameters
  • Response
  • ChoicesItem
  • ChatCompletionResponseMessage
  • AnnotationsItem
  • UrlCitation
  • Audio0
  • Logprobs0
  • ChatCompletionTokenLogprob
  • TopLogprobsItem
  • CompletionUsage
  • CompletionTokensDetails
  • PromptTokensDetails

[CURRENTLY NOT SUPPORTED]

HTTP requestHTTP request

POST https://ai.api.cloud.yandex.net/v1/chat/completions/{completion_id}

Path parametersPath parameters

Field

Description

completion_id

string

Required field. The ID of the chat completion to update.

Body parametersBody parameters

Request schema: application/json

{
  "metadata": "unknown"
}

Field

Description

metadata

Any of object (map<string, string>) | null

ResponseResponse

HTTP Code: 200

A chat completion

Response schema: application/json

{
  "id": "string",
  "choices": [
    {
      "finish_reason": "string",
      "index": "integer",
      "message": {
        "content": "unknown",
        "refusal": "unknown",
        "tool_calls": "object",
        "annotations": [
          {
            "type": "string",
            "url_citation": {
              "end_index": "integer",
              "start_index": "integer",
              "url": "string",
              "title": "string"
            }
          }
        ],
        "role": "string",
        "function_call": "unknown",
        "audio": "unknown"
      },
      "logprobs": "unknown"
    }
  ],
  "created": "integer",
  "model": "string",
  "service_tier": "unknown",
  "system_fingerprint": "string",
  "object": "string",
  "usage": {
    "completion_tokens": "integer",
    "prompt_tokens": "integer",
    "total_tokens": "integer",
    "completion_tokens_details": {
      "accepted_prediction_tokens": "integer",
      "audio_tokens": "integer",
      "reasoning_tokens": "integer",
      "rejected_prediction_tokens": "integer"
    },
    "prompt_tokens_details": {
      "audio_tokens": "integer",
      "cached_tokens": "integer"
    }
  }
}

Represents a chat completion response returned by model, based on the provided input.

Field

Description

id

string

Required field. A unique identifier for the chat completion.

choices[]

ChoicesItem

Required field.

created

integer

Required field. The Unix timestamp (in seconds) of when the chat completion was created.

model

string

Required field. The model used for the chat completion.

service_tier

unknown

[CURRENTLY NOT SUPPORTED]

system_fingerprint

string

This fingerprint represents the backend configuration that the model runs with.

Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

object

enum

Required field. The object type, which is always chat.completion.

  • chat.completion

usage

CompletionUsage

Required field. Usage statistics for the completion request.

ChoicesItemChoicesItem

Field

Description

finish_reason

enum

Required field. The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, tool_calls if the model called a tool, or function_call (deprecated) if the model called a function.

  • stop
  • length
  • tool_calls
  • content_filter
  • function_call

index

integer

Required field. The index of the choice in the list of choices.

message

ChatCompletionResponseMessage

Required field. A chat completion message generated by the model.

logprobs

Any of Logprobs0 | null

ChatCompletionResponseMessageChatCompletionResponseMessage

A chat completion message generated by the model.

Field

Description

content

Any of string | null

refusal

Any of string | null

tool_calls

object

Placeholder schema for ChatCompletionMessageToolCalls.

annotations[]

AnnotationsItem

Required field. A URL citation when using web search.

role

enum

Required field. The role of the author of this message.

  • assistant

function_call

Any of enum | object

audio

Any of Audio0 | null

AnnotationsItemAnnotationsItem

A URL citation when using web search.

Field

Description

type

enum

Required field. The type of the URL citation. Always url_citation.

  • url_citation

url_citation

UrlCitation

Required field. A URL citation when using web search.

UrlCitationUrlCitation

A URL citation when using web search.

Field

Description

end_index

integer

Required field. The index of the last character of the URL citation in the message.

start_index

integer

Required field. The index of the first character of the URL citation in the message.

url

string

Required field. The URL of the web resource.

title

string

Required field. The title of the web resource.

Audio0Audio0

If the audio output modality is requested, this object contains data about the audio response from the model.''

Field

Description

id

string

Required field. Unique identifier for this audio response.

expires_at

integer

Required field. The Unix timestamp (in seconds) for when this audio response will
no longer be accessible on the server for use in multi-turn
conversations.'

data

string

Required field. Base64 encoded audio bytes generated by the model, in the format
specified in the request.'

transcript

string

Required field. Transcript of the audio generated by the model.

Logprobs0Logprobs0

Log probability information for the choice.

Field

Description

content

Any of ChatCompletionTokenLogprob | null

refusal

Any of ChatCompletionTokenLogprob | null

ChatCompletionTokenLogprobChatCompletionTokenLogprob

Field

Description

token

string

Required field. The token.

logprob

number

Required field. The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

bytes

Any of integer | null

top_logprobs[]

TopLogprobsItem

Required field.

TopLogprobsItemTopLogprobsItem

Field

Description

token

string

Required field. The token.

logprob

number

Required field. The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

bytes

Any of integer | null

CompletionUsageCompletionUsage

Usage statistics for the completion request.

Field

Description

completion_tokens

integer

Required field. Number of tokens in the generated completion.

prompt_tokens

integer

Required field. Number of tokens in the prompt.

total_tokens

integer

Required field. Total number of tokens used in the request (prompt + completion).

completion_tokens_details

CompletionTokensDetails

Breakdown of tokens used in a completion.

prompt_tokens_details

PromptTokensDetails

Breakdown of tokens used in the prompt.

CompletionTokensDetailsCompletionTokensDetails

Breakdown of tokens used in a completion.

Field

Description

accepted_prediction_tokens

integer

When using Predicted Outputs, the number of tokens in the
prediction that appeared in the completion.

audio_tokens

integer

Audio input tokens generated by the model.

reasoning_tokens

integer

Tokens generated by the model for reasoning.

rejected_prediction_tokens

integer

When using Predicted Outputs, the number of tokens in the
prediction that did not appear in the completion. However, like
reasoning tokens, these tokens are still counted in the total
completion tokens for purposes of billing, output, and context window
limits.

PromptTokensDetailsPromptTokensDetails

Breakdown of tokens used in the prompt.

Field

Description

audio_tokens

integer

Audio input tokens present in the prompt.

cached_tokens

integer

Cached tokens present in the prompt.

Was the article helpful?

Previous
getChatCompletion
Next
deleteChatCompletion
© 2026 Direct Cursus Technology L.L.C.