APIMart
Back to all models

GPT-6.2 Astra API

OpenAIModel ID gpt-6.2-astraText modelReleased November 17, 2026

Use Astra to check what changed between two versions of a contract, trace which files one code change touches, or catch a condition a technical design missed.

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

GPT-6.2 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.2 Astra.

Try GPT-6.2 Astra with your own material

Contract version review

Send the old and new wording of the same clause in one request and have GPT-6.2 Astra pull out what changed in deadlines, amounts and start conditions, and say whether the text alone supports a conclusion. Anything touching payment or liability still goes to legal.

Example: Does the client really pay earlier now?

Material

Old §4.2
Client shall pay within 30 days of receiving the invoice.
New §4.2
Client shall pay within 14 days of acceptance.

PromptCompare clause 4.2 in both versions and extract the payment term and when it starts. Based on these two sentences alone, can you tell whether the actual payment date is earlier in the new version?

Sample answer · written by hand to show the reasoning

The term is 16 days shorter, and the clock now starts at acceptance instead of invoice receipt. Whether payment actually comes earlier depends on when each of those two events happens.

About the GPT-6.2 Astra API

  • Flagship of OpenAI’s GPT-6.2 family

    OpenAI positions GPT-6.2 Astra for the hardest projects: building and revising software end to end, using a computer, and working with documents.

  • Built for tasks with lots of material

    Changes that span many files, long contracts and research reports, and technical designs that need multi-step reasoning. Move everyday high-volume requests to GPT-6.2 Sol to save money.

  • OpenAI’s strongest model for security work

    GPT-6.2 Astra is OpenAI’s most capable model for cybersecurity tasks today, and it comes with tighter safeguards on higher-risk requests of that kind.

  • GPT-6.2 Astra API key and access

    You don’t need a separate GPT-6.2 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.2-astra. The GPT-6.2 Astra context window (listed as max input) and maximum output are shown in the specs at the top of this page.

GPT-6.2 Astra official benchmark results

Selected results OpenAI published at launch.

  • Agents' Last Exam v1.1

    +5.2 pts

    Multi-step professional workflows. 5.2 points above GPT-6 Astra at under a third of the cost per task, and 5.5 points above Claude Fable 5.2 at about 5% of the cost.

  • Terminal-Bench-Science 0.1

    +9 pts

    Scientific research workflows run in a terminal. A new high, 9 percentage points above GPT-6 Astra at under a third of the cost.

  • GDPval v2 (OpenAI internal)

    +6.2 pts

    Long-horizon work from real projects in consulting, finance, design and more. 6.2 percentage points above GPT-6 Astra with 22% fewer output tokens.

  • Harvey LAB-AA v1.1

    2× and up

    Legal work such as contract review; a task passes only if it meets every criterion with no material hallucinations. More than double Claude Fable 5.2’s pass rate at about a sixth of the cost.

  • AA-AnalystAgent

    62.5%

    Financial analysis questions on real spreadsheets and reports. A new high: 62.5% of questions answered correctly on all five independent attempts.

  • AA-3D

    1,318 Elo

    Human judges compare blinded 3D experiences built from the same prompt. Ranked first, ahead of Claude Fable 5.2 (1,271) and GPT-6.2 Sol (1,259). Elo is a relative rating from head-to-head comparisons; higher is better.

How to call the GPT-6.2 Astra API

To call GPT-6.2 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.2-astra",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GPT-6.2 Astra access details

Model IDgpt-6.2-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.2 Astra API request parameters

GPT-6.2 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.2-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.2 Astra API pricing

The GPT-6.2 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
Input64Credits~$6.460.8Credits~$6.0857.6Credits~$5.7680Credits~$820%
Cached input3.2Credits~$0.323.04Credits~$0.3042.88Credits~$0.2884Credits~$0.420%
Output320Credits~$32304Credits~$30.4288Credits~$28.8400Credits~$4020%

Prices are for reference only. View full pricing

Why call GPT-6.2 Astra API through APIMart

  • 20% below official pricing

    GPT-6.2 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.32 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GPT-6.2 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.2 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.2 Astra API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-6.2 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 AstraGPT-6 LunaGPT-6 SolGPT-6.1 SolGPT-6.1 TerraGPT-6.2 Sol
Best forComplex coding, Long-document analysis, Professional 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 inputComplex coding, Professional work, ResearchStructured summaries, Classification, Data extractionComplex coding, Agentic workflows, Testing and debuggingComplex coding, Professional documents, Business workflowsVisual reasoning, Drawings and screenshots, WritingEveryday 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 cutoffMay 18, 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, 2026April 30, 2026May 18, 2026April 20, 2026April 30, 2026June 1, 2026June 1, 2026
Input price$6.4$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$8$0.08$1.6$1.6$0.8$1.6
Output price$32$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$40$0.4$8$8$4$8

GPT-6.2 Astra FAQ

How is GPT-6.2 Astra different from GPT-6.2 Sol?

Both are GPT-6.2 models that OpenAI released on November 17, 2026, with the same context window and maximum output. Astra is the most capable, built for complex projects and professional research; Sol targets everyday coding, agentic tasks, and writing at about one fifth of Astra’s official price. On APIMart they share one endpoint and API key, so you only change the model parameter.

Is the GPT-6.2 Astra context window 1,050,000 or 922,000 tokens?

OpenAI lists the GPT-6.2 Astra context window at 1,050,000 tokens in total, of which input can use up to 922,000 tokens and output up to 128,000 tokens. This page shows max input and max output separately, so you can estimate from the length of your material and the expected reply.

How are requests over 272K input tokens billed?

Under OpenAI’s pricing rules, when a request’s input exceeds 272,000 tokens, the whole request is billed at long-context rates: input and cache rates double, and output costs 1.5 times the base rate. The table on this page lists base rates; long-context rates are on the pricing page.

How can I lower GPT-6.2 Astra costs?

OpenAI recommends keeping your prompt prefix unchanged and appending new instructions to the end of the conversation, which makes cache hits more likely and lowers latency. At OpenAI’s official rates, cached input is $0.40 per 1M tokens versus $8 for regular input. High-volume everyday tasks can also move to GPT-6.2 Sol.

How can I try this model online?

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

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

Set model to gpt-6.2-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.2 Astra?

On APIMart, GPT-6.2 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.2 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.2 Astra API cost?

The GPT-6.2 Astra API on APIMart is billed by token, and prices depend on your membership tier. Gold: $6.4 per million input tokens and $32 per million output tokens. Diamond: $5.76 per million input tokens and $28.8 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.