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

# Grok Imagine Video Generation

> High-quality video generation with Grok Imagine

<Tip>
  1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
  2. Regardless of whether `callback_url` is provided, you can retrieve the response result through the unified [Query Task Status](/api-manual/task-management/status) endpoint.
</Tip>

# Grok Imagine Video Generation

Generate high-quality videos using Grok Imagine. Create engaging content with text-to-video and image-to-video capabilities.

## Available Model

* **grok-imagine** - Video generation (text-to-video and image-to-video)

## Key Features

* **Flexible Modes**: Text-to-video and image-to-video
* **Generation Styles**: Choose from "fun", "normal", or "spicy" modes
* **Aspect Ratios**: 1:1 (square), 2:3 (portrait), and 3:2 (landscape)
* **Video Duration**: `6` or `10` seconds


## OpenAPI

````yaml /api-manual/video-series/grok-imagine.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Grok Imagine Video API
  description: High-quality Video Generation with Grok Imagine
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Grok Imagine
      summary: Submit Grok Imagine Video Generation Task
      description: Generate high-quality videos using Grok Imagine model
      operationId: submitGrokImagineTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              text-to-video:
                summary: Grok Imagine Text-to-Video
                value:
                  model: grok-imagine
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A couple of doors open sequentially, revealing living
                      rooms, kitchens, bedrooms, and offices with residents
                      inside
                    aspect_ratio: '16:9'
                    duration: 6
                    mode: normal
              image-to-video:
                summary: Grok Imagine Image-to-Video
                value:
                  model: grok-imagine
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: The camera slowly zooms in on the scene
                    image_urls:
                      - https://example.com/image.jpg
                    duration: 6
                    mode: normal
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
      properties:
        model:
          type: string
          description: Grok Imagine model identifier
          enum:
            - grok-imagine
        callback_url:
          type: string
          format: uri
          description: Webhook callback URL for result notifications
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
          description: Input parameters for generation
          properties:
            prompt:
              type: string
              description: Generation prompt describing the desired video motion
              maxLength: 5000
              example: A cinematic video scene
            image_urls:
              type: array
              items:
                type: string
                format: uri
              maxItems: 1
              description: >-
                Reference image URLs for image-to-video generation (required for
                image-to-video, max 1 image)
              example: []
            aspect_ratio:
              type: string
              description: Video aspect ratio (text-to-video only)
              enum:
                - '1:1'
                - '2:3'
                - '3:2'
              example: '2:3'
            duration:
              type: integer
              description: The duration of the generated video in seconds
              enum:
                - 6
                - 10
              example: 6
            mode:
              type: string
              description: Generation style mode
              enum:
                - fun
                - normal
                - spicy
              example: normal
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          description: HTTP status code
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-unified-1757165031-uyujaw3d
              description: Unique task identifier for status tracking
            status:
              type: string
              enum:
                - not_started
              example: not_started
              description: Initial task status
            created_time:
              type: string
              format: date-time
              example: '2025-11-12T10:30:00'
              description: ISO 8601 timestamp when the task was created
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        All API endpoints require Bearer Token authentication


        Get your API Key:


        Visit the [API Key Management
        Page](https://vidgo.ai/apis/dashboard/api-key) to get your API Key


        Add it to the request header:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````