All Integrations

Cursor Integration

Use NextAPI as a video generation tool inside Cursor IDE agent workflows. Your AI coding assistant can programmatically generate videos through the NextAPI REST endpoint.

Configuration

Set the following values in your Cursor configuration:

json
// .cursor/mcp.json
{
  "mcpServers": {
    "nextapi": {
      "command": "npx",
      "args": ["-y", "@nextapi/mcp-server"],
      "env": {
        "NEXTAPI_BASE_URL": "https://api.nextapi.top",
        "NEXTAPI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Setup Steps

  1. 1Sign up at app.nextapi.top and create an API key.
  2. 2Add the MCP server configuration to your .cursor/mcp.json file.
  3. 3Restart Cursor to load the new MCP server.
  4. 4Ask your agent to generate a video — it will use the NextAPI tool automatically.
  5. 5The generated video URL will be returned in the agent's 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": "a gentle wave rolling onto a sandy beach",
    "duration_seconds": 6,
    "resolution": "1080p"
  }'

Need help?

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