# Placeholder image generator

Make an SVG placeholder image of any size with a centred label, for mock-ups and layouts.

- Endpoint: `POST https://setget.net/v1/tools/placeholder-image` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `placeholder-image`
- Page: https://setget.net/tools/placeholder-image

## Inputs

- `width` (optional, integer, default `600`, range 1..4000): Width in pixels.
- `height` (optional, integer, default `400`, range 1..4000): Height in pixels.
- `label` (optional, string): Text to show. Defaults to the size, such as 600×400.
- `background` (optional, string, default `"#e2e8f0"`): Background colour: hex or a basic colour name.
- `text_colour` (optional, string, default `"#64748b"`): Label colour: hex or a basic colour name.

## Example 1

```json
{"input":{"width":120,"height":60}}
```

Result:

```json
{"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"120\" height=\"60\" viewBox=\"0 0 120 60\"><rect width=\"120\" height=\"60\" fill=\"#e2e8f0\"/><text x=\"60\" y=\"38.4\" font-family=\"Helvetica,Arial,sans-serif\" font-size=\"24\" font-weight=\"bold\" text-anchor=\"middle\" fill=\"#64748b\">120×60</text></svg>","width":120,"height":60}
```

## Example 2: A custom label and colours

```json
{"input":{"width":800,"height":200,"label":"Hero banner","background":"#1e293b","text_colour":"#f8fafc"}}
```

**Can I use it as an img source?** Yes. Save the SVG as a file, or call the API URL and use the "svg" value. SVG stays sharp at any size.
