{"openapi":"3.0.3","info":{"title":"jisu API","version":"0.1.0","description":"CNY pricing, asynchronous tasks and archived resources. Availability comes from /v1/models. Payment recharge is not enabled."},"servers":[{"url":"https://api.jisu.fun"}],"components":{"securitySchemes":{"UploadToken":{"type":"apiKey","in":"header","name":"X-Upload-Token","description":"Short-lived credential from uploads/prepare, restricted to the declared file"},"APIKey":{"type":"http","scheme":"bearer","bearerFormat":"jisu API Key"},"OAuth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://api.jisu.fun/authorize","tokenUrl":"https://api.jisu.fun/token","refreshUrl":"https://api.jisu.fun/token","scopes":{"read":"Read account, models, quotes and resources","create":"Create paid tasks and manage assets"}}}}}},"paths":{"/v1/models":{"get":{"summary":"List public models and live CNY prices","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["data"],"additionalProperties":true}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/models/{id}":{"get":{"summary":"Get model input schema and prices","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/capabilities":{"get":{"summary":"List published capabilities","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}}},"required":["data"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/prices":{"get":{"summary":"List published CNY prices","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["data"],"additionalProperties":true}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/quotes":{"post":{"summary":"Quote a task without reserving funds","security":[{"APIKey":[]},{"OAuth":["read"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":150},"capability":{"type":"string","minLength":1,"maxLength":100},"input":{"type":"object","additionalProperties":{}},"options":{"type":"object","additionalProperties":{},"default":{}},"currency":{"type":"string","enum":["CNY"],"default":"CNY"}},"required":["model","capability","input"],"additionalProperties":false}}}},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"quote_id":{"type":"string"},"model":{"type":"string"},"resolved_model":{"type":"string"},"currency":{"type":"string","enum":["CNY"]},"pricing_mode":{"type":"string","enum":["fixed"]},"price_version":{"type":"string"},"estimated_amount":{"type":"string","pattern":"^\\d+\\.\\d{6}$"},"max_amount":{"type":"string","pattern":"^\\d+\\.\\d{6}$"},"quantity":{"type":"integer","exclusiveMinimum":true,"minimum":0},"unit":{"type":"string"},"unit_price":{"type":"string","pattern":"^\\d+\\.\\d{6}$"},"expires_at":{"type":"string","format":"date-time"}},"required":["quote_id","model","resolved_model","currency","pricing_mode","price_version","estimated_amount","max_amount","quantity","unit","unit_price","expires_at"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/tasks":{"post":{"summary":"Accept a quote and reserve its maximum CNY amount","security":[{"APIKey":[]},{"OAuth":["create"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quote_id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1,"maxLength":200}},"required":["quote_id"],"additionalProperties":false}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":150},"description":"Reuse for retries of the same intended task and request body."}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"summary":"List owned tasks","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":30}},{"name":"q","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":200}]}},{"name":"status","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":40}]}},{"name":"modality","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":40}]}},{"name":"settlement_status","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":40}]}},{"name":"connection_id","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":100}]}},{"name":"created_from","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","format":"date-time"}],"description":"Inclusive creation timestamp with timezone"}},{"name":"created_before","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","format":"date-time"}],"description":"Exclusive creation timestamp with timezone"}},{"name":"min_amount","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","pattern":"^\\d{1,9}(\\.\\d{1,6})?$"}],"description":"Minimum net charged CNY amount, inclusive; excludes unsettled tasks"}},{"name":"max_amount","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","pattern":"^\\d{1,9}(\\.\\d{1,6})?$"}],"description":"Maximum net charged CNY amount, inclusive; excludes unsettled tasks"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["data"],"additionalProperties":true}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/tasks/{id}":{"get":{"summary":"Get task, archived assets and CNY billing","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/tasks/{id}/cancel":{"post":{"summary":"Cancel locally or request supported provider cancellation; no release until confirmed","security":[{"APIKey":[]},{"OAuth":["create"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string"},"status":{"type":"string","description":"Only canceled confirms cancellation; all other states follow normal task processing"},"cancellation":{"type":"object","properties":{"status":{"type":"string","enum":["none","requested","checking","refused","unconfirmed","confirmed","not_needed"]},"requested_at":{"type":"string","format":"date-time","nullable":true},"error_code":{"type":"string","nullable":true}},"required":["status","requested_at","error_code"],"additionalProperties":false}},"required":["task_id","status","cancellation"],"additionalProperties":true}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"202":{"description":"Cancellation requested or checking; keep querying the original task. Funds remain reserved.","content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string"},"status":{"type":"string","description":"Only canceled confirms cancellation; all other states follow normal task processing"},"cancellation":{"type":"object","properties":{"status":{"type":"string","enum":["none","requested","checking","refused","unconfirmed","confirmed","not_needed"]},"requested_at":{"type":"string","format":"date-time","nullable":true},"error_code":{"type":"string","nullable":true}},"required":["status","requested_at","error_code"],"additionalProperties":false}},"required":["task_id","status","cancellation"],"additionalProperties":true}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/wallet":{"get":{"summary":"Get precise CNY balances","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string","enum":["CNY"]},"balance":{"type":"string","pattern":"^\\d+\\.\\d{6}$"},"reserved":{"type":"string","pattern":"^\\d+\\.\\d{6}$"},"available":{"type":"string","pattern":"^\\d+\\.\\d{6}$"}},"required":["currency","balance","reserved","available"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing":{"get":{"summary":"Filter and paginate owned task bills","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":30}},{"name":"q","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":200}]}},{"name":"status","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":40}]}},{"name":"modality","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":40}]}},{"name":"settlement_status","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":40}]}},{"name":"connection_id","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","maxLength":100}]}},{"name":"created_from","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","format":"date-time"}],"description":"Inclusive creation timestamp with timezone"}},{"name":"created_before","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","format":"date-time"}],"description":"Exclusive creation timestamp with timezone"}},{"name":"min_amount","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","pattern":"^\\d{1,9}(\\.\\d{1,6})?$"}],"description":"Minimum net charged CNY amount, inclusive; excludes unsettled tasks"}},{"name":"max_amount","in":"query","schema":{"anyOf":[{"not":{}},{"type":"string","pattern":"^\\d{1,9}(\\.\\d{1,6})?$"}],"description":"Maximum net charged CNY amount, inclusive; excludes unsettled tasks"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["data"],"additionalProperties":true}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/uploads":{"post":{"summary":"Upload raw media bytes, up to 64 MiB","security":[{"APIKey":[]},{"OAuth":["create"]}],"parameters":[{"name":"X-Filename","in":"header","required":true,"schema":{"type":"string"},"description":"URL-encoded filename"}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"video/mp4":{"schema":{"type":"string","format":"binary"}},"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"string","format":"binary"}},"text/plain":{"schema":{"type":"string","format":"binary"}}}}}},"/v1/uploads/import":{"post":{"summary":"Archive a public HTTPS asset","security":[{"APIKey":[]},{"OAuth":["create"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["url","name"],"additionalProperties":false}}}},"parameters":[],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/uploads/prepare":{"post":{"summary":"Prepare an idempotent upload with declared size, MIME and SHA-256","security":[{"APIKey":[]},{"OAuth":["create"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"mime":{"type":"string","minLength":1,"maxLength":100},"size":{"type":"integer","minimum":1,"maximum":67108864},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"SHA-256 of the complete file bytes, lowercase hex"},"idempotency_key":{"type":"string","minLength":8,"maxLength":150}},"required":["name","mime","size","checksum","idempotency_key"],"additionalProperties":false}}}},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string"},"status":{"type":"string","enum":["prepared","uploading","uploaded","completed","expired"]},"name":{"type":"string"},"mime":{"type":"string"},"size":{"type":"number"},"checksum":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"asset_id":{"type":"string","nullable":true},"error_code":{"type":"string","nullable":true},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["url","method","headers"],"additionalProperties":false},"asset":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true}},"required":["upload_id","status","name","mime","size","checksum","expires_at","asset_id","error_code"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/uploads/{id}":{"get":{"summary":"Read owned upload state without exposing its upload credential","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string"},"status":{"type":"string","enum":["prepared","uploading","uploaded","completed","expired"]},"name":{"type":"string"},"mime":{"type":"string"},"size":{"type":"number"},"checksum":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"asset_id":{"type":"string","nullable":true},"error_code":{"type":"string","nullable":true},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["url","method","headers"],"additionalProperties":false},"asset":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true}},"required":["upload_id","status","name","mime","size","checksum","expires_at","asset_id","error_code"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/uploads/{id}/content":{"put":{"summary":"Write the exact prepared file; not yet a registered asset","security":[{"UploadToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string"},"status":{"type":"string","enum":["prepared","uploading","uploaded","completed","expired"]},"name":{"type":"string"},"mime":{"type":"string"},"size":{"type":"number"},"checksum":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"asset_id":{"type":"string","nullable":true},"error_code":{"type":"string","nullable":true},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["url","method","headers"],"additionalProperties":false},"asset":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true}},"required":["upload_id","status","name","mime","size","checksum","expires_at","asset_id","error_code"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}},"requestBody":{"required":true,"description":"Raw bytes; Content-Type must equal the MIME returned by prepare. Use the returned X-Upload-Token header.","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}}}},"/v1/uploads/{id}/complete":{"post":{"summary":"Verify stored content and register exactly one stable asset","security":[{"APIKey":[]},{"OAuth":["create"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string"},"status":{"type":"string","enum":["prepared","uploading","uploaded","completed","expired"]},"name":{"type":"string"},"mime":{"type":"string"},"size":{"type":"number"},"checksum":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"asset_id":{"type":"string","nullable":true},"error_code":{"type":"string","nullable":true},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["url","method","headers"],"additionalProperties":false},"asset":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true}},"required":["upload_id","status","name","mime","size","checksum","expires_at","asset_id","error_code"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/assets/{id}":{"get":{"summary":"Get metadata, fresh url, download_url and download_name (links valid for one hour)","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"summary":"Invalidate a resource not in use by active tasks and queue durable file cleanup; repeatable","security":[{"APIKey":[]},{"OAuth":["create"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/voices":{"get":{"summary":"List owned voices","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["data"],"additionalProperties":true}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/voices/{id}":{"get":{"summary":"Get an owned voice and deletion state","security":[{"APIKey":[]},{"OAuth":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"summary":"Queue deletion of an owned voice not in use","security":[{"APIKey":[]},{"OAuth":["create"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"default":{"description":"Request error; no secrets or supplier cost data are returned","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}}}