{
 "openapi": "3.0.3",
 "info": {
  "title": "Image-to-video (default): MiniMax-H3 (NVFP4)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space mrfakename/minimax-h3-ultra-fast; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://mrfakename-minimax-h3-ultra-fast.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Video",
  "slot": "Image-to-video",
  "need": "Animate a still: a product shot, a generated frame or a photo.",
  "role": "default",
  "space": "mrfakename/minimax-h3-ultra-fast",
  "space_url": "https://huggingface.co/spaces/mrfakename/minimax-h3-ultra-fast",
  "model": "MiniMax-H3 (NVFP4)",
  "license": "MiniMax-H3 Community (excludes EU, UK, KR, US; authorization above $20M revenue)",
  "license_class": "cond",
  "gpu_seconds_booked": "\u2248105",
  "notes": "Same endpoint as text-to-video, plus an image. Adds about 1 s of booking.",
  "caveats": "",
  "lineup_call": "/generate(prompt, image_path=<still>, duration=5, generation_preset=\"Turbo 8-step\u2026\") \u2192 video with audio",
  "api_style": "v2",
  "mcp_url": "https://mrfakename-minimax-h3-ultra-fast.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/v2/generate": {
   "post": {
    "summary": "Image-to-video (default): MiniMax-H3 (NVFP4)",
    "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/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/mrfakename/minimax-h3-ultra-fast. License: MiniMax-H3 Community (excludes EU, UK, KR, US; authorization above $20M revenue). \n\nUpstream description: Queued generation endpoint used by both the React studio and ordinary gradio_client callers.Output must be fetched from GET /gradio_api/call/generate/{event_id}. Returns an array of 1 elements of the following format: ['output ({})']",
    "operationId": "video_image_to_video",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "prompt": {
          "type": "string"
         },
         "image_path": {
          "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"
              ]
             }
            }
           }
          },
          "nullable": true
         },
         "last_image_path": {
          "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"
              ]
             }
            }
           }
          },
          "nullable": true
         },
         "canvas": {
          "type": "string"
         },
         "duration": {
          "type": "number"
         },
         "steps": {
          "type": "integer"
         },
         "seed": {
          "type": "number"
         },
         "upsample": {
          "type": "boolean"
         },
         "acceleration": {
          "type": "string"
         },
         "lora_preset": {
          "type": "string"
         },
         "lora_repo": {
          "type": "string"
         },
         "lora_filename": {
          "type": "string"
         },
         "lora_strength": {
          "type": "number"
         },
         "generation_preset": {
          "type": "string"
         },
         "references": {
          "type": "array",
          "items": {
           "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"
               ]
              }
             }
            }
           }
          },
          "nullable": true
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    },
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  },
  "/gradio_api/call/generate/{event_id}": {
   "get": {
    "summary": "Fetch results for /generate",
    "description": "Returns a stream of server-sent events (SSE). The final event has `event: complete` with `data` containing a JSON array of outputs.",
    "operationId": "video_image_to_video_result",
    "parameters": [
     {
      "name": "event_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "The event_id returned by the POST request"
     }
    ],
    "responses": {
     "200": {
      "description": "SSE stream with event: complete containing a JSON array of outputs",
      "content": {
       "text/event-stream": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    },
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  },
  "/gradio_api/upload": {
   "post": {
    "summary": "Upload File",
    "operationId": "video_image_to_video_upload",
    "parameters": [
     {
      "name": "upload_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "nullable": true,
       "default": null
      },
      "description": "Optional ID to track upload progress"
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "files": {
          "type": "array",
          "items": {
           "type": "string",
           "format": "binary"
          },
          "description": "One or more files to upload"
         }
        },
        "required": [
         "files"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "List of file paths where the uploaded files were saved",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid content type or invalid file name",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "413": {
      "description": "File exceeds maximum allowed size",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    },
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}