APIMart
Back to all models

GPT-6 Astra API

OpenAIModel ID gpt-6-astraText modelReleased September 3, 2026

Use GPT-6 Astra to check whether a database migration is safe to run on a live table, catch a summary figure that doesn’t match the tables, or flag a claim the source doesn’t support.

Max input
922,000 tokens
Max output
128,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
April 30, 2026
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

GPT-6 Astra API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on GPT-6 Astra.

Try GPT-6 Astra with your own material

Database migration review

Send the migration script with the table size and the code that still writes to the table, and have GPT-6 Astra say whether it can run on a live database and in what order to split it. Rehearse it on a copy of production data first.

Example: Can this migration run on the live table?

Material

migration.sql
ALTER TABLE orders ADD COLUMN region text NOT NULL;
Table size
orders has about 40 million rows and receives writes all day.
orders.ts
INSERT INTO orders (id, user_id, total) VALUES ($1, $2, $3)

PromptUsing the migration, the table size and the current code, say whether this can run as is on the production database. If not, split it into steps that can, in order.

Sample answer · written by hand to show the reasoning

Not as is. Existing rows have no region, so adding a NOT NULL column without a default fails, and the current insert would fail too because it doesn’t set region. Add region as a nullable column, deploy code that writes it, backfill old rows in batches, and only then add the NOT NULL constraint.

About the GPT-6 Astra API

  • OpenAI’s most capable GPT-6 model

    OpenAI released GPT-6 Astra on September 3, 2026 for the hardest work: complex reasoning, software engineering, computer use, research and document creation. GPT-6 Sol and GPT-6 Luna followed on September 22.

  • A newer Astra is available

    OpenAI released GPT-6.2 Astra on November 17, 2026 at a lower official price and with a later knowledge cutoff. Compare it first for new projects; workloads validated on GPT-6 Astra can stay.

  • Reasoning effort from low to max

    According to OpenAI’s model docs, GPT-6 Astra supports low, medium, high, xhigh and max reasoning effort, but not none. OpenAI’s migration guide says to use low where you used none.

  • GPT-6 Astra API key and access

    You don’t need a separate GPT-6 Astra API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID gpt-6-astra.

GPT-6 Astra official benchmark results

Selected results OpenAI published at launch.

  • Terminal-Bench 4.0

    57.9%

    Coding tasks run in a terminal. Ahead of Claude Fable 5.1 (55.8%) and GPT-5.6 Sol (37.3%), at about 63% and 9% lower estimated API cost per task respectively.

  • DeepSWE v1.1

    74.1%

    Complex software engineering tasks in real codebases. Ahead of Claude Opus 5 (73.7%) and GPT-5.6 Sol (72.7%).

  • OSWorld 2.0 (offline set)

    72.6%

    Long-horizon computer-use workflows. Ahead of Claude Opus 5 (70.2%) and GPT-5.6 Sol (65.7%), taking about 40 minutes per task versus about 75 for GPT-5.6 Sol.

  • AutomationBench

    41.4%

    Business workflows across apps. Ahead of Claude Fable 5.1 (31.4%), Claude Opus 5 (26.9%) and GPT-5.6 Sol (18.1%).

  • OpenAI MRCR v2 (8 needles, 512K–1M)

    96.3%

    Finding and telling apart eight similar pieces of information spread through 512K to 1M tokens of context. GPT-5.6 Sol scores 73.8%.

  • GPQA Diamond

    96.0%

    Graduate-level science questions. Ahead of GPT-5.6 Sol (94.6%), Claude Fable 5.1 (93.7%) and Claude Opus 5 (93.7%).

How to call the GPT-6 Astra API

To call GPT-6 Astra, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-6-astra",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GPT-6 Astra access details

Model IDgpt-6-astra
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

GPT-6 Astra API request parameters

GPT-6 Astra uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use gpt-6-astra for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

GPT-6 Astra API pricing

The GPT-6 Astra API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input80Credits~$876Credits~$7.672Credits~$7.2100Credits~$1020%
Cached input8Credits~$0.87.6Credits~$0.767.2Credits~$0.7210Credits~$120%
Output400Credits~$40380Credits~$38360Credits~$36500Credits~$5020%

Prices are for reference only. View full pricing

Why call GPT-6 Astra API through APIMart

  • 20% below official pricing

    GPT-6 Astra API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below OpenAI's official prices, and cached input costs just $0.8 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GPT-6 Astra, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try GPT-6 Astra with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which OpenAI model should you choose?

Base prices per 1M tokens (USD). Your GPT-6 Astra API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-6 Astra CurrentGPT-4oGPT-4o miniGPT-4o-2024-11-20GPT-4.1GPT-4.1 minio3GPT-5GPT-5 miniGPT-5 nanoGPT-5 ProGPT-5 SearchGPT-5.1GPT-5.2GPT-5.2 ProGPT-5.3-CodexGPT-5.4GPT-5.4 miniGPT-5.4 nanoGPT-5.4 ProGPT-5.5GPT-5.6 LunaGPT-5.6 SolGPT-5.6 TerraGPT-6 LunaGPT-6 SolGPT-6.1 SolGPT-6.1 TerraGPT-6.2 AstraGPT-6.2 Sol
Best forComplex coding, Professional work, ResearchText and image input, Function calling and structured outputs, No reasoning step, fast repliesHigh-volume classification and extraction, Text and image input, Low-cost small modelNewest GPT-4o snapshot, Text and image input, No reasoning step, fast repliesInstruction following, Deprecated, 1M-token contextFast and low-cost, Deprecated, 1M-token contextDeep reasoning, Visual reasoning, Coding and technical writingCoding and agents, Deprecated, Reasoning effort minimal to highCost-efficient reasoning, Deprecated, 400K contextFastest and cheapest, Deprecated, ClassificationHard reasoning, Deprecated, Responses APIWeb search in Chat Completions, Searches before every answer, Text in, text outCoding and agents, Deprecated, Text and image inputProfessional work, Reasoning up to xhigh, Text and image inputHard reasoning, More compute per request, Responses APIAgentic coding, 400K context, Responses APICoding and professional work, 1.05M context, Text and image inputCoding and subagents, 400K context, Text and image inputClassification and extraction, Cheapest GPT-5.4 model, Text and image inputHard reasoning, More compute per request, Text and image inputCoding and professional work, 1.05M context, Reasoning from none to xhighHigh-volume tasks, Classification, Data extractionComplex professional work, Coding and debugging, Text and image inputBalanced cost, Support and review, Text and image inputStructured summaries, Classification, Data extractionComplex coding, Agentic workflows, Testing and debuggingComplex coding, Professional documents, Business workflowsVisual reasoning, Drawings and screenshots, WritingComplex coding, Long-document analysis, Professional researchEveryday coding, Agentic tasks, Writing
Input typesText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageTextText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, Image
Max input922,000 tokens128,000 tokens128,000 tokens128,000 tokens1,047,576 tokens1,047,576 tokens200,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens922,000 tokens272,000 tokens272,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens
Max output128,000 tokens16,384 tokens16,384 tokens16,384 tokens32,768 tokens32,768 tokens100,000 tokens128,000 tokens128,000 tokens128,000 tokens272,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffApril 30, 2026October 1, 2023October 1, 2023October 1, 2023June 1, 2024June 1, 2024June 1, 2024September 30, 2024May 31, 2024May 31, 2024September 30, 2024—September 30, 2024August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025December 1, 2025February 16, 2026February 16, 2026February 16, 2026May 18, 2026April 20, 2026April 30, 2026June 1, 2026May 18, 2026June 1, 2026
Input price$8$2$0.12$2$1.6$0.32$1.6$1$0.2$0.04$12$1$1$1.4$16.8$1.4$2$0.6$0.16$24$4$0.16$3.2$1.6$0.08$1.6$1.6$0.8$6.4$1.6
Output price$40$8$0.48$8$6.4$1.28$6.4$8$1.6$0.32$96$8$8$11.2$134.4$11.2$12$3.6$1$144$24$0.96$16$9.6$0.4$8$8$4$32$8

GPT-6 Astra FAQ

Should I use GPT-6 Astra or GPT-6.2 Astra?

Compare GPT-6.2 Astra first for new projects. It is the newer Astra model (released November 17, 2026), its official input and output prices are 20% lower than GPT-6 Astra’s, and its knowledge cutoff is later (May 18, 2026, versus April 30, 2026). Workloads already tuned and validated on GPT-6 Astra can stay on it. On APIMart both share one endpoint and API key, so you only change the model parameter.

Is there a GPT-6 Astra Pro API?

Not as a separate API model. In OpenAI’s launch post, GPT-6 Astra Pro is part of the ChatGPT Pro, Business and Enterprise plans; for developers, OpenAI’s model docs list a single API model, gpt-6-astra. On APIMart, call it with the model ID gpt-6-astra.

Is the context window 1,050,000 or 922,000 tokens?

OpenAI lists a total context window of 1,050,000 tokens, of which up to 922,000 tokens are input and up to 128,000 tokens are output. This page lists max input and max output separately so you can size the material in your request and the expected reply independently.

How is input above 272K tokens billed?

Under OpenAI’s pricing rules, when a single request has more than 272,000 input tokens, the whole request is billed at long-context rates: input and cache prices double, and output is 1.5x the base price. The pricing table on this page shows the base tier; long-context prices are on the pricing page.

Can I use tool calling and computer use on GPT-6 Astra directly?

According to OpenAI’s docs, GPT-6 Astra supports Chat Completions, but tool calling requires the Responses API, and computer use is listed among the Responses API tools. The examples on this page use the Chat Completions endpoint, which suits code review, document checks and research questions. If you need tool calls, first confirm that the endpoint you use supports the Responses API.

What should I change when moving from GPT-5.6 Sol?

Set model to gpt-6-astra and rerun your own prompts. GPT-6 Astra does not support the none reasoning effort, and OpenAI’s migration guide says to use low instead. When reasoning effort is not none, remove temperature, top_p, top_logprobs and logprobs from the request.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select GPT-6 Astra in the text category to start exploring.

Which model ID does the GPT-6 Astra API use?

Set model to gpt-6-astra. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of GPT-6 Astra?

On APIMart, GPT-6 Astra accepts up to 922,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

GPT-6 Astra can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the GPT-6 Astra API cost?

The GPT-6 Astra API on APIMart is billed by token, and prices depend on your membership tier. Gold: $8 per million input tokens and $40 per million output tokens. Diamond: $7.2 per million input tokens and $36 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.