curl --request POST \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks \
--header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan2.7-i2v-spicy",
"mode": "image_to_video",
"prompt": "A premium watch rotates slowly on black marble with cinematic rim lighting.",
"assets": {
"firstFrameImage": "https://example.com/watch-reference.jpg",
"referenceAudio": "https://example.com/voiceover.mp3"
},
"controls": {
"resolution": "720p",
"duration": 8,
"generateAudio": false,
"negativePrompt": "blurry, distorted details",
"promptExtend": true,
"seed": 42
}
}'{
"id": "wan27:task_123",
"model": "wan2.7-i2v-spicy",
"status": "pending",
"outputs": {
"videos": [],
"images": []
},
"createdAt": "2026-06-17T08:00:00.000Z",
"updatedAt": "2026-06-17T08:00:00.000Z",
"statusUpdateTime": "2026-06-17T08:00:00.000Z"
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Video API
Create a Wan video task
Create a Wan 2.7 image-to-video or Wan Animate motion-transfer task.
POST
/
contents
/
generations
/
tasks
curl --request POST \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks \
--header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan2.7-i2v-spicy",
"mode": "image_to_video",
"prompt": "A premium watch rotates slowly on black marble with cinematic rim lighting.",
"assets": {
"firstFrameImage": "https://example.com/watch-reference.jpg",
"referenceAudio": "https://example.com/voiceover.mp3"
},
"controls": {
"resolution": "720p",
"duration": 8,
"generateAudio": false,
"negativePrompt": "blurry, distorted details",
"promptExtend": true,
"seed": 42
}
}'{
"id": "wan27:task_123",
"model": "wan2.7-i2v-spicy",
"status": "pending",
"outputs": {
"videos": [],
"images": []
},
"createdAt": "2026-06-17T08:00:00.000Z",
"updatedAt": "2026-06-17T08:00:00.000Z",
"statusUpdateTime": "2026-06-17T08:00:00.000Z"
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Authorizations
A workspace API key beginning with gengen_live_.
Body
application/json