---
title: "Render an image with a specific format"
method: GET
path: "/v1/image/{id}.{format}"
tags: ["Images"]
---

# Render an image with a specific format

`GET /v1/image/{id}.{format}`

## Path parameters

- `id` string, required
- `format` 'png' | 'jpg' | 'jpeg' | 'webp' | 'pdf', required

## Query parameters

- `width` integer, nullable
- `height` integer, nullable
- `dpi` integer, nullable
- `dl` '1' | '0', nullable
- `aspect_ratio` string, nullable
- `x_origin` string, nullable
- `y_origin` string, nullable
- `x_1` string, nullable
- `x_2` string, nullable
- `y_1` string, nullable
- `y_2` string, nullable
- `crop_width` string, nullable — Use either a number, a percentage like 30.5% or a px measure like 100px.
- `crop_height` string, nullable

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `408` — Request Timeout
- `410` — Gone
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.dev/htmlcsstoimage/apis/html-css-to-image-api.md) · [All operations](https://skmtc.dev/htmlcsstoimage/apis/html-css-to-image-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/htmlcsstoimage/html-css-to-image-api/revisions/07d679e7b124/schema)
