Skip to content

Retrieve clone audio

Retrieve one unused uploaded file by `file_id`; free.

GET/v1/files/retrieve

Only returns files you uploaded that are still valid; files already used for a clone or older than 24 hours return 404.

Headers

Authorization:requiredstring

Bearer sk-…: an API key created in the console under API keys; its group must include the requested model

Query parameters

file_id:requiredinteger

File ID returned at upload

Range≥ 1

Returns

200File info

file:optionalobject

Uploaded file

base_resp:optionalobject

{"status_code": 0, "status_msg": "success"} on success; errors do not come here but as a non-200 status code with an error object

Errors

400file_id must be a positive integer
401Missing, invalid or expired API key (missing_api_key / invalid_api_key / api_key_expired)
404File does not exist, was already used, or has expired: file_id N does not exist
503file lookup is temporarily unavailable; please retry

Related