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

# AI Focus Lens Video Generator API

> Integrate AI-powered focus effect videos into your apps. Transform static images into cinematic scenes with professional depth-of-field transitions.

## Example

Example output from the AI Focus Lens Video Generator API:

<video width="100%" controls>
  <source src="https://cdn.goenhance.ai/video/static/effects/0182b9b3-83fc-4632-ba70-281c5d50fd80.mp4" type="video/mp4" />

  Your browser does not support the video tag.
</video>

## API Overview

The AI Focus Lens Video Generator API enables developers to programmatically create videos with professional camera focus effects. By sending image data to our endpoint, your application can generate cinematic animations with realistic depth-of-field transitions, focus pulls, and subtle camera movements. This API is perfect for integrating into photography applications, filmmaking tools, content creation platforms, or any service that would benefit from engaging, professionally styled visual content.


## OpenAPI

````yaml POST /api/v2/videoeffect/generate/focus_lens
openapi: 3.1.0
info:
  title: GoEnhance API
  description: ''
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security:
  - bearerAuth: []
tags:
  - name: Basic
  - name: Video2Video
paths:
  /api/v2/videoeffect/generate/focus_lens:
    post:
      tags: []
      summary: AI Focus Lens Video Generator API
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                args:
                  type: object
                  properties:
                    reference_img:
                      type: string
                      description: target image, Max 5M
                  x-apifox-orders:
                    - effect_id
                    - model
                    - reference_img
                    - is_private
              required:
                - args
              x-apifox-orders:
                - args
                - type
            example:
              args:
                reference_img: >-
                  https://cdn.goenhance.ai/user/goenhance/f52840534004f9a52cbe6d2aec7fa164.jpg
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                    required:
                      - img_uuid
                required:
                  - code
                  - msg
                  - data
              example:
                code: 0
                msg: Success
                data:
                  img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
          headers: {}
      deprecated: false
      security: []
components: {}

````