videos

Generate a video from text

Create a video from a text prompt. Supported models include LTX, Wan, MiniMax, Kling, Seedance, Veo and Sora families. Credits are charged dynamically based on model, duration and resolution.

post/videos/generations

Request

  • Base URL
    https://api.krater.ai/v1
  • Auth
    HTTP bearer

Request body

promptstring required

Text description of the video to generate.

modelstring

Video model identifier.

durationinteger

Video length in seconds, model dependent.

aspect_ratiostring

Aspect ratio, for example 16:9 or 9:16.

resolutionstring

Output resolution for models that support it, for example 720p or 1080p.

proboolean

Use the pro tier of the model, when available.

generate_audioboolean

Generate native audio, for models that support it.

versionstring

Specific model version to pin.

Example request

{
  "model": "kling-2.6",
  "duration": 5,
  "aspect_ratio": "16:9"
}

Response

Generated video URL.

idstring
statusstring

Example response

{
  "id": "vid_abc123",
  "status": "completed"
}

Changes

No recorded changes to this operation across all 1 revision of this API.