Skip to main content
Method: client.generateVideo().

Example

const video = await client.generateVideo({
  model: "openai/gpt-video-1",
  prompt: "A calm ocean at dusk",
});

Key parameters

  • model (required): Video-capable model id.
  • prompt (required): Text description of the video.
  • Optional provider-specific controls (per API spec), e.g., duration, format, or aspect (when supported by the upstream).

Returns

VideoGenerationResponse
{
  "data": [
    {
      "url": "https://example.com/generated_video.mp4"
    }
  ]
}