We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccff2bb commit 30d1582Copy full SHA for 30d1582
ychat/src/commonMain/kotlin/co/yml/ychat/YChat.kt
@@ -78,6 +78,19 @@ interface YChat {
78
*/
79
fun chatCompletions(): ChatCompletions
80
81
+ /**
82
+ * The image generations api is used to generate images based on a prompt. You input some text as a
83
+ * prompt, and the model will generate one or more images.
84
+ *
85
+ * You can configure the parameters of the completion before executing it. Example:
86
+ * ```
87
+ * val result = YChat.create(apiKey).imageGenerations()
88
+ * .setResults(2)
89
+ * .setSize(1024x1024)
90
+ * .set...
91
+ * .execute("/image ocean")
92
93
+ */
94
fun imageGenerations(): ImageGenerations
95
96
/**
0 commit comments