format.output field to the MIME type of your desired output format.
For a complete list of available conversions, see Supported File Formats section.
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>"
}
}
}
}
}
Operations
File Conversion
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>"
}
}
}
}
}
To convert files, set the