> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.labric.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.labric.co/_mcp/server.

# View an image or image region

GET https://platform.labric.co/api/v1/images/{file_id}/view

Look at an uploaded image file so you can describe, compare, or answer
questions about its content. Only works on image files the platform has
finished processing, which list_files reports with an
image_processing_status of completed. Select the user's Frame N with
frame_index=N-1. The default index 0 selects Frame 1.

With no region it shows the whole image, downscaled to fit. To zoom in,
pass a region in the original image's pixel coordinates: x and y are its
top-left corner, and width and height default to the rest of the image.
Smaller regions are shown at higher resolution, up to the original pixels.

Returns the view as a webp, which the X-Image-View response header
describes.

Requires an API key with the `read` scope.

Reference: https://docs.labric.co/api-reference/labric-api/images/view

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `file_id` (string, required)

### Query parameters

- `x` (integer, optional, default: 0)
- `y` (integer, optional, default: 0)
- `width` (integer, optional, nullable)
- `height` (integer, optional, nullable)
- `frame_index` (integer, optional, default: 0)

## Response

### 200

The view as a webp

- File download.

## Errors

### 400 Bad Request Error

Bad Request

- `detail` (string, required)

### 401 Unauthorized Error

Unauthorized

- `detail` (string, required)

### 403 Forbidden Error

Forbidden

- `detail` (string, required)

### 404 Not Found Error

Not Found

- `detail` (string, required)

### 422 Unprocessable Entity Error

Unprocessable Content

- `detail` (list of map from string to any, required)

### 500 Internal Server Error

Internal Server Error

- `detail` (string, required)

### 502 Bad Gateway Error

Bad Gateway

- `detail` (string, required)

## Examples

**SDK Code**

```python
import requests

url = "https://platform.labric.co/api/v1/images/file_id/view"

headers = {"Authorization": "Bearer <api_key>"}

response = requests.get(url, headers=headers)

print(response.json())
```