YandexART models
Yandex Foundation Models provides access to the YandexART model that generates images based on a text prompt using the cascaded diffusion method to iteratively refine images from noise.
Target | URI | Operating modes |
---|---|---|
Generating an image based on a text description | art://<folder_ID>/yandex-art/latest |
Asynchronous |
Accessing a model
You can access image generation models of in a number of ways.
When operating an image generation model via Yandex Cloud ML SDK, use one of the following formats:
-
Model name, provided as a string.
model = ( sdk.models.image_generation("yandex-art") )
-
Model name and version, provided as strings in the
model_name
andmodel_version
fields, respectively.model = ( sdk.models.image_generation(model_name="yandex-art", model_version="latest") )
-
Model URI, provided as a string containing the full URI of the model.
model = ( sdk.models.image_generation("art://b1gt6g8ht345********/yandex-art/latest") )
To access a model via the REST API or gRPC API, specify the model's URI containing the folder ID in the modelUri
field of the request body. The /latest
segment indicates the model version and is optional.
Example:
{
"modelUri": "art://b1gt6g8ht345********/yandex-art/latest"
...
}
To access the Latest
version, you do not need to specify the model version explicitly because Latest
is used by default.