---
title: "Processes a file and returns the result."
method: GET
path: "/{accountId}/{transformation}{filePath}"
tags: ["File"]
---

# Processes a file and returns the result.

`GET /{accountId}/{transformation}{filePath}`

Processes a file and returns the result.

## Path parameters

- `accountId` string, required — Your account ID. This is visible on the settings page: https://www.bytescale.com/dashboard/settings
- `filePath` string, required — Absolute path to a file. Begins with a `/`.
- `transformation` string, required — The name of the File Processing API (e.g. `image`, `video`, `audio`) or transformation preset (created in the Bytescale Dashboard) to use when processing the file.

## Query parameters

- `<transformation-params>` union — Transformation parameters provided to a Bytescale File Processing API. *Array support:* Arrays are specified by repeating the same parameter name multiple times on the querystring. For example, the following querystring declares a `file` parameter as an array containing two values (`/file1.txt` and `/file2.txt`): ```?file=/file1.txt&file=/file2.txt``` The Bytescale SDKs and the ProcessFileAndSave request body (the `extendedParams` field) also support arrays of transformation parameters. These are specified by providing an array of objects as the field value instead of an object, for example: ```transformationParams: [{ file: "/file1.txt" }, { file: "/file2.txt" }]``` This structure allows parameter groups to be retained, which is important for certain transformations. For example, the Video Processing API allows developers to specify multiple clusters of `w`, `h` and `q` parameters when specifying the Adaptive Bitrate (ABR) variants in an HTTP Live Streaming (HLS) output video. *Parameters are order sensitive:* The order of the parameters may be important. Please refer to the documentation of each File Processing API for more information. *Maximum URL length:* Bytescale URLs have a maximum total length of 1000 bytes (excluding the hostname and protocol). To provide a longer parameter list to a Bytescale File Processing API, you must use ProcessFileAndSave (POST) instead of ProcessFile (GET). This allows you to specify parameters via the ProcessFileAndSave HTTP request body (via the `extendedParams` field). The `extendedParams` field supports up to 400KB of transformation parameter data.
  - TransformationParamsGroup — A single group of transformation parameters provided to a Bytescale File Processing API. See TransformationParams for more information.
  - TransformationParamsGroup[]
- `artifact` string — Path to an artifact generated by the transformation. All image transformations output the transformed image to the `"/"` artifact. Video transformations may output multiple artifacts. Default: "/"
- `cache` boolean
- `cache-only` boolean
- `cache-perm` 'auto' | 'false' | 'true'
- `cache-ttl` number
- `cache-ttl-404` number
- `exp` union
  - number
  - 'inf'
- `version` string

## Response `200`

Success.

---

[API](https://skmtc.dev/bytescale/apis/bytescale-api.md) · [All operations](https://skmtc.dev/bytescale/apis/bytescale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bytescale/bytescale-api/revisions/d63ecdd9ae9c/schema)
