Generate text
Generate text from a prompt using a general-purpose language model. Choose a quality tier with quality (LOW, STANDARD, HIGH, or MAX). Synchronous: the response includes the generated text. Useful for drafting scripts, titles, descriptions, and other short copy before generating a video.
Authentication
AuthorizationBearer
API key from [app.videogen.io/api](https://app.videogen.io/api). The full key is only shown once when you create it.
Request
This endpoint expects an object.
prompt
The instruction or content to generate text from.
system
Optional system instructions that steer the model's role, tone, and constraints.
quality
Text generation quality tier. Optional; when omitted, your workspace’s Default AI quality for text is used (change it at https://app.videogen.io/settings/account).
temperature
Sampling temperature. Higher values produce more varied output. Defaults to the model's default.
maxOutputTokens
Maximum number of tokens to generate. Defaults to 512.
Response
Generated text.
text
The generated text.