Parameters
The following parameters are required or optional when calling the API with this template.
| Parameter | Type | Required | Label | Options |
|---|---|---|---|---|
| image | image | Yes | Input Image | — |
| seed | number | No | Random Seed | default: -1, min: -1, max: 4294967295, step: 1 |
| duration | number | Yes | Duration (seconds) | min: 5, max: 8, step: 1 |
| resolution | select | Yes | Resolution | 480P, 720P |
Code Example
Quick start with the cURL example below. Replace the API key and parameters with your own.
curl -X POST https://nsfwrouter.xyz/api/v1/tasks/create \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"tool_id": 41,
"params": {
"image": "https://example.com/input.jpg",
"duration": 5,
"resolution": "480P",
"seed": -1
},
"webhook_url": "https://your-server.com/webhook"
}'
Billing
Pay-as-you-go API pricing. No subscription required.
Coins / Second
10
Get Started
Ready to Build?
Register, get your API key, and start creating in minutes.