[{"data":1,"prerenderedAt":112},["ShallowReactive",2],{"reference-detail-zh-delete_voice_api_v1_voice_delete":3,"developer-code-g741x3":110,"developer-code-1wdzc54":111},{"tag":4,"sourceTag":4,"tagSlug":5,"method":6,"path":7,"slug":8,"summary":9,"description":10,"operationId":11,"groupOrder":12,"descriptionHtml":13,"parameters":14,"responses":27,"security":97,"codeSamples":100},"Voices","voices","DELETE","\u002Fapi\u002Fv1\u002Fvoice","delete-voice","删除声音","通过 `voice_id` 删除克隆声音。只能删除自己创建的声音。\n\nAgent 安全要求：仅在用户明确要求删除，并在调用此破坏性操作前再次确认后，才能执行。","delete_voice_api_v1_voice_delete",30,"\u003Cp>通过 \u003Ccode>voice_id\u003C\u002Fcode> 删除克隆声音。只能删除自己创建的声音。\u003C\u002Fp>\u003Cp>Agent 安全要求：仅在用户明确要求删除，并在调用此破坏性操作前再次确认后，才能执行。\u003C\u002Fp>",[15,22],{"name":16,"in":17,"required":18,"description":19,"type":20,"example":21},"X-API-Key","header",true,"你的 VisionStory API Key（`sk-vs-...`），请仅保存在服务端。可在 [API Key 管理](\u002Fapi-keys) 中创建或管理，需要 Pro 或更高方案。","string","sk-vs-your-api-key",{"name":23,"in":24,"required":18,"description":25,"type":20,"example":26},"voice_id","query","要删除的克隆声音 ID，来自 POST \u002Fapi\u002Fv1\u002Fvoice，或 GET \u002Fapi\u002Fv1\u002Fvoices 返回的 `my_voices` 列表。只能删除自己创建的声音。","voice_123456",[28,66],{"status":29,"description":30,"contentType":31,"schema":32,"example":57,"examples":60,"headers":65},"200","请求成功","application\u002Fjson",{"type":33,"description":34,"nullable":35,"properties":36},"BaseSuccessResponse_DeleteResponse_","",false,[37,47,52],{"name":38,"required":18,"type":39,"description":40,"nullable":18,"properties":41},"data","DeleteResponse | null","DELETE 接口（avatar \u002F voice \u002F video \u002F ai_video \u002F asset）的通用响应体。",[42],{"name":43,"required":35,"type":44,"description":45,"nullable":35,"default":18,"properties":46},"deleted","boolean","请求成功时始终为 `true`，表示资源已移除，不再出现在列表接口中。删除操作具有幂等性：再次删除已移除的资源仍返回 `true`。",[],{"name":48,"required":35,"type":20,"description":49,"nullable":35,"default":50,"properties":51},"message","便于阅读的状态消息；调用成功时为 `\"success\"`。","success",[],{"name":53,"required":18,"type":54,"description":55,"nullable":35,"properties":56},"server_time","string · date-time","服务端生成响应时的时间戳，使用 ISO 8601 格式（UTC）。",[],{"data":58,"message":50,"server_time":59},{"deleted":18},"2026-09-04T00:00:00Z",[61],{"name":50,"description":62,"summary":30,"value":63},"示例仅用于说明响应结构，不代表实时账户数据或实际报价。ID 和 URL 均为占位内容。请调用模型查询及费用估算接口，获取当前可用模型和价格。",{"data":64,"message":50,"server_time":59},{"deleted":18},[],{"status":67,"description":68,"contentType":31,"schema":69,"example":93,"headers":96},"default","错误响应。所有失败均使用统一结构：`error` 对象包含数字错误码 `code`、便于阅读的 `message`、可选的 `details` 字符串，以及提供后续处理建议的可选 `hint`（便于 AI Agent 使用）。",{"type":70,"description":34,"nullable":35,"properties":71},"ErrorResponse",[72],{"name":73,"required":18,"type":74,"description":34,"nullable":35,"properties":75},"error","ErrorDetail",[76,81,86,90],{"name":77,"required":18,"type":78,"description":79,"nullable":35,"properties":80},"code","integer","机器可读的错误码。传输层失败时对应 HTTP 状态码（例如 401、404、422、500），其他情况可能使用业务专用错误码。",[],{"name":82,"required":35,"type":83,"description":84,"nullable":18,"properties":85},"details","string | null","可选的结构化错误详情，例如 422 响应中逐字段校验错误的 JSON 字符串。无补充信息时不返回。",[],{"name":87,"required":35,"type":83,"description":88,"nullable":18,"properties":89},"hint","供用户和 AI Agent 参考的错误处理建议，例如如何修正请求或在哪里获取 API Key。可能不返回此字段。",[],{"name":48,"required":18,"type":20,"description":91,"nullable":35,"properties":92},"便于阅读的错误原因说明，可安全记录到日志或展示给最终用户；此返回值未本地化。",[],{"error":94},{"code":95,"message":20,"details":20,"hint":20},1,[],[98],{"APIKeyHeader":99},[],[101,104,107],{"lang":102,"source":103},"SDK","from visionstory import VisionStoryClient\n\nclient = VisionStoryClient.from_env()\nresult = client.delete_voice(\"voice_123456\")\nprint(result)",{"lang":105,"source":106},"REST","import os\nimport requests\n\nheaders = {\"X-API-Key\": os.environ[\"VISIONSTORY_API_KEY\"]}\nrequests.delete(\n    'https:\u002F\u002Fopenapi.visionstory.ai\u002Fapi\u002Fv1\u002Fvoice?voice_id=xxxx', headers=headers\n)",{"lang":108,"source":109},"cURL","curl -X 'DELETE' \\\n      'https:\u002F\u002Fopenapi.visionstory.ai\u002Fapi\u002Fv1\u002Fvoice?voice_id=xxxx' \\\n      -H 'accept: application\u002Fjson' \\\n      -H 'X-API-Key: $VISIONSTORY_API_KEY'","\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#FF7B72\">from\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> visionstory \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">import\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> VisionStoryClient\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">client \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> VisionStoryClient.from_env()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">result \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> client.delete_voice(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"voice_123456\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#79C0FF\">print\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(result)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">  \"data\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"deleted\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">true\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">  },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">  \"message\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"success\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">  \"server_time\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"2026-09-04T00:00:00Z\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",1788547144484]