REST API ReferenceEndpointsText

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.
promptstringRequired
The instruction or content to generate text from.
systemstring or nullOptional
Optional system instructions that steer the model's role, tone, and constraints.
modelenumOptionalDefaults to STANDARD

Model quality tier. LOW is fastest and cheapest; STANDARD balances quality and cost; HIGH is highest quality. Defaults to STANDARD.

temperaturedoubleOptional0-2
Sampling temperature. Higher values produce more varied output. Defaults to the model's default.
maxOutputTokensintegerOptional1-2000Defaults to 512
Maximum number of tokens to generate. Defaults to 512.

Response

Generated text.
textstring
The generated text.