---
title: Quickstart
description: Generate your first Pixmato render with a template ID, API key, and JSON modifications.
icon: zap
---

This quickstart generates one render from a template.

## Prerequisites

- A Pixmato workspace.
- An API key from **API keys** in the dashboard.
- A template ID from **Templates**.
- At least one layer exposed as a parameter in the template’s **API** tab.

## JavaScript or TypeScript

Call the API from your server or a background job using built-in `fetch`. No SDK is required.

```ts
const response = await fetch('https://api.pixmato.com/v1/renders', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PIXMATO_API_KEY!}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    template: 'YOUR_TEMPLATE_ID',
    modifications: {
      headline: 'Version 2 is live',
      hero: 'https://cdn.example.com/product.png',
      'accent.color': '#393939',
    },
    output: { format: 'png', scale: 2 },
  }),
})

const result = await response.json()
if (!response.ok) throw new Error(result.error ?? `Render request failed: ${response.status}`)
console.log(result.output_url)
```

Replace the template ID and modification keys with values from your template's API tab.

## HTTP Request

```bash
curl -X POST "https://api.pixmato.com/v1/renders" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "YOUR_TEMPLATE_ID",
    "modifications": {
      "headline": "Version 2 is live",
      "hero": "https://cdn.example.com/product.png",
      "accent.color": "#e85d45"
    },
    "output": {
      "format": "png",
      "scale": 2
    }
  }'
```

## Response

```json
{
  "id": "rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G",
  "status": "completed",
  "output_url": "https://storage.pixmato.com/workspaces/ws_01JY7R8Q7S2K3B4A5C6D7E8F9G/renders/rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G.png",
  "duration_ms": 842,
  "template": "YOUR_TEMPLATE_ID"
}
```

## Next steps

- Use [HTTP Clients](/docs/http-clients) for JavaScript and file-upload examples.
- Use [Create Render](/docs/api-reference/renders/create) for the full request shape.
- Use [Parameters and Modifications](/docs/templates/parameters) when mapping template layers.
