{
 "openapi": "3.0.3",
 "info": {
  "title": "First/last frame and interpolation (commercial): Wan2.2 I2V 14B",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space multimodalart/wan-2-2-first-last-frame; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://multimodalart-wan-2-2-first-last-frame.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Video",
  "slot": "First/last frame and interpolation",
  "need": "Bridge two keyframes, or smooth and slow down footage.",
  "role": "commercial",
  "space": "multimodalart/wan-2-2-first-last-frame",
  "space_url": "https://huggingface.co/spaces/multimodalart/wan-2-2-first-last-frame",
  "model": "Wan2.2 I2V 14B",
  "license": "Apache-2.0",
  "license_class": "open",
  "gpu_seconds_booked": "120",
  "notes": "Commercial-safe keyframe bridge.",
  "caveats": "",
  "lineup_call": "/generate_video(start_image_pil, end_image_pil, prompt, duration_seconds=2.1, steps=8, seed) \u2192 silent video",
  "api_style": "v1"
 },
 "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": "Bridge two keyframes, or smooth and slow down footage. 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/multimodalart/wan-2-2-first-last-frame. License: Apache-2.0. \n\nUpstream description: Generates a video by interpolating between a start and end image, guided by a text prompt, using the diffusers Wan2.2 pipeline.\nReturns, in order: Generated Video: filepath; Seed: float",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 3,
          "maxItems": 10,
          "items": {},
          "description": "Positional inputs, in this order:\n0. start_image_pil: 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. end_image_pil: 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)\n2. prompt: str (required)\n3. negative_prompt: str (default \"\\u8272\\u8c03\\u8273\\u4e3d\\uff0c\\u8fc7\\u66dd\\uff0c\\u9759\\u6001\\uff0c\\u7ec6\\u8282\\u6a21\\u7cca\\u4e0d\\u6e05\\uff0c\\u5b57\\u5e55\\uff0c\\u98ce\\u683c\\uff0c\\u4f5c\\u54c1\\uff0c\\u753b\\u4f5c\\uff0c\\u753b\\u9762\\uff0c\\u9759\\u6b62\\uff0c\\u6574\\u4f53\\u53d1\\u7070\\uff0c\\u6700\\u5dee\\u8d28\\u91cf\\uff0c\\u4f4e\\u8d28\\u91cf\\uff0cJPEG\\u538b\\u7f29\\u6b8b\\u7559\\uff0c\\u4e11\\u964b\\u7684\\uff0c\\u6b8b\\u7f3a\\u7684\\uff0c\\u591a\\u4f59\\u7684\\u624b\\u6307\\uff0c\\u753b\\u5f97\\u4e0d\\u597d\\u7684\\u624b\\u90e8\\uff0c\\u753b\\u5f97\\u4e0d\\u597d\\u7684\\u8138\\u90e8\\uff0c\\u7578\\u5f62\\u7684\\uff0c\\u6bc1\\u5bb9\\u7684\\uff0c\\u5f62\\u6001\\u7578\\u5f62\\u7684\\u80a2\\u4f53\\uff0c\\u624b\\u6307\\u878d\\u5408\\uff0c\\u9759\\u6b62\\u4e0d\\u52a8\\u7684\\u753b\\u9762\\uff0c\\u6742\\u4e71\\u7684\\u80cc\\u666f\\uff0c\\u4e09\\u6761\\u817f\\uff0c\\u80cc\\u666f\\u4eba\\u5f88\\u591a\\uff0c\\u5012\\u7740\\u8d70,\\u8fc7\\u66dd\\uff0c\")\n4. duration_seconds: float (default 2.1)\n5. steps: float (default 8)\n6. guidance_scale: float (default 1.0)\n7. guidance_scale_2: float (default 1.0)\n8. seed: float (default 42)\n9. randomize_seed: bool (default true)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "start_image_pil",
      "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": "end_image_pil",
      "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": true,
      "default": null
     },
     {
      "name": "negative_prompt",
      "schema": {
       "type": "string"
      },
      "required": false,
      "default": "\u8272\u8c03\u8273\u4e3d\uff0c\u8fc7\u66dd\uff0c\u9759\u6001\uff0c\u7ec6\u8282\u6a21\u7cca\u4e0d\u6e05\uff0c\u5b57\u5e55\uff0c\u98ce\u683c\uff0c\u4f5c\u54c1\uff0c\u753b\u4f5c\uff0c\u753b\u9762\uff0c\u9759\u6b62\uff0c\u6574\u4f53\u53d1\u7070\uff0c\u6700\u5dee\u8d28\u91cf\uff0c\u4f4e\u8d28\u91cf\uff0cJPEG\u538b\u7f29\u6b8b\u7559\uff0c\u4e11\u964b\u7684\uff0c\u6b8b\u7f3a\u7684\uff0c\u591a\u4f59\u7684\u624b\u6307\uff0c\u753b\u5f97\u4e0d\u597d\u7684\u624b\u90e8\uff0c\u753b\u5f97\u4e0d\u597d\u7684\u8138\u90e8\uff0c\u7578\u5f62\u7684\uff0c\u6bc1\u5bb9\u7684\uff0c\u5f62\u6001\u7578\u5f62\u7684\u80a2\u4f53\uff0c\u624b\u6307\u878d\u5408\uff0c\u9759\u6b62\u4e0d\u52a8\u7684\u753b\u9762\uff0c\u6742\u4e71\u7684\u80cc\u666f\uff0c\u4e09\u6761\u817f\uff0c\u80cc\u666f\u4eba\u5f88\u591a\uff0c\u5012\u7740\u8d70,\u8fc7\u66dd\uff0c"
     },
     {
      "name": "duration_seconds",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.5 and 5.1"
      },
      "required": false,
      "default": 2.1
     },
     {
      "name": "steps",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 30"
      },
      "required": false,
      "default": 8
     },
     {
      "name": "guidance_scale",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.0 and 10.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "name": "guidance_scale_2",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.0 and 10.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "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_first_last_frame_and_interpolation_commercial",
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "First/last frame and interpolation (commercial): Wan2.2 I2V 14B",
    "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_first_last_frame_and_interpolation_commercial_result",
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}