text-generation
Generate text from an initial prompt for applications like story generation, dialogue systems, and creative writing
post/models/v2/openai-community/gpt2
Request
- Base URLhttps://api.bytez.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"text": "Once upon a time there was a beautiful home where",
"params": {
"min_length": 10,
"max_length": 100,
"temperature": 0.7
}
}Response
Successful text-generation response.
Example response
{
"output": "Once upon a time there was a beautiful home where a woman, who, after a long journey, had been able to return to her family..."
}Changes
No recorded changes to this operation across all 1 revision of this API.