All Integrations

n8n Integration

Add AI video generation to your n8n automation workflows. Use the HTTP Request node to call the NextAPI endpoint and process results downstream.

Configuration

Set the following values in your n8n configuration:

json
// 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"
  }
}

Setup Steps

  1. 1In n8n, go to Settings → Credentials and create a new "Header Auth" credential with your NextAPI key.
  2. 2Add an HTTP Request node to your workflow.
  3. 3Set the method to POST and the URL to https://api.nextapi.top/v1/video/generations.
  4. 4Configure the authentication to use your Header Auth credential with header name "Authorization" and value "Bearer {key}".
  5. 5Set the JSON body with your model, prompt, duration_seconds, and resolution parameters.
  6. 6Connect the output to downstream nodes to process the video URL from the response.

Test with cURL

Verify your setup by running this command:

bash
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"
  }'

Need help?

Contact our integrations team at support@nextapi.dev or check the full API documentation.