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

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

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

# generate

[common]\
fun [generate](generate.md)(prompt: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [VideoGenerationOptions](../VideoGenerationOptions/index.md) = VideoGenerationOptions(), listener: [VideoGenerationListener](../VideoGenerationListener/index.md)): [VideoGenerationHandle](../VideoGenerationHandle/index.md)

Generate a clip for [prompt](generate.md) under [options](generate.md). Returns at once; the worker runs the request and calls [listener](generate.md) on its thread: [VideoGenerationListener.onVideo](../VideoGenerationListener/onVideo.md) with the clip and the seed the model drew, then [VideoGenerationListener.onDone](../VideoGenerationListener/onDone.md) with the [VideoGenerationReport](../VideoGenerationReport/index.md). A knob left at its zero keeps the model's own default; the family's laws on the frame count and the size apply.