Cloudinary Video Generate API

Generate a video from an image and poll the generation job.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /image_to_video/generate Generate a video from an image and prompt · Create a video generation job #
Ask an LLM
“How do I turn a still image into a short video with AI?”
“Can I choose the video's aspect ratio and duration?”
Tell an agent
Generate a video from image {image_asset_id} with prompt {prompt}.
Make a {duration}-second video of {image_asset_id} described as {prompt} in {aspect_ratio} aspect ratio.
GET /image_to_video/generate/{jobId} Check an image-to-video generation job · Poll a video generation job #
Ask an LLM
“Has my image-to-video job finished generating?”
“Where do I get the video once a generation job completes?”
Tell an agent
Check the status of image-to-video job {jobId}.
Poll generation job {jobId} and return the generated video when done.
POST /v2/video/{cloud_name}/image_to_video/generate Generate a video from an image (v2 endpoint) · Create a video generation job #
Ask an LLM
“Can I generate a video from an image through the v2 video API?”
“Which v2 endpoint creates an image-to-video job?”
Tell an agent
Using the v2 video API, generate a video from image {image_asset_id} with prompt {prompt}.
Create an image-to-video job in {cloud_name} for {image_asset_id} described as {prompt}.
GET /v2/video/{cloud_name}/image_to_video/generate/{jobId} Check an image-to-video job (v2 endpoint) · Poll a video generation job #
Ask an LLM
“Can I check an image-to-video job through the v2 video API?”
“Which v2 endpoint returns the video once generation completes?”
Tell an agent
Using the v2 video API, check image-to-video job {jobId} in {cloud_name}.
Poll generation job {jobId} in {cloud_name} and return the video when done.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudinary:cloudinary-video-generate-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudinary-video-generate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Image to Video API (Beta) Video Generate API
  description: 'Use the Image to Video API to generate videos from images using AI, and to manage reusable prompts. You provide a source image and a text prompt describing the motion or scene, and Cloudinary generates a video and saves it to your product environment. See the Image to Video Add-on guide for the Console-based workflow.


    The API supports Basic Authentication using your Cloudinary API Key and API Secret (which can be found in the API Keys page of your Cloudinary Console).


    **Note**: The Image to Video API is currently in development and is available as a Public Beta — endpoints, parameters, and response payloads may change before the general access release. We value your feedback, so please feel free to share any thoughts with us.'
  version: 0.1.3
  contact:
    name: Cloudinary Support
    email: support@cloudinary.com
    url: https://support.cloudinary.com
  termsOfService: https://cloudinary.com/tou
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  x-cld-module-context: cloud
  x-cld-module-name: image-to-video
servers:
- url: https://api.cloudinary.com/v2/video/{cloudName}
  variables:
    cloudName:
      default: CLOUD_NAME
      description: The cloud name for your product environment.
security:
- basicAuth: []
tags:
- name: Video Generate
  description: Generate a video from an image and poll the generation job.
