---
title: "Create Video Generation"
method: POST
path: "/v1/openai/videos"
tags: ["Videos"]
---

# Create Video Generation

`POST /v1/openai/videos`

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- VideoGenerationIn
  - `model` string, required
  - `prompt` string, required
  - `negative_prompt` string, nullable
  - `aspect_ratio` string, nullable
  - `size` string, nullable
  - `seconds` integer, nullable
  - `seed` integer, nullable
  - `style` string, nullable
  - `image_url` string, nullable — First-frame image for image-to-video (i2v): an http(s) URL or a data: URI. Omit for text-to-video.

## Response `200`

Successful Response

- VideoGenerationOut
  - `id` string, required
  - `object` string
  - `created_at` integer, required
  - `status` string, required
  - `model` string, required
  - `data` object[], nullable
  - `error` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/revisions/51b817b3f80f/schema)
