Add AI video generation to your n8n automation workflows. Use the HTTP Request node to call the NextAPI endpoint and process results downstream.
Set the following values in your n8n configuration:
// n8n HTTP Request Node Configuration
{
"method": "POST",
"url": "https://api.nextapi.top/v1/video/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerAuth": {
"name": "Authorization",
"value": "Bearer {{ $credentials.nextapiKey }}"
},
"sendBody": true,
"bodyContentType": "json",
"jsonBody": {
"model": "seedance-2.0-pro",
"prompt": "={{ $json.prompt }}",
"duration_seconds": 6,
"resolution": "1080p"
}
}Verify your setup by running this command:
curl -X POST https://api.nextapi.top/v1/video/generations \
-H "Authorization: Bearer $NEXTAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-pro",
"prompt": "timelapse of clouds over mountains",
"duration_seconds": 6,
"resolution": "1080p"
}'Contact our integrations team at support@nextapi.dev or check the full API documentation.