> For the complete documentation index, see [llms.txt](https://developer.topazlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.topazlabs.com/video-models/upscaling-and-enhancement/creative/astra-2.md).

# Astra 2

Enhanced creative upscaling for GenAI video with advanced control over detail and style.

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center">Click to view</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FYNF6oN4TP7jjpzsInYws%2Fvideo_12_slider.jpg?alt=media&#x26;token=10425eeb-84ba-4f43-bfa8-f2b4a9763863">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FYNF6oN4TP7jjpzsInYws%2Fvideo_12_slider.jpg?alt=media&#x26;token=10425eeb-84ba-4f43-bfa8-f2b4a9763863</a></td><td><a href="https://compare.topazlabs.com/share/video?src1=https://downloads.topazlabs.com/web-assets/model-examples/video_12.mp4&#x26;src1label=Before&#x26;src2=https://downloads.topazlabs.com/web-assets/model-examples/video_12_ast2_C4_S3.mp4&#x26;src2label=After&#x26;zoom=1.0">https://compare.topazlabs.com/share/video?src1=https://downloads.topazlabs.com/web-assets/model-examples/video_12.mp4&#x26;src1label=Before&#x26;src2=https://downloads.topazlabs.com/web-assets/model-examples/video_12_ast2_C4_S3.mp4&#x26;src2label=After&#x26;zoom=1.0</a></td></tr><tr><td align="center">Click to view</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2Ff4ZDhkIcP8DeGvjFXDyj%2Fvideo_15_slider.jpg?alt=media&#x26;token=8362271f-4a81-488d-9dfe-e30a2d7171e3">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2Ff4ZDhkIcP8DeGvjFXDyj%2Fvideo_15_slider.jpg?alt=media&#x26;token=8362271f-4a81-488d-9dfe-e30a2d7171e3</a></td><td><a href="https://compare.topazlabs.com/share/video?src1=https://downloads.topazlabs.com/web-assets/model-examples/video_15.mp4&#x26;src1label=Before&#x26;src2=https://downloads.topazlabs.com/web-assets/model-examples/video_15_ast2_C4_S3.mp4&#x26;src2label=After&#x26;zoom=1.0">https://compare.topazlabs.com/share/video?src1=https://downloads.topazlabs.com/web-assets/model-examples/video_15.mp4&#x26;src1label=Before&#x26;src2=https://downloads.topazlabs.com/web-assets/model-examples/video_15_ast2_C4_S3.mp4&#x26;src2label=After&#x26;zoom=1.0</a></td></tr><tr><td align="center">Click to view</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FE2OqBrzeZP0cdHfpU8CY%2Fvideo_18_slider.jpg?alt=media&#x26;token=eb62e069-3b7f-4048-8544-53e032ad9dff">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FE2OqBrzeZP0cdHfpU8CY%2Fvideo_18_slider.jpg?alt=media&#x26;token=eb62e069-3b7f-4048-8544-53e032ad9dff</a></td><td><a href="https://compare.topazlabs.com/share/video?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fvideo_18.mp4&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fvideo_18_ast2_C4_S3.mp4&#x26;src2label=After&#x26;zoom=1.0">https://compare.topazlabs.com/share/video?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fvideo_18.mp4&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fvideo_18_ast2_C4_S3.mp4&#x26;src2label=After&#x26;zoom=1.0</a></td></tr></tbody></table>

### Model Overview

Astra 2 is an advancement in creative diffusion-based upscaling for GenAI video, building on Astra 1 with expanded control over detail generation and stylization. It transforms AI-generated footage by adding new, dynamic detail and texture, with adjustable creativity and sharpness controls and prompt-based guidance for more precise creative direction.

Astra 2 performs best on stylized and GenAI sources, as well as wide shots and large-scale scenes where additional detail can be creatively inferred. It enhances clarity, richness, and visual complexity, and is optimized for expressive, stylized workflows.

### Best Use Cases

* **GenAI video.** Add rich new texture and detail.
* **Stylized footage.** Creative enhancement for illustrated and CG video.
* **Prompt-guided results.** Steer added detail with a text prompt.
* **Adjustable creativity.** Dial from faithful to bold.
* **Music videos and ads.** Distinctive, creative upscales.

### Endpoint

`https://api.topazlabs.com/video/`

`https://api.topazlabs.com/video/express`

### Model Parameters

Model parameters go inside the filter object in `filters`.

| Parameter    | Type      | Required / Default                           | Accepted values | Description                                                               |
| ------------ | --------- | -------------------------------------------- | --------------- | ------------------------------------------------------------------------- |
| `model`      | `string`  | Required                                     | `"ast-2"`       | —                                                                         |
| `creativity` | `decimal` | <p>Optional<br>Default: <code>0.0</code></p> | `0.0` to `1.0`  | How much creativity the model applies. 0 is faithful; 1 is most creative. |
| `prompt`     | `string`  | <p>Optional<br>Default: <code>""</code></p>  | —               | Text describing the video or the result you want.                         |
| `sharp`      | `decimal` | <p>Optional<br>Default: <code>0.5</code></p> | `0.0` to `1.0`  | Pre-enhancement sharpness. 0 blurs, 0.5 passes through, 1 sharpens.       |

For request parameters shared by every video model (source, output, destination, and notifications), see Request Parameters. The full schema is also available in our API Reference page.

### Model Pricing

**Astra 2** is priced per output frame. Credits = ceil(output frames ÷ frames per credit).

| Output resolution | Frames per credit |
| ----------------- | ----------------- |
| 1080p             | 10                |
| 4K                | 6                 |

#### 1080p Output

| Duration | 24 fps | 30 fps | 60 fps |
| -------- | ------ | ------ | ------ |
| 5 s      | 12     | 15     | 30     |
| 10 s     | 24     | 30     | 60     |
| 30 s     | 72     | 90     | 180    |
| 1 min    | 144    | 180    | 360    |
| 5 min    | 720    | 900    | 1800   |
| 10 min   | 1440   | 1800   | 3600   |

#### 4K Output

| Duration | 24 fps | 30 fps | 60 fps |
| -------- | ------ | ------ | ------ |
| 5 s      | 20     | 25     | 50     |
| 10 s     | 40     | 50     | 100    |
| 30 s     | 120    | 150    | 300    |
| 1 min    | 240    | 300    | 600    |
| 5 min    | 1200   | 1500   | 3000   |
| 10 min   | 2400   | 3000   | 6000   |

{% hint style="info" %}
These are estimates. For a quote on a specific file, use our [Credit Calculator](https://developer.topazlabs.com/credit-calculator) or create the request with `POST /video/`, which returns an estimate before processing starts.
{% endhint %}

### Example Request

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST "https://api.topazlabs.com/video/express" \
  -H "X-API-Key: $TOPAZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": { "container": "mp4" },
    "filters": [ { "model": "ast-2", "creativity": 0.5, "prompt": "cinematic, detailed textures" } ],
    "output": { "resolution": { "width": 3840, "height": 2160 } }
  }'
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const payload = {
  "source": {
    "container": "mp4"
  },
  "filters": [
    {
      "model": "ast-2",
      "creativity": 0.5,
      "prompt": "cinematic, detailed textures"
    }
  ],
  "output": {
    "resolution": {
      "width": 3840,
      "height": 2160
    }
  }
};

const response = await fetch("https://api.topazlabs.com/video/express", {
  method: 'POST',
  headers: {
    'X-API-Key': process.env.TOPAZ_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(payload),
});

if (!response.ok) {
  throw new Error(`Request failed: ${response.status} ${await response.text()}`);
}

console.log(await response.json());
```

{% endtab %}

{% tab title="Python" %}

```python
import os
import requests

payload = {'source': {'container': 'mp4'},
 'filters': [{'model': 'ast-2',
              'creativity': 0.5,
              'prompt': 'cinematic, detailed textures'}],
 'output': {'resolution': {'width': 3840, 'height': 2160}}}

response = requests.post(
    "https://api.topazlabs.com/video/express",
    headers={"X-API-Key": os.environ["TOPAZ_API_KEY"]},
    json=payload,
)
response.raise_for_status()
print(response.json())
```

{% endtab %}
{% endtabs %}

### Helpful Resources

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-play">:play:</i></td><td><h4>Video Quickstart</h4></td><td>Quickly get started with our Video API.</td><td><a href="https://developer.topazlabs.com/getting-started/video-quickstart.md">Video Quickstart</a></td></tr><tr><td><i class="fa-file-brackets-curly">:file-brackets-curly:</i></td><td><h4>API Reference</h4></td><td>View our API reference to view the entire schema.</td><td><a href="https://developer.topazlabs.com/reference/">Reference</a></td></tr><tr><td><i class="fa-square-root-variable">:square-root-variable:</i></td><td><h4>Model Pricing</h4></td><td>Learn how we price our models.</td><td><a href="https://developer.topazlabs.com/getting-started/model-pricing.md">Model Pricing</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.topazlabs.com/video-models/upscaling-and-enhancement/creative/astra-2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
