# Render any size from the API

> Use response.size to render a studio template at any size on demand — a preset slug or exact pixels

- **URL**: https://orshot.com/help/render-any-size-via-api

---

Designed your template with [Smart Resize](https://orshot.com/help/resize-elements-and-canvas)? The **API Usage** tab shows the exact request to render it at any size. Open Smart Resize in Studio and switch to **API Usage**:

![The API Usage tab in the Smart Resize panel](https://orshot.com/help/studio/smart-resize-7-api-usage.webp)

Add a **`size`** to your render's `response` object to **replace** the output size:```bash
curl -X POST "https://api.orshot.com/v1/studio/render" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "1227",
    "response": { "type": "url", "format": "png", "size": "instagram-story" }
  }'
````size` accepts a **preset slug** (`instagram-story`, `og-image`, `youtube-thumbnail`, …) or **`"WIDTHxHEIGHT"`** (e.g. `"1080x1920"`). One request returns one render at that size — and if you saved the size in Studio, it reproduces your tuned layout exactly.

## Related