---
title: "Re-render a generation"
description: "Changes the content, appearance, palette, font, design options, or export without calling the model; costs no credit. Each given field replaces the stored one."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.svgdiagram.ai/llms.txt
> Use this file to discover all available pages before exploring further.

Path: svgdiagram API › Generations

`POST /rest/v1/generations/{id}/render`

Changes the content, appearance, palette, font, design options, or export without calling the model; costs no credit. Each given field replaces the stored one.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `postRestV1GenerationsByIdRender.path.id` (string, required)

## Code samples

### cURL

```curl
curl --request POST \
  --url 'https://svgdiagram.ai/rest/v1/generations/<id>/render' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://svgdiagram.ai/rest/v1/generations/<id>/render';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://svgdiagram.ai/rest/v1/generations/<id>/render"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

Re-rendered generation

#### Example

```json
{}
```

### 400

Invalid parameters, options, or export

#### Example

```json
{}
```

### 404

Generation not found

#### Example

```json
{}
```


Source: https://docs.svgdiagram.ai/api/Generations/postRestV1GenerationsByIdRender/index.md
