LLM Reference
OpenAI API

Using GPT-6 Astra on OpenAI API

Implementation guide · GPT-6 · OpenAI

Serverless

OpenAI API exposes GPT-6 Astra through model ID gpt-6-astra. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-09-03. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at OpenAI API and generate an API key.
  2. 2
    Use the OpenAI API SDK or REST API to call gpt-6-astra — see the documentation for request format.
  3. 3
    You'll be billed $10.00/1M input, $50.00/1M output tokens. See full pricing.

Code Examples

Install
pip install openai
API key
OPENAI_API_KEY
Model ID
gpt-6-astra

Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".

import os
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
    model="gpt-6-astra",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Pricing on OpenAI API

TypePrice (per 1M)
Input tokens$10.00
Output tokens$50.00

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt CachingBatch API

About GPT-6 Astra

GPT-6 Astra is OpenAI's flagship GPT-6 model, announced September 3, 2026 as a new generation of intelligence for computer use, browsing, software engineering, cybersecurity, science, and professional work. Official OpenAI API id gpt-6-astra. Docs list a 1,050,000-token context window, 922,000 max input tokens, 128,000 max output tokens, Apr 30, 2026 knowledge cutoff, image+text input to text output, reasoning.effort low/medium/high/xhigh/max (none is not supported), function calling, structured outputs, prompt caching, Batch API, computer use, and code interpreter. OpenAI API Standard list is $10 per 1M input tokens and $50 per 1M output tokens.

Model Specs

Released2026-09-03
Context1.05m
Knowledge cutoff2026-04

Provider

OpenAI API
OpenAI API

OpenAI

San Francisco, California, United States