Generate text
Generate text from a prompt using a general-purpose language model. Choose a quality tier with model (LOW, STANDARD, or HIGH). 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/developers](https://app.videogen.io/developers). 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.
model
Model quality tier. LOW is fastest and cheapest; STANDARD balances quality and cost; HIGH is highest quality. Defaults to STANDARD.
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.