Method: projects.image.computePixels

Stay organized with collections Save and categorize content based on your preferences.

Computes a tile of pixels by performing an arbitrary computation on image data.

Requests are limited to 32MB in uncompressed data per request, computed as the product of the request dimensions in pixels, the number of image bands requested, and the number of bytes per pixel for each band. Requests are also limited to at most 10000 pixels in either dimension and at most 1024 bands. Requests exceeding these limits will result in an error code of 400 (BAD_REQUEST).

If successful, the response body contains the requested pixel data in the encoding specified in the fileFormat field of the request.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



The project id or project number of the Google Cloud Platform project that should be treated as the service consumer for this request. Format is projects/{project-id}.

Authorization requires the following IAM permission on the specified resource project:

  • earthengine.computations.create

Request body

The request body contains data with the following structure:

JSON representation
  "expression": {
    object (Expression)
  "fileFormat": enum (ImageFileFormat),
  "grid": {
    object (PixelGrid)
  "bandIds": [
  "visualizationOptions": {
    object (VisualizationOptions)
  "workloadTag": string

object (Expression)

The expression to compute.


enum (ImageFileFormat)

The output file format in which to return the pixel values.


object (PixelGrid)

Parameters describing how the image computed by expression should be reprojected and clipped. If not present, the full computed image is returned in its native projection.



If present, specifies a specific set of bands that will be selected from the result of evaluating expression. If not present, all bands resulting from expression will be selected.


object (VisualizationOptions)

If present, a set of visualization options to apply to produce an 8-bit RGB visualization of the data.



User supplied tag to track this computation.

Response body

If successful, the response is a generic HTTP response whose format is defined by the method.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.