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.
Set the following values in your Cursor configuration:
// .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"
}
}
}
}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": "a gentle wave rolling onto a sandy beach",
"duration_seconds": 6,
"resolution": "1080p"
}'Contact our integrations team at support@nextapi.dev or check the full API documentation.