{
 "openapi": "3.0.3",
 "info": {
  "title": "Voice conversion (default): Seed-VC v2 / v1",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space Plachta/Seed-VC; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://plachta-seed-vc.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Speech and voice",
  "slot": "Voice conversion",
  "need": "Re-voice a recording while keeping its timing and delivery.",
  "role": "default",
  "space": "Plachta/Seed-VC",
  "space_url": "https://huggingface.co/spaces/Plachta/Seed-VC",
  "model": "Seed-VC v2 / v1",
  "license": "GPL-3.0",
  "license_class": "open",
  "gpu_seconds_booked": "60",
  "notes": "The most established zero-shot converter, for speech, style and singing.",
  "caveats": "A generator endpoint, and not updated since April 2025.",
  "lineup_call": "/predict(source_audio_path, target_audio_path, diffusion_steps=30, similarity_cfg_rate=0.7, convert_style=false) \u2192 audio (take the last output)\n/predict_1(\u2026, f0_condition=true (default false), diffusion_steps=10, pitch_shift=0) \u2192 singing conversion",
  "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/predict": {
   "post": {
    "description": "Re-voice a recording while keeping its timing and delivery. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/predict/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/Plachta/Seed-VC. License: GPL-3.0. Caveats: A generator endpoint, and not updated since April 2025. \n\nUpstream description: \nReturns, in order: Stream Output Audio / \u6d41\u5f0f\u8f93\u51fa: filepath; Full Output Audio / \u5b8c\u6574\u8f93\u51fa: filepath",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 2,
          "maxItems": 11,
          "items": {},
          "description": "Positional inputs, in this order:\n0. source_audio_path: filepath (required)\n1. target_audio_path: filepath (required)\n2. diffusion_steps: float (default 30)\n3. length_adjust: float (default 1.0)\n4. intelligebility_cfg_rate: float (default 0.0)\n5. similarity_cfg_rate: float (default 0.7)\n6. top_p: float (default 0.9)\n7. temperature: float (default 1.0)\n8. repetition_penalty: float (default 1.0)\n9. convert_style: bool (default false)\n10. anonymization_only: bool (default false)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "source_audio_path",
      "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": "target_audio_path",
      "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": "diffusion_steps",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 200"
      },
      "required": false,
      "default": 30
     },
     {
      "name": "length_adjust",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.5 and 2.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "name": "intelligebility_cfg_rate",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.0 and 1.0"
      },
      "required": false,
      "default": 0.0
     },
     {
      "name": "similarity_cfg_rate",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.0 and 1.0"
      },
      "required": false,
      "default": 0.7
     },
     {
      "name": "top_p",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.1 and 1.0"
      },
      "required": false,
      "default": 0.9
     },
     {
      "name": "temperature",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.1 and 2.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "name": "repetition_penalty",
      "schema": {
       "type": "number",
       "description": "numeric value between 1.0 and 3.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "name": "convert_style",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": false
     },
     {
      "name": "anonymization_only",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": false
     }
    ],
    "operationId": "speech_voice_conversion",
    "tags": [
     "Speech and voice"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Voice conversion (default): Seed-VC v2 / v1",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/predict/{event_id}": {
   "get": {
    "summary": "Read the result stream for /predict",
    "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": "speech_voice_conversion_result",
    "tags": [
     "Speech and voice"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}