For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Ultrafast mode

Our fastest API service tier, with up to 8x faster speeds than Standard mode.

Ultrafast mode is the fastest service tier in the OpenAI API. It is broadly available for GPT-6 Astra, with preview access for GPT-5.6 Sol. Use it when speed justifies the higher cost.

We strongly recommend WebSockets, especially for agentic applications that make many tool calls in quick succession. Without a persistent connection, network overhead can reduce the latency gains.

Ultrafast mode for GPT-6 Astra is currently available to all API users at low rate limits. If your organization works with an OpenAI account team, contact them to request higher rate limits or preview access for GPT-5.6 Sol.

Configure your request

Set model to gpt-6-astra and service_tier to ultrafast in each response.create event.

Use Ultrafast across turns on one WebSocket
# Install: pip install --upgrade "openai[realtime]"
# Set OPENAI_API_KEY in your environment.

from openai import OpenAI

client = OpenAI()
previous_response_id: str | None = None
prompts = [
    "Explain why the sky is blue in one sentence.",
    "Now explain why sunsets look red.",
]

with client.responses.connect() as connection:
    for prompt in prompts:
        connection.response.create(
            model="gpt-6-astra",
            service_tier="ultrafast",
            previous_response_id=previous_response_id,
            input=prompt,
        )
        for event in connection:
            if event.type == "response.output_text.delta":
                print(event.delta, end="", flush=True)
            elif event.type == "response.completed":
                previous_response_id = event.response.id
                print()
                break
            elif event.type in {"response.failed", "response.incomplete", "error"}:
                raise RuntimeError(event.to_json())
        else:
            raise RuntimeError("Connection closed before the response finished.")

The example streams two responses over the same connection. The second request sends the new prompt and passes the first response’s ID as previous_response_id. Reuse the connection for later turns and tool results. See Continue with incremental inputs.

HTTP alternative

Ultrafast also supports HTTP requests through the SDK. For agentic applications with frequent tool calls, use a persistent WebSocket connection to reduce overhead between requests.

Create an Ultrafast response over HTTP
from openai import OpenAI

client = OpenAI()

response = client.responses.create(
    model="gpt-6-astra",
    input="Explain why the sky is blue in one sentence.",
    service_tier="ultrafast",
)

print(response.output_text)

This example waits for the complete response. To display output as it arrives, enable streaming.

Availability

GPT-6 Astra has the following default Ultrafast token rate limits:

API usage tier Tokens per minute (TPM)
Tiers 1–3 500,000
Tier 4 1,000,000
Tier 5 5,000,000

See the Ultrafast pricing table for input, cached input, cache write, and output prices.

Ultrafast supports US data residency and global processing only. It does not support EU or other non-US regional processing endpoints.