Skip to main content
POST
AI Nap Me Video Generator API

Example

Example output from the AI Sleep Video Generator API:

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.

Headers

Authorization
string
required

Body

application/json
reference_img
string

target image, Max 10M

custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

200 - application/json
code
integer
required
msg
string
required
data
object
required