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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Serverless Integrations
    • Overview
      • Workflow
      • Starting workflow
        • Overview
          • HTTPCall
          • GRPCCall
          • YMQ
          • YDS
          • YDBDocument
          • FunctionCall
          • ContainerCall
          • FoundationModelsCall
          • ObjectStorage
          • Tracker
          • Postbox
          • Workflow
          • Disk
          • AIAgent
      • Templating
    • Quotas and limits
  • Pricing policy
  • Terraform reference
  • Release notes

In this article:

  • FoundationModelsCallGenerate object
  • FoundationModelsCallGenerateMessage object
  1. Concepts
  2. Workflows
  3. YaWL specification
  4. Integration steps
  5. FoundationModelsCall

FoundationModelsCall

Written by
Yandex Cloud
Updated at March 27, 2025
  • FoundationModelsCallGenerate object
  • FoundationModelsCallGenerateMessage object

Integration with Yandex Foundation Models. Currently, the only supported integration is the one with YandexGPT API for text generation.

Field name Type Required Default value Templating is supported Description
modelUrl string Yes No No ID of the model to call.
generate FoundationModelsCallGenerate Yes No No Configuring the generate action to generate a text.

FoundationModelsCallGenerate objectFoundationModelsCallGenerate object

The json and messages are mutually exclusive: you can either specify a JSON string or explicitly list the messages.

Field name Type Required Default value Templating is supported Description
temperature double No 0 No With a higher temperature, you get a more creative and randomized response from the model. This parameter accepts values between 0 and 1, inclusive.
maxTokens int64 Yes No No Maximum number of tokens to generate. Allows limiting the model's response if needed.
json string No "" Yes Context for the model, as a JSON string. For more information, see the messages field description in the Foundation Models documentation.
messages FoundationModelsCallGenerateMessage[] No "" No Context for the model, as a list of input messages.

FoundationModelsCallGenerateMessage objectFoundationModelsCallGenerateMessage object

Field name Type Required Default value Templating is supported Description
role string Yes No Yes Message sender ID. For more information, see TextGeneration.completion.
text string Yes No Yes Message text. For more information, see TextGeneration.completion.

Was the article helpful?

Previous
ContainerCall
Next
ObjectStorage
Yandex project
© 2025 Yandex.Cloud LLC