v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

text2text-generation

Generate text from input text for applications like text completion, content generation, and dialogue systems

post/models/v2/google/flan-t5-base

Request body

textstring required

The input text

streamboolean

Enable text streaming.

Example request

{
  "text": "Once upon a time there was a beautiful home where"
}

Response

Successful text2text-generation response.

errorstring nullable required

Null on success; otherwise an error message.

outputstring required

Successful response with generated text

Example response

{
  "output": "Once upon a time there was a beautiful home where there was a happy cat"
}