API references/Files
Convert documents
document.any.convertConvert a supported input format to the selected output format.
Unit price$0.06 / 1 request
Try in the consoleRequest parameters
| Parameter | Type | Description |
|---|---|---|
input_formatRequired | string | docx docxDefault: "docx" |
output_formatRequired | string | pdfDefault: "pdf" |
urlRequired | string | Public source file HTTPS URL Minimum length: 1Up to 4096 characters |
Response data
Business data is in execution.result.data. Executions also include status, final cost and an Anyuse request ID.
| Parameter | Type | Description |
|---|---|---|
files | array | Output files. Each item has url and kind; download url with the same Bearer credential. Links can expire. |
files[].kindRequired | string | files[].kind |
files[].urlRequired | string | files[].url |
files[].content_type | string | files[].content_type |
files[].duration | number | string | files[].duration |
files[].duration_seconds | number | string | files[].duration_seconds |
files[].file_size | number | string | files[].file_size |
files[].filename | string | files[].filename |
files[].height | number | string | files[].height |
files[].size | number | string | files[].size |
files[].width | number | string | files[].width |
Execution states and recovery
Submission returns a task ID. Query the execution for the final result. Polling of submitted upstream tasks resumes after a service restart.