---
title: "Image By Query"
method: GET
path: "/"
---

# Image By Query

`GET /`

## Query parameters

- `w` integer, nullable — 输出宽度，1-8192
- `h` integer, nullable — 输出高度，1-8192
- `width` integer, nullable — 输出宽度，1-8192
- `height` integer, nullable — 输出高度，1-8192
- `source` string — 图片源 key 或完整 URL
- `fit` 'cover' | 'contain' | 'scale-down' | 'crop' | 'pad' — cover/contain/scale-down/crop/pad
- `quality` integer — JPG 质量，1-100
- `cache` integer — 内存缓存秒数，0 表示禁用

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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