# Generate Video By Image

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/video/mj/generate:
    post:
      summary: Generate Video By Image
      deprecated: false
      description: >-
        The API to generate your video by start and end frame images,  use
        Midjourney video generation underneath.


        Pricing: 50 credits per video
      tags:
        - Video API Documentation
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: >-
                    The imagine prompt, you can also include an image URL or
                    other valid parameters in it, same like you using Midjourney
                    in Discord.
                ref:
                  type: string
                  description: >-
                    The reference metadata which will return as part of the
                    webhook.
                  nullable: true
                webhookOverride:
                  type: string
                  description: >-
                    The webhook URL which the response will send to, the payload
                    of this webhook is same as our Message endpoint.
                  default: YOUR_BACKEND_API_ENDPOINT
                  nullable: true
                timeout:
                  type: integer
                  description: Custom timeout, default to 900 in seconds
                  default: 900
                  minimum: 10
                  maximum: 900
                  nullable: true
                startFrameUrl:
                  type: string
                  description: Start frame image url, you can use our cdn upload feature
                  default: png
                  nullable: true
                endFrameUrl:
                  type: string
                  description: End frame image url, you can use our cdn upload feature
                  default: '100'
                  nullable: true
                manual:
                  type: string
                  description: Different flux model to use,  default to `flux-1.1-pro`
                  default: flux-1.1-pro
                  nullable: true
              x-apifox-orders:
                - prompt
                - ref
                - webhookOverride
                - timeout
                - startFrameUrl
                - endFrameUrl
                - manual
              required:
                - prompt
                - startFrameUrl
                - endFrameUrl
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: The status of the request.
                  messageId:
                    type: string
                    description: >-
                      The messageId of the request, which will be used for
                      querying the progress, sending subsequential actions
                      later, etc.
                  createdAt:
                    type: string
                    description: The timestamp of the job creation.
                  error:
                    type: string
                    description: The error message, if any
                x-apifox-orders:
                  - success
                  - messageId
                  - createdAt
                  - error
                required:
                  - success
                  - messageId
                  - createdAt
              examples:
                '1':
                  summary: Success
                  value:
                    success: true
                    messageId: d15c1541-229a-442b-9873-d3494dede12a
                    createdAt: '2023-08-01T14:03:01.817Z'
                '2':
                  summary: By webhook
                  value:
                    ref: xxxx-adb6-9a1cf01d4d8e
                    status: DONE
                    progress: 100
                    videos:
                      - >-
                        https://cdn.midjourney.com/video/xxxx-8ec7-6f815eb5f9b0/0.mp4
                      - >-
                        https://cdn.midjourney.com/video/xxxx-8ec7-6f815eb5f9b0/1.mp4
                      - >-
                        https://cdn.midjourney.com/video/xxxx-8ec7-6f815eb5f9b0/2.mp4
                      - >-
                        https://cdn.midjourney.com/video/xxxx-8ec7-6f815eb5f9b0/3.mp4
                    messageId: f7b06bb2-ad49-4856-ae8e-15dab5201db5
                    createdAt: '2025-12-15T03:49:46+00:00'
                    updatedAt: '2025-12-15T03:51:27+00:00'
          headers: {}
          x-apifox-name: Success
      security:
        - bearer: []
      x-apifox-folder: Video API Documentation
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5160896/apis/api-335574000-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.imaginepro.ai
    description: Prod Env
security: []

```
