> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turbofiles.io/llms.txt
> Use this file to discover all available pages before exploring further.

# File Conversion

To convert files, set the `format.output` field to the MIME type of your desired output format.

For a complete list of available conversions, see **Supported File Formats** section.

<RequestExample>
  ```http theme={null}
  POST /tasks HTTP/1.1
  Accept: application/vnd.api+json
  Content-Type: application/vnd.api+json

  {
    "data": {
      "type": "tasks",
      "attributes": {
        "format": {
          "input": "image/png",
          "output": "image/avif"
        }
        "settings": {
          "optimize": True
        }
      },
      "relationships": {
        "input": {
          "data": {
            "type": "files",
            "id": "<string>"
          }
        }
      }
    }
  }
  ```
</RequestExample>
