v1

latestOpenAPI 3.1.02026-07-26590116.2 KB
VideoGenerations

Wan 2.2

Wan 2.2 text-to-video and image-to-video generation. Pass image_url to use a reference image, or omit it for text-to-video.

Pricing — per task, in tokens (USD at $0.02/token):

resolutiontokensUSD
480p5$0.10
720p10$0.20

Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the generated video.

post/api/v1/videos/generations

Headers

Authorizationstring required

Bearer API key.

Request body

model'wan22_spicy' required

Model name. Must be wan22_spicy.

promptstring required

Text prompt describing the video.

image_urlstring uri

Optional first-frame image URL. If provided, runs image-to-video; otherwise text-to-video.

resolution'480p' | '720p'

Output resolution. A 480p task costs 5 tokens; a 720p task costs 10 tokens.

custom_callback_urlstring 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 request

{
  "custom_callback_url": "https://your-server.com/goenhance/callback"
}

Response

Task submitted or application-level error.

codeinteger required
msgstring required