パラメータ
このテンプレートでAPIを呼び出す際、以下のパラメータが必要またはオプションです。
| パラメータ | 型 | 必須 | ラベル | オプション |
|---|---|---|---|---|
| image | image | はい | 入力画像 | — |
| seed | number | いいえ | ランダムシード | default: -1, min: -1, max: 4294967295, step: 1 |
| duration | number | はい | 長さ(秒) | min: 5, max: 8, step: 1 |
| resolution | select | はい | 解像度 | 480P, 720P |
コード例
下記のcURL例でクイックスタート。APIキーとパラメータをご自身のものに置き換えてください。
curl -X POST https://nsfwrouter.xyz/api/v1/tasks/create \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"tool_id": 44,
"params": {
"image": "https://example.com/input.jpg",
"duration": 5,
"resolution": "480P",
"seed": -1
},
"webhook_url": "https://your-server.com/webhook"
}'
課金
従量課金のAPI料金。サブスク不要。
コイン / 秒
10