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

# GPT-6 Astra in ComfyUI

> Use OpenAI GPT-6 Astra through the OpenAI Chat node for complex reasoning, image analysis, prompt generation, and LLM-driven workflows in ComfyUI

**GPT-6 Astra** is OpenAI's most capable model, built for the hardest end-to-end work: complex reasoning, coding, computer use, research, and document creation. Released on September 3, 2026, it supports a 1,050,000-token context window, text and image input, and reasoning effort levels from `low` through `max`.

In ComfyUI, GPT-6 Astra runs through the `OpenAI Chat` node: select `gpt-6-astra` in the node's `model` dropdown. This page focuses on how to use the model inside ComfyUI workflows. For node basics shared by all models, see the [OpenAI Chat tutorial](/tutorials/partner-nodes/openai/chat).

<Tip>
  To use the Partner Nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the [Partner Nodes Overview](/tutorials/partner-nodes/overview) section of the documentation to understand the specific requirements for using the Partner Nodes.
</Tip>

<Tip>
  <Tabs>
    <Tab title="Local users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated.

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Cloud users">
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

## When to pick GPT-6 Astra

The `OpenAI Chat` node offers many models, from `gpt-5-nano` to `gpt-6-astra`. GPT-6 Astra is the strongest but also the most expensive option, so it fits tasks where cheaper models struggle:

* **Long-context image analysis**: feeding many images (via `Batch Images`) or large prompt files and asking for a structured analysis in one pass
* **Prompt engineering**: turning a reference image or a rough idea into a detailed, comma-separated positive prompt for image or video models
* **Agentic workflows**: multi-step tasks like analyzing a dataset description, then writing a generation plan, then drafting the prompts themselves
* **Complex instruction following**: precise output formats (JSON, YAML, fixed section order) that smaller models tend to break

For simple captioning or short answers, `gpt-5` or `gpt-5-mini` produce good results at a fraction of the cost. See the [pricing table](/tutorials/partner-nodes/pricing) for the per-model rates.

## Using the model in the OpenAI Chat node

The `OpenAI Chat` node takes:

* `prompt`: the instruction. For prompt-generation tasks, describe exactly what to extract from the image and the output format you want
* `images`: optional image context. Connect a `LoadImage`, or `Batch Images` for multiple images; every connected image is sent to the model
* `files`: optional documents from the `OpenAI Chat Input Files` node
* `advanced_options`: optional configuration from the `OpenAI Chat Advanced Options` node

The output is a `String`. Typical ways to use it downstream:

* Into a `Preview Any` node to read the response
* Into `Save Text` to write the generated prompt to a `.txt` file
* Into the positive prompt input of a `CLIP Text Encode` node, creating fully automatic image or video generation pipelines where the LLM writes the prompt
* Into text inputs of partner nodes, for example to draft a scene description before video generation

## Reasoning effort

GPT-6 Astra is a reasoning model. Connect an `OpenAI Chat Advanced Options` node and set `reasoning_effort` to control the trade-off between response quality and cost:

| Level     | Behavior                                                |
| --------- | ------------------------------------------------------- |
| `default` | The model chooses automatically                         |
| `low`     | Fastest and cheapest, good for straightforward analysis |
| `medium`  | Balanced default for prompt generation                  |
| `high`    | Thorough analysis of complex images or instructions     |
| `xhigh`   | Deep multi-step reasoning                               |
| `max`     | Maximum reasoning for the hardest tasks                 |

The same node also exposes `max_output_tokens` (16 to 16384, including reasoning tokens) and an `instructions` field that acts as a persistent system prompt, useful for fixing an output format across many runs.

## GPT-6 Astra template

A separate template shows GPT-6 Astra analyzing an image and generating a structured AI art prompt from it. The workflow loads an image, sends an analysis prompt to the `OpenAI Chat` node with `model` set to `gpt-6-astra`, and writes the result to a text file through `Save Text`.

![GPT-6 Astra workflow preview](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt6_astra-1.webp)

<CardGroup cols={2}>
  <Card title="Run on Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_openai_gpt6_astra&utm_source=docs&utm_medium=referral&utm_campaign=gpt6-astra">
    Open in Comfy Cloud
  </Card>

  <Card title="Download Workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt6_astra.json">
    Download JSON or search "GPT-6 Astra" in Template Library
  </Card>
</CardGroup>

**Input materials**

Upload this file to the matching `LoadImage` node:

<CardGroup cols={2}>
  <Card title="blue_poppies_field.png" icon="image" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/blue_poppies_field.png">
    `LoadImage` node · `blue_poppies_field.png`
  </Card>
</CardGroup>

Steps:

1. Load your image in the `LoadImage` node
2. In the `OpenAI Chat` node, adjust the analysis prompt or switch `model` as needed. The template's prompt asks the model to extract subject, composition, camera, lighting, color palette, texture, and style, then output a comma-separated positive prompt only
3. Click `Run`. The generated prompt appears in the preview and is saved to a `.txt` file by the `Save Text` node

To go further, copy the saved prompt into a `CLIP Text Encode` node or an image / video model node and generate directly from the model's output.

GPT-6 Astra bills from API token usage, at a higher rate than other OpenAI Chat models. See the [pricing table](/tutorials/partner-nodes/pricing) for details.
