Parameter | Type | Required? | Description |
---|---|---|---|
prompt | String | yes | Text generation prompt. |
temperature | Float | no (default null) | Generation variability and creativity, in range [0, 1]. If null or higher than 0, results in nondeterministic generation. |
max_tokens | Integer | no (default null) | Maximum number of tokens (~number of words) allowed in a generated text. If null, terminates when generative model thinks it should. |
When successful, returns:
{
'text_generation_task': {
'id': 1
}
}