---
title: "Generate Template Variants"
method: POST
path: "/studio/templates/{templateId}/generate-variants"
tags: ["Enterprise"]
---

# Generate Template Variants

`POST /studio/templates/{templateId}/generate-variants`

Generate multiple size variants of a template using AI

Available only to Enterprise-plan workspaces and first-party clients.

## Path parameters

- `templateId` string, required

## Query parameters

- `includeThumbnails` boolean

## Request body

- object
  - `variants` unknown[], required — Array of target dimensions for variants
    - unknown
  - `page_number` integer — Which page of the template to use as source
  - `output` string — Output mode: `"pages"` or `"templates"`

## Response `200`

Successful response

- object

## Other responses

- `401` — Missing or invalid authentication
- `429` — Rate limit exceeded — see the Retry-After header

---

[API](https://skmtc.net/orshot/apis/orshot-api.md) · [All operations](https://skmtc.net/orshot/apis/orshot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orshot/orshot-api/versions/48bd8562606c/schema)
