执行 AIVideoMaker API 工作流,用于文字转视频和图像转视频生成,包括任务创建、状态轮询、任务详情获取,以及...
Provide a production-ready execution workflow for AIVideoMaker API v1:
aivideomaker.ai API directlyAIVIDEO_API_KEY (required) Get an API Key from https://aivideomaker.ai .AIVIDEO_TIMEOUT_MS (optional, default 30000) - Request timeout in millisecondsAIVIDEO_MAX_RETRIES (optional, default 3) - Max retries for idempotent read requestscreateGenerationgetTaskgetStatuscancelTaskt2vi2vlvt2v_v3i2v_v3data:image/...;base64,... for i2v, lv, and i2v_v3.data:image/...;base64,... for reliability in OpenClaw environments.createGeneration.getStatus with backoff until terminal status.COMPLETED, call getTask and return output.FAILED, return failure with actionable next steps.ok, status, taskId, data, errorCode, errorMessage, retryAfterINVALID_MODELINVALID_PAYLOADAUTH_FAILEDRATE_LIMITEDINSUFFICIENT_CREDITSTASK_NOT_FOUNDNETWORK_ERRORUNKNOWN_ERRORnode scripts/run-workflow.mjs --model <model> --payload '<json_payload>'node scripts/run-workflow.mjs --action getStatus --taskId <task_id>node scripts/run-workflow.mjs --action getTask --taskId <task_id>node scripts/run-workflow.mjs --action cancelTask --taskId <task_id>This skill only performs the following actions:
--payloadAll network requests are made to https://aivideomaker.ai (or an optional custom base URL configured via client options) and include only the API key for authentication.
Security Best Practices:
AIVIDEO_API_KEY as an environment variable