> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omniall.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create video redraw

> Create an async video redraw task.

**Path:** `POST https://api.omniall.ai/v1/video/generations` (also `POST /v1/videos`)

Poll every 10–15s. On success download `result_url` / `video_url` promptly.

Billing seconds: `max(4, ceil(source_duration - 0.1))`, max 60.

Auth: `Authorization: Bearer sk-...`




## OpenAPI

````yaml openapi/video-redraw.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: Omniall AI — Video redraw
  version: 1.0.0
  description: >
    OmniAll self-developed video redraw (diffusion frame-by-frame restore;
    **not** upscaling).


    **Create:** `POST https://api.omniall.ai/v1/video/generations` (also `POST
    /v1/videos`)


    **Fetch:** `GET /v1/video/generations/{task_id}`


    Model: `omniall-redraw-1`.


    Auth: `Authorization: Bearer sk-...`
servers:
  - url: https://api.omniall.ai
security: []
paths:
  /v1/video/generations:
    post:
      tags:
        - Platform
      summary: Create video redraw
      description: >
        Create an async video redraw task.


        **Path:** `POST https://api.omniall.ai/v1/video/generations` (also `POST
        /v1/videos`)


        Poll every 10–15s. On success download `result_url` / `video_url`
        promptly.


        Billing seconds: `max(4, ceil(source_duration - 0.1))`, max 60.


        Auth: `Authorization: Bearer sk-...`
      operationId: videoRedrawCreate
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
                - video_url
                - seconds
              properties:
                model:
                  type: string
                  description: >-
                    Fixed as `omniall-redraw-1`. Set output size with
                    `resolution`.
                  example: omniall-redraw-1
                prompt:
                  type: string
                  description: Required; a short value like `redraw` is fine.
                  example: redraw
                video_url:
                  type: string
                  format: uri
                  description: |
                    Public https direct link to the source video (mp4 / mov).
                    Aliases: `url` / `videos[0]` / `reference_videos[0]`.
                  example: https://cdn.example.com/clip.mp4
                seconds:
                  oneOf:
                    - type: number
                    - type: string
                  description: >
                    Billing seconds. Must equal `max(4, ceil(source_duration -
                    0.1))`, max 60.
                  example: 6
                duration:
                  type: number
                  description: Equivalent to `seconds` (either is fine).
                  example: 6
                resolution:
                  type: string
                  enum:
                    - 720p
                    - 1080p
                    - 4k
                  description: Output resolution. Default `1080p`.
                  example: 1080p
            examples:
              redraw_1080p:
                summary: 1080p redraw
                value:
                  model: omniall-redraw-1
                  prompt: redraw
                  video_url: https://cdn.example.com/clip.mp4
                  seconds: 6
                  resolution: 1080p
              redraw_4k:
                summary: 4K via resolution
                value:
                  model: omniall-redraw-1
                  prompt: redraw
                  video_url: https://cdn.example.com/clip.mp4
                  seconds: 6
                  resolution: 4k
      responses:
        '200':
          description: Accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: task_xxx
                  task_id:
                    type: string
                    example: task_xxx
                  status:
                    type: string
                    example: processing
                  model:
                    type: string
                    example: omniall-redraw-1
                  created_at:
                    type: integer
              example:
                id: task_xxx
                task_id: task_xxx
                status: processing
                model: omniall-redraw-1
        '400':
          description: >-
            Invalid request (missing video_url / prompt, seconds mismatch,
            invalid resolution)
        '401':
          description: Unauthorized

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.