Skip to main content

generateText

Generate text based on the user's prompt.

Example:

mutation GenerateText {
generateText(
input: {message: "Generate a short description of a fantasy-world landscape"}
) {
response {
text
}
}
}

Example Response:

{
"data": {
"generateText": {
"response": {
"text": "A magical forest with towering trees and glowing mushrooms."
}
}
}
}
generateText(
input: AITextGenerationInput!
): AITextGenerationJob!

Arguments

generateText.input ● AITextGenerationInput! non-null input

Type

AITextGenerationJob object