Add AI video generation to your n8n automation workflows using the built-in HTTP Request node. This integration uses NextAPI's standard REST API — no custom nodes required.
Set the following values in your n8n configuration:
// n8n HTTP Request Node Configuration
{
"createVideo": {
"method": "POST",
"url": "https://api.nextapi.top/v1/videos",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerAuth": {
"name": "Authorization",
"value": "Bearer {{ $credentials.nextapiKey }}"
},
"sendBody": true,
"bodyContentType": "json",
"jsonBody": {
"model": "seedance-2.0-pro",
"input": {
"prompt": "={{ $json.prompt }}",
"duration_seconds": 6,
"resolution": "1080p"
}
}
},
"pollVideo": {
"method": "GET",
"url": "={{ 'https://api.nextapi.top/v1/videos/' + $json.id }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerAuth": {
"name": "Authorization",
"value": "Bearer {{ $credentials.nextapiKey }}"
}
}
}Verify your setup by running this command with your real sk_live_ key:
$NEXTAPI_KEY with your actual key from app.nextapi.top.CREATE_RESPONSE=$(curl -sS -X POST https://api.nextapi.top/v1/videos \
-H "Authorization: Bearer $NEXTAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-pro",
"input": {
"prompt": "timelapse of clouds over mountains",
"duration_seconds": 6,
"resolution": "1080p"
}
}')
VIDEO_ID=$(printf '%s' "$CREATE_RESPONSE" | jq -r '.id')
curl -sS "https://api.nextapi.top/v1/videos/$VIDEO_ID" \
-H "Authorization: Bearer $NEXTAPI_KEY"Contact our integrations team at support@nextapi.top or check the full API documentation.