{
  "name": "Atlas Cloud \u2014 Async Video (Submit + Poll)",
  "nodes": [
    {
      "parameters": {},
      "id": "trigger03",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        380,
        300
      ]
    },
    {
      "parameters": {
        "category": "Text-to-Video",
        "modelUuid": "bytedance/seedance-2.0-fast/text-to-video",
        "prompt": "a paper plane gliding over a neon city at dusk, cinematic, slow camera push-in",
        "executionMode": "submit"
      },
      "id": "submit03",
      "name": "AtlasCloud Task Submit",
      "type": "n8n-nodes-atlascloud.atlasCloudTaskSubmit",
      "typeVersion": 1,
      "position": [
        620,
        300
      ],
      "credentials": {
        "atlasCloudApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "waitForCompletion",
        "predictionId": "={{ $json.prediction_id }}",
        "pollingOptions": {
          "maxWaitTime": 15,
          "pollInterval": 5
        }
      },
      "id": "status03",
      "name": "AtlasCloud Task Status",
      "type": "n8n-nodes-atlascloud.atlasCloudTaskStatus",
      "typeVersion": 1,
      "position": [
        860,
        300
      ],
      "credentials": {
        "atlasCloudApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "AtlasCloud Task Submit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AtlasCloud Task Submit": {
      "main": [
        [
          {
            "node": "AtlasCloud Task Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "description": "Submit Only -> poll with Task Status (Wait for Completion). The Status node reads the id via {{ $json.prediction_id }} from Submit. After import: select your credential and confirm Category + Model."
  }
}