---
name: "image_info"
area: "images"
title: "Read an image's details"
price: "free"
method: "POST"
url: "https://api.conecto.chat/v1/tools/image_info"
mcp_server: "https://api.conecto.chat/mcp/images"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/images/image_info"
---

# Read an image's details (`image_info`)

An image's width, height, format and size, and whether it has transparency.

Width, height, format and whether it has transparency.

Price: Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads. A call that fails costs nothing.

## Use it when

Before an image goes somewhere with size rules: a logo, a social post, a product page.

## Say this to your agent

> Is the new logo file big enough for the invoices, and does it have a transparent background?

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `file_id` | string | yes | An image in the file store. Exactly 36 characters. |  |  |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `image_info` on the MCP server `https://api.conecto.chat/mcp/images` with these arguments:

```json
{
  "file_id": "3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/image_info \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id": "3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "image_info",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.00",
  "balance_usd": "$19.75",
  "result": {
    "file_id": "3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d",
    "width": 1200,
    "height": 400,
    "format": "png",
    "mode": "RGBA",
    "transparent": true,
    "size": "1.9 KB"
  }
}
```

`result`: The file_id, width, height, format, mode, transparent and size.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No file in the store has that file_id. | Find it with files_list. |
| `not_image` | 400 | The file is not an image that can be read (PNG, JPEG, WebP, AVIF, GIF, BMP or TIFF). | Upload the image again in one of those formats. |
| `too_large` | 413 | The image is over 40 megapixels. | Ask for a smaller copy of it. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [image_transform](https://conecto.chat/tools/images/image_transform.md): A new image from one in the store: resized or cropped, converted to WebP, AVIF, JPEG or PNG and compressed, with GPS data removed. $0.005 a call.
