{
 "openapi": "3.0.3",
 "info": {
  "title": "Image-to-video (commercial): Wan2.2 I2V 14B (fp8 + AoTI + Lightning)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space zerogpu-aoti/wan2-2-fp8da-aoti-faster; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://zerogpu-aoti-wan2-2-fp8da-aoti-faster.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Video",
  "slot": "Image-to-video",
  "need": "Animate a still: a product shot, a generated frame or a photo.",
  "role": "commercial",
  "space": "zerogpu-aoti/wan2-2-fp8da-aoti-faster",
  "space_url": "https://huggingface.co/spaces/zerogpu-aoti/wan2-2-fp8da-aoti-faster",
  "model": "Wan2.2 I2V 14B (fp8 + AoTI + Lightning)",
  "license": "Apache-2.0",
  "license_class": "open",
  "gpu_seconds_booked": "46\u201371",
  "notes": "The most battle-tested and cheapest option, maintained by the ZeroGPU team. No audio; 480\u2013832 px.",
  "caveats": "",
  "lineup_call": "/generate_video(input_image, prompt, steps=6, duration_seconds=3.5 (\u22645), guidance_scale, seed, randomize_seed) \u2192 silent video",
  "api_style": "v1",
  "mcp_url": "https://zerogpu-aoti-wan2-2-fp8da-aoti-faster.hf.space/gradio_api/mcp/"
 },
 "components": {
  "securitySchemes": {
   "hfToken": {
    "type": "http",
    "scheme": "bearer",
    "description": "Your own Hugging Face token (read scope is enough). It is sent only to the upstream Space and bills that call to your account's ZeroGPU quota. Without it the call runs on the small anonymous quota."
   }
  },
  "schemas": {}
 },
 "paths": {
  "/gradio_api/call/generate_video": {
   "post": {
    "description": "Animate a still: a product shot, a generated frame or a photo. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/generate_video/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/zerogpu-aoti/wan2-2-fp8da-aoti-faster. License: Apache-2.0. \n\nUpstream description: Generate a video from an input image using the Wan 2.2 14B I2V model with Lightning LoRA. This function takes an input image and generates a video animation based on the provided prompt and parameters. It uses an FP8 qunatized Wan 2.2 14B Image-to-Video model in with Lightning LoRA for fast generation in 4-8 steps.\nReturns, in order: Generated Video: filepath; Seed: float",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "items": {},
          "description": "Positional inputs, in this order:\n0. input_image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict(str, Any)) (required)\n1. prompt: str (required: the default is demo text, so send your own or \"\")\n2. steps: float (default 6)\n3. negative_prompt: str (default \"\\u8272\\u8c03\\u8273\\u4e3d, \\u8fc7\\u66dd, \\u9759\\u6001, \\u7ec6\\u8282\\u6a21\\u7cca\\u4e0d\\u6e05, \\u5b57\\u5e55, \\u98ce\\u683c, \\u4f5c\\u54c1, \\u753b\\u4f5c, \\u753b\\u9762, \\u9759\\u6b62, \\u6574\\u4f53\\u53d1\\u7070, \\u6700\\u5dee\\u8d28\\u91cf, \\u4f4e\\u8d28\\u91cf, JPEG\\u538b\\u7f29\\u6b8b\\u7559, \\u4e11\\u964b\\u7684, \\u6b8b\\u7f3a\\u7684, \\u591a\\u4f59\\u7684\\u624b\\u6307, \\u753b\\u5f97\\u4e0d\\u597d\\u7684\\u624b\\u90e8, \\u753b\\u5f97\\u4e0d\\u597d\\u7684\\u8138\\u90e8, \\u7578\\u5f62\\u7684, \\u6bc1\\u5bb9\\u7684, \\u5f62\\u6001\\u7578\\u5f62\\u7684\\u80a2\\u4f53, \\u624b\\u6307\\u878d\\u5408, \\u9759\\u6b62\\u4e0d\\u52a8\\u7684\\u753b\\u9762, \\u6742\\u4e71\\u7684\\u80cc\\u666f, \\u4e09\\u6761\\u817f, \\u80cc\\u666f\\u4eba\\u5f88\\u591a, \\u5012\\u7740\\u8d70\")\n4. duration_seconds: float (default 3.5)\n5. guidance_scale: float (default 1)\n6. guidance_scale_2: float (default 1)\n7. seed: float (default 42)\n8. randomize_seed: bool (default true)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "input_image",
      "schema": {
       "type": "object",
       "required": [
        "path",
        "meta"
       ],
       "description": "A file. Set path to a public https URL (or a path returned by POST /gradio_api/upload on the same Space) and meta to {\"_type\": \"gradio.FileData\"}.",
       "properties": {
        "path": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "orig_name": {
         "type": "string"
        },
        "meta": {
         "type": "object",
         "properties": {
          "_type": {
           "type": "string",
           "enum": [
            "gradio.FileData"
           ]
          }
         }
        }
       }
      },
      "required": true,
      "default": null
     },
     {
      "name": "prompt",
      "schema": {
       "type": "string"
      },
      "required": false,
      "default": "make this image come alive, cinematic motion, smooth animation"
     },
     {
      "name": "steps",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 30"
      },
      "required": false,
      "default": 6
     },
     {
      "name": "negative_prompt",
      "schema": {
       "type": "string"
      },
      "required": false,
      "default": "\u8272\u8c03\u8273\u4e3d, \u8fc7\u66dd, \u9759\u6001, \u7ec6\u8282\u6a21\u7cca\u4e0d\u6e05, \u5b57\u5e55, \u98ce\u683c, \u4f5c\u54c1, \u753b\u4f5c, \u753b\u9762, \u9759\u6b62, \u6574\u4f53\u53d1\u7070, \u6700\u5dee\u8d28\u91cf, \u4f4e\u8d28\u91cf, JPEG\u538b\u7f29\u6b8b\u7559, \u4e11\u964b\u7684, \u6b8b\u7f3a\u7684, \u591a\u4f59\u7684\u624b\u6307, \u753b\u5f97\u4e0d\u597d\u7684\u624b\u90e8, \u753b\u5f97\u4e0d\u597d\u7684\u8138\u90e8, \u7578\u5f62\u7684, \u6bc1\u5bb9\u7684, \u5f62\u6001\u7578\u5f62\u7684\u80a2\u4f53, \u624b\u6307\u878d\u5408, \u9759\u6b62\u4e0d\u52a8\u7684\u753b\u9762, \u6742\u4e71\u7684\u80cc\u666f, \u4e09\u6761\u817f, \u80cc\u666f\u4eba\u5f88\u591a, \u5012\u7740\u8d70"
     },
     {
      "name": "duration_seconds",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.5 and 5.0"
      },
      "required": false,
      "default": 3.5
     },
     {
      "name": "guidance_scale",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.0 and 10.0"
      },
      "required": false,
      "default": 1
     },
     {
      "name": "guidance_scale_2",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.0 and 10.0"
      },
      "required": false,
      "default": 1
     },
     {
      "name": "seed",
      "schema": {
       "type": "number",
       "description": "numeric value between 0 and 2147483647"
      },
      "required": false,
      "default": 42
     },
     {
      "name": "randomize_seed",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": true
     }
    ],
    "operationId": "video_image_to_video_commercial",
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Image-to-video (commercial): Wan2.2 I2V 14B (fp8 + AoTI + Lightning)",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/generate_video/{event_id}": {
   "get": {
    "summary": "Read the result stream for /generate_video",
    "description": "Server-sent events. The final `event: complete` carries a JSON array of outputs; `event: error` means the call failed.",
    "parameters": [
     {
      "name": "event_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "SSE stream",
      "content": {
       "text/event-stream": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    },
    "operationId": "video_image_to_video_commercial_result",
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}