---
title: "Generate a placeholder image"
method: GET
path: "/image/{size}"
tags: ["Image"]
---

# Generate a placeholder image

`GET /image/{size}`

## Request

- Base URL: `https://dummyjson.com`
- URL: `https://dummyjson.com/image/{size}`
- Auth: none required

Optional path segments after size: /image/{size}/{background}/{color}/{type}. Query params `text` and `fontFamily` customize the overlay.

## Path parameters

- `size` string, required

## Query parameters

- `text` string
- `fontFamily` string

## Response `200`

Generated image bytes (or redirect to cached CDN URL)

---

[API](https://skmtc.dev/dummyjson/apis/dummyjson-api.md) - [All operations](https://skmtc.dev/dummyjson/apis/dummyjson-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dummyjson/apis/dummyjson-api/revisions/5e704f33a559?raw)