paths:
  /image_to_video/generate:
    post:
      x-speakeasy-mcp:
        name: generate-video-from-image
        title: Generate Video from Image
      tags:
      - Video Generate
      summary: Create a video generation job
      description: Submits an image and prompt for video generation and returns a job you can poll for the result.
      operationId: createVideoGenerateJob
      x-cld-use-for-readme: true
      requestBody:
        description: A JSON object with the source image, prompt, and generation options.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageToVideoGeneratePayload'
            example:
              prompt: A serene beach at sunset with gentle waves rolling in
              image_asset_id: 0a1b2c3d4e5f60718293a4b5c6d7e8f9
              aspect_ratio: '16:9'
              resolution: 1080p
              duration: 8
              generate_audio: true
              folder: campaigns/spring
              negative_prompt:
              - watermark
              - flickering
      responses:
        '201':
          description: Video generation job created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToVideoGenerateWrappedResponse'
              example:
                request_id: 6ec0bd7f11c043da975e2a8ad9ebae0b
                data:
                  job_id: 550e8400e29b41d4a716446655440000
                  status: pending
        '400':
          description: Bad request - validation or safety error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
    servers:
    - url: https://api.cloudinary.com/v2/video/{cloudName}
      variables:
        cloudName:
          default: CLOUD_NAME
          description: The cloud name for your product environment.
  /image_to_video/generate/{jobId}:
    parameters:
    - in: path
      name: jobId
      schema:
        type: string
      required: true
      description: The video generation job ID returned from the create endpoint.
    get:
      x-speakeasy-mcp:
        name: get-video-generation-job
        title: Get Video Generation Job
      tags:
      - Video Generate
      summary: Poll a video generation job
      description: Returns the current status of a generation job. When the status is `completed`, the response includes the generated video's asset details and delivery URL.
      operationId: getVideoGenerateJobStatus
      responses:
        '200':
          description: Job status (pending, completed, or failed)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToVideoGenerateWrappedResponse'
              example:
                request_id: 6ec0bd7f11c043da975e2a8ad9ebae0b
                data:
                  job_id: 550e8400e29b41d4a716446655440000
                  status: completed
                  asset_id: 9f8e7d6c5b4a30291807a6b5c4d3e2f1
                  public_id: image-to-video/i2v_550e8400e29b41d4a716446655440000
                  resource_type: video
                  delivery_type: upload
                  url: https://res.cloudinary.com/demo/video/upload/v1/image-to-video/i2v_550e8400e29b41d4a716446655440000.mp4
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '403':
          description: Authorization error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
    servers:
    - url: https://api.cloudinary.com/v2/video/{cloudName}
      variables:
        cloudName:
          default: CLOUD_NAME
          description: The cloud name for your product environment.
  /v2/video/{cloud_name}/image_to_video/generate:
    parameters:
    - $ref: '#/components/parameters/cloud_name'
    post:
      x-speakeasy-mcp:
        name: generate-video-from-image
        title: Generate Video from Image
      tags:
      - Video Generate
      summary: Create a video generation job
      description: Submits an image and prompt for video generation and returns a job you can poll for the result.
      operationId: createVideoGenerateJob
      x-cld-use-for-readme: true
      requestBody:
        description: A JSON object with the source image, prompt, and generation options.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageToVideoGeneratePayload'
            examples:
              default:
                value:
                  prompt: A serene beach at sunset with gentle waves rolling in
                  image_asset_id: 0a1b2c3d4e5f60718293a4b5c6d7e8f9
                  aspect_ratio: '16:9'
                  resolution: 1080p
                  duration: 8
                  generate_audio: true
                  folder: campaigns/spring
                  negative_prompt:
                  - watermark
                  - flickering
      responses:
        '201':
          description: Video generation job created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToVideoGenerateWrappedResponse'
              examples:
                default:
                  value:
                    request_id: 6ec0bd7f11c043da975e2a8ad9ebae0b
                    data:
                      job_id: 550e8400e29b41d4a716446655440000
                      status: pending
        '400':
          description: Bad request - validation or safety error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
  /v2/video/{cloud_name}/image_to_video/generate/{jobId}:
    parameters:
    - $ref: '#/components/parameters/cloud_name'
    - in: path
      name: jobId
      schema:
        type: string
      required: true
      description: The video generation job ID returned from the create endpoint.
    get:
      x-speakeasy-mcp:
        name: get-video-generation-job
        title: Get Video Generation Job
      tags:
      - Video Generate
      summary: Poll a video generation job
      description: Returns the current status of a generation job. When the status is `completed`, the response includes the generated video's asset details and delivery URL.
      operationId: getVideoGenerateJobStatus
      responses:
        '200':
          description: Job status (pending, completed, or failed)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToVideoGenerateWrappedResponse'
              examples:
                default:
                  value:
                    request_id: 6ec0bd7f11c043da975e2a8ad9ebae0b
                    data:
                      job_id: 550e8400e29b41d4a716446655440000
                      status: completed
                      asset_id: 9f8e7d6c5b4a30291807a6b5c4d3e2f1
                      public_id: image-to-video/i2v_550e8400e29b41d4a716446655440000
                      resource_type: video
                      delivery_type: upload
                      url: https://res.cloudinary.com/demo/video/upload/v1/image-to-video/i2v_550e8400e29b41d4a716446655440000.mp4
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '403':
          description: Authorization error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWrappedResponse'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
components:
  schemas:
    MessageWrappedResponseData:
      type: object
      description: An object carrying a human-readable message.
      properties:
        message:
          type: string
          description: A human-readable message.
    ImageToVideoGenerateWrappedResponse:
      type: object
      required:
      - request_id
      - data
      properties:
        request_id:
          type: string
          example: 6ec0bd7f11c043da975e2a8ad9ebae0b
        data:
          $ref: '#/components/schemas/ImageToVideoGenerateResponse'
    ImageToVideoGenerateResponse:
      type: object
      required:
      - job_id
      - status
      properties:
        job_id:
          type: string
          example: 550e8400e29b41d4a716446655440000
        status:
          type: string
          enum:
          - pending
          - completed
          - failed
          example: pending
        asset_id:
          type: string
          description: Cloudinary asset ID of the generated video (present when completed).
        public_id:
          type: string
          description: Cloudinary public ID of the generated video (present when completed).
        resource_type:
          type: string
          description: Cloudinary resource type of the generated video (present when completed).
        delivery_type:
          type: string
          description: Cloudinary delivery type of the generated video (present when completed).
        url:
          type: string
          description: HTTPS URL of the generated video (present when completed).
        message:
          type: string
          description: Error message when generation has failed.
    ErrorWrappedResponse:
      type: object
      description: A response envelope returned when a request fails.
      required:
      - request_id
      - error
      properties:
        request_id:
          type: string
          description: A unique id for the request, useful when contacting support.
          example: 6ec0bd7f11c043da975e2a8ad9ebae0b
        error:
          $ref: '#/components/schemas/MessageWrappedResponseData'
    ImageToVideoGeneratePayload:
      type: object
      required:
      - prompt
      - image_asset_id
      properties:
        prompt:
          type: string
          description: Video description prompt.
        image_asset_id:
          type: string
          description: Cloudinary asset ID of the input image for image-to-video generation.
        aspect_ratio:
          type: string
          enum:
          - auto
          - '16:9'
          - '9:16'
          default: auto
          description: Video aspect ratio. `auto` resolves based on image dimensions (defaults to landscape). `16:9` = landscape, `9:16` = portrait.
        resolution:
          type: string
          enum:
          - 720p
          - 1080p
          default: 720p
          description: Video resolution. `1080p` is only supported with a duration of 8 seconds.
        duration:
          type: integer
          enum:
          - 4
          - 6
          - 8
          default: 8
          description: Video duration in seconds.
        generate_audio:
          type: boolean
          default: false
          description: Whether to generate audio. Enabling audio consumes twice as many credits.
        enhance_prompt:
          type:
          - boolean
          - 'null'
          description: Whether to let Cloudinary automatically enhance the prompt.
          default: true
        last_frame_image_asset_id:
          type: string
          description: Cloudinary asset ID of the last frame image.
        reference_image_asset_ids:
          type: array
          items:
            type: string
          maxItems: 2
          description: Cloudinary asset IDs of reference images.
        folder:
          type: string
          default: image-to-video
          description: Path of the folder to save the generated video to, for example `campaigns/spring`. If the folder doesn't exist, it's created.
        negative_prompt:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
          maxItems: 50
          description: Elements the video should avoid, for example `watermark` or `flickering`. Items must not be blank. If omitted, a default list of common artifacts is applied. Send an empty array to apply none.
    ImageToVideoGenerateWrappedResponse_2:
      type: object
      required:
      - request_id
      - data
      properties:
        request_id:
          type: string
          example: 6ec0bd7f11c043da975e2a8ad9ebae0b
        data:
          $ref: '#/components/schemas/ImageToVideoGenerateResponse_2'
    ImageToVideoGenerateResponse_2:
      type: object
      required:
      - job_id
      - status
      properties:
        job_id:
          type: string
          example: 550e8400e29b41d4a716446655440000
        status:
          type: string
          enum:
          - pending
          - completed
          - failed
          example: pending
        asset_id:
          type: string
          description: Cloudinary asset ID of the generated video (present when completed).
        public_id:
          type: string
          description: Cloudinary public ID of the generated video (present when completed).
        resource_type:
          type: string
          description: Cloudinary resource type of the generated video (present when completed).
        delivery_type:
          type: string
          description: Cloudinary delivery type of the generated video (present when completed).
        url:
          type: string
          description: HTTPS URL of the generated video (present when completed).
        message:
          type: string
          description: Error message when generation has failed.
    ErrorWrappedResponse_2:
      type: object
      description: A response envelope returned when a request fails.
      required:
      - request_id
      - error
      properties:
        request_id:
          type: string
          description: A unique id for the request, useful when contacting support.
          example: 6ec0bd7f11c043da975e2a8ad9ebae0b
        error:
          $ref: '#/components/schemas/MessageWrappedResponseData'
    ImageToVideoGenerateWrappedResponse_3:
      type: object
      required:
      - request_id
      - data
      properties:
        request_id:
          type: string
          example: 6ec0bd7f11c043da975e2a8ad9ebae0b
        data:
          $ref: '#/components/schemas/ImageToVideoGenerateResponse_3'
    ImageToVideoGenerateResponse_3:
      type: object
      required:
      - job_id
      - status
      properties:
        job_id:
          type: string
          example: 550e8400e29b41d4a716446655440000
        status:
          type: string
          enum:
          - pending
          - completed
          - failed
          example: pending
        asset_id:
          type: string
          description: Cloudinary asset ID of the generated video (present when completed).
        public_id:
          type: string
          description: Cloudinary public ID of the generated video (present when completed).
        resource_type:
          type: string
          description: Cloudinary resource type of the generated video (present when completed).
        delivery_type:
          type: string
          description: Cloudinary delivery type of the generated video (present when completed).
        url:
          type: string
          description: HTTPS URL of the generated video (present when completed).
        message:
          type: string
          description: Error message when generation has failed.
    ErrorWrappedResponse_3:
      type: object
      description: A response envelope returned when a request fails.
      required:
      - request_id
      - error
      properties:
        request_id:
          type: string
          description: A unique id for the request, useful when contacting support.
          example: 6ec0bd7f11c043da975e2a8ad9ebae0b
        error:
          $ref: '#/components/schemas/MessageWrappedResponseData'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication using your Cloudinary API Key and API Secret.
    oauth2:
      type: oauth2
      description: OAuth2 Authorization Code flow for user authentication
      flows:
        authorizationCode:
          authorizationUrl: https://oauth.cloudinary.com/oauth2/auth
          tokenUrl: https://oauth.cloudinary.com/oauth2/token
          scopes:
            asset_management: Allows managing assets, including reading, updating, and deleting.
            upload: Allows uploading new assets.
            media_generation: Generate media
  parameters:
    cloud_name:
      name: cloud_name
      in: path
      required: true
      schema:
        type: string
      description: The cloud name of your product environment.
      example: my_cloud
    cloud_name_2:
      name: cloud_name
      in: path
      required: true
      schema:
        type: string
      description: The cloud name for your product environment.
      example: my_cloud