{
 "openapi": "3.0.3",
 "info": {
  "title": "Text-to-video with audio (default): MiniMax-H3 (NVFP4, in-Space text conditioner)",
  "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": "Text-to-video with audio",
  "need": "Make a short clip with a matching soundtrack from a prompt.",
  "role": "default",
  "space": "mrfakename/minimax-h3-ultra-fast",
  "space_url": "https://huggingface.co/spaces/mrfakename/minimax-h3-ultra-fast",
  "model": "MiniMax-H3 (NVFP4, in-Space text conditioner)",
  "license": "MiniMax-H3 Community (excludes EU, UK, KR, US; authorization above $20M revenue)",
  "license_class": "cond",
  "gpu_seconds_booked": "89\u2013247",
  "notes": "One stateless endpoint covers text, image, first/last-frame and reference-to-video with synchronized audio. It doesn't depend on an extra conditioner Space.",
  "caveats": "The default preset is the 28-step one (about 172 s on xlarge), so pass the Turbo 8-step preset (about 104 s). Community-maintained.",
  "lineup_call": "/generate(prompt, image_path=None, last_image_path=None, canvas=\"960x544 \u00b7 16:9 fast\", duration=5 (2\u201314), generation_preset=\"Turbo 8-step\u2026\", seed, \u2026) \u2192 video, prompt, report\n/stitch(clips=[\u2026]) \u2192 joined video",
  "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": "Text-to-video with audio (default): MiniMax-H3 (NVFP4, in-Space text conditioner)",
    "description": "Make a short clip with a matching soundtrack from a prompt. 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). Caveats: The default preset is the 28-step one (about 172 s on xlarge), so pass the Turbo 8-step preset (about 104 s). Community-maintained. \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_text_to_video_with_audio",
    "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_text_to_video_with_audio_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_text_to_video_with_audio_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": []
     },
     {}
    ]
   }
  }
 }
}