> ## 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 Sleep Video Generator API

> Integrate AI-powered sleeping videos into your apps. Transform static images into peaceful slumber scenes with realistic breathing patterns.

## Example

Example output from the AI Sleep Video Generator API:

<video width="100%" controls>
  <source src="https://cdn.goenhance.ai/video/static/effects/645dfff0-b42c-4e5d-a955-761f8401caa4.mp4" type="video/mp4" />

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

## API Overview

The AI Sleep Video Generator API enables developers to programmatically create videos of subjects in peaceful slumber. By sending image data to our endpoint, your application can generate realistic sleeping animations with subtle breathing movements, relaxed facial expressions, and natural sleep postures. This API is perfect for integrating into wellness applications, sleep tracking services, meditation platforms, or any service that would benefit from calming, restful content.


## OpenAPI

````yaml POST /api/v2/videoeffect/generate/nap_me
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/nap_me:
    post:
      tags: []
      summary: AI Nap Me 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: {}

````