---
title: "TextToImagePipeline"
sidebar_label: "TextToImagePipeline"
description: "Kotlin binding reference: TextToImagePipeline."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[TextToImagePipeline](index.md)

# TextToImagePipeline

[common]\
class [TextToImagePipeline](index.md) : [Pipeline](../Pipeline/index.md)

Image generation over an [ImageGenerationModel](../ImageGenerationModel/index.md): a prompt answers its pictures and the seed they were drawn from (`text-to-image`).

## Properties

| Name | Summary |
|---|---|
| [model](model.md) | [common]<br>open override val [model](model.md): [ImageGenerationModel](../ImageGenerationModel/index.md)<br>The loaded model the pipeline runs. |
| [task](../Pipeline/task.md) | [common]<br>val [task](../Pipeline/task.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The task the pipeline serves, in transformers' spelling. |

## Functions

| Name | Summary |
|---|---|
| [close](../Pipeline/close.md) | [common]<br>open fun [close](../Pipeline/close.md)(): &lt;Error class: unknown class&gt; |
| [invoke](invoke.md) | [common]<br>operator fun [invoke](invoke.md)(prompt: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [ImageGenerationOptions](../ImageGenerationOptions/index.md) = ImageGenerationOptions()): [GeneratedImages](../GeneratedImages/index.md) |