Skip to content
One AI API Key
Blog

GPT-6.2 API quickstart: first call in 5 minutes, free on One AI API Key

Sign up, grab a key, call gpt-6.2-sol:free with curl or the OpenAI SDK, stream it, set reasoning effort, and stay on the free lane. Working snippets inside.

One AI API Key TeamPublished 14 min read
On this page

OpenAI launched GPT-6.2 Astra and GPT-6.2 Sol on November 17, 2026, and both tiers are free on One AI API Key for 48 hours from 2026-11-18. This post gets you from nothing to a working call in about five minutes: sign up, grab a key, run one curl, then the Python SDK, then streaming, then reasoning effort. Every snippet uses the free id gpt-6.2-sol:free and the base URL https://api.oneaiapikey.com/v1, so nothing here costs a cent.

The free offer, up front

gpt-6.2-sol:free and gpt-6.2-astra:free are both FREE on One AI API Key for the next 48 hours. Owner-declared, live as of 2026-11-18. $0 per token on the free lane.

  1. Sign up for an account. No card required.
  2. Grab an API key from the console.
  3. Call model id gpt-6.2-sol:free (or gpt-6.2-astra:free) at base URL https://api.oneaiapikey.com/v1.
  4. Or try both in the in-site chat with no terminal at all.

What you are calling

GPT-6.2 is two models. Sol is the efficiency tier, Artificial Analysis’s “go-to model for everyday work”, at Intelligence Index 57 and 85 tokens per second at max effort. Astra is the premium tier at Intelligence Index 62, rank 3 of 91 on AA’s per-model page. Both have a 1,050,000-token context window, both accept text and image input, both output text only, and both support reasoning. The API on OpenAI’s side rejects any request that sets reasoning effort to none, so you cannot turn reasoning off, only dial it.

Thing Value
Free model id (efficiency) gpt-6.2-sol:free
Free model id (premium) gpt-6.2-astra:free
Base URL https://api.oneaiapikey.com/v1
Auth header Authorization: Bearer $ONEAI_API_KEY
Endpoint POST /chat/completions
Context window 1,050,000 tokens
Max input 922,000 tokens
Max output 128,000 tokens
Reasoning effort Supported, none rejected
Free-lane allowance 100 requests and 5,000,000 tokens a day, shared

The endpoint speaks the OpenAI chat protocol, so any client you already use against OpenAI works by changing two values: the base URL and the model id.

Step 1: sign up

Go to console sign-up and create an account. Continue with Google is the fastest path. No card, no deposit, no waitlist. New accounts also get a $10 sign-up credit, which pays for priced models if you want to try something off the free lane later.

Step 2: grab an API key

Open the console and create a key. The console shows the full key once and stores only a prefix afterwards, so copy it into your password manager or your .env file now. Set it in your shell:

export ONEAI_API_KEY="sk-...your key..."

Step 3: first call with curl

first call, gpt-6.2-sol:free
curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.2-sol:free",
    "messages": [{"role": "user", "content": "Summarize the tradeoffs between the two GPT-6.2 tiers."}]
  }'

A successful response looks like any OpenAI chat completion: a JSON body with choices[0].message.content, a usage block with prompt and completion tokens, and a model field echoing the id you sent. At $0 per token the usage block is informational on the free lane, but it is worth reading anyway, because it tells you how big your prompts really are before the window closes and the meter starts.

Against the premium tier, the same call with the other free id and an explicit reasoning effort:

first call, gpt-6.2-astra:free
curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.2-astra:free",
    "reasoning_effort": "high",
    "messages": [{"role": "user", "content": "Reason through this problem, then give a final answer."}]
  }'

Step 4: the Python SDK

The OpenAI Python SDK works unchanged. Set base_url and model, keep everything else:

gpt62_quickstart.py
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ONEAI_API_KEY"],
    base_url="https://api.oneaiapikey.com/v1",
)
resp = client.chat.completions.create(
    model="gpt-6.2-sol:free",
    messages=[{"role": "user", "content": "Summarize the tradeoffs between the two GPT-6.2 tiers."}],
)
print(resp.choices[0].message.content)

If you prefer Node, the JavaScript SDK is the same shape:

gpt62_quickstart.mjs
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.ONEAI_API_KEY,
  baseURL: "https://api.oneaiapikey.com/v1",
});

const resp = await client.chat.completions.create({
  model: "gpt-6.2-sol:free",
  messages: [{ role: "user", content: "Summarize this stack trace." }],
  max_tokens: 4096,
});
console.log(resp.choices[0].message.content);

Both clients take the same three values: the key from your console, the base URL https://api.oneaiapikey.com/v1, and the model id gpt-6.2-sol:free. The gateway serves the same OpenAI chat protocol to every client, which is the whole point of one key. A client you built against OpenAI’s own endpoint needs no code changes beyond those two config values.

Step 4b: a multi-turn conversation

The messages array is the whole state of the conversation, and the model has no memory between calls. To continue a thread, send the previous turns back:

multi-turn, gpt-6.2-sol:free
curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.2-sol:free",
    "messages": [
      {"role": "system", "content": "You are a terse senior reviewer. Answer in bullets."},
      {"role": "user", "content": "Review this migration plan."},
      {"role": "assistant", "content": "- Item one\n- Item two"},
      {"role": "user", "content": "Expand on item one."}
    ]
  }'

The system message sets behavior and persists across the conversation. Keeping it short and stable is also the cheapest thing you can do for your bill once the window closes, because a stable prefix is what makes the 95% cache discount apply. Our prompt caching guide covers the mechanics.

Step 5: streaming

Turn streaming on. Sol’s reasoning can run long on hard prompts, and a call that arrives all at once after a minute of silence looks broken in a UI even when it is fine. Streaming sends tokens as they are produced:

gpt62_stream.py
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ONEAI_API_KEY"],
    base_url="https://api.oneaiapikey.com/v1",
)
stream = client.chat.completions.create(
    model="gpt-6.2-sol:free",
    messages=[{"role": "user", "content": "Walk through this stack trace step by step."}],
    stream=True,
)
for chunk in stream:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="", flush=True)

Our streaming docs cover the wire format if you are building a client from scratch.

Step 6: set reasoning effort

Both GPT-6.2 tiers are reasoning models. On OpenAI’s side the API rejects reasoning_effort: "none", so the dial runs from low through medium and high to the top tiers. Higher effort means the model spends more output budget thinking before it answers, which is why a reasoning call can produce a long first-token delay even when the connection is healthy.

Two practical rules:

  • Set max_tokens deliberately. A reasoning model can spend its output budget thinking before it answers. A small max_tokens on a high-effort model returns a truncated thought, not a shorter answer.
  • Match effort to the problem. high on a proof or a hard bug, low or medium on summarization and drafting. AA’s own effort table shows Sol dropping from Intelligence 57 at max effort to 41 at low, so the knob is real.
gpt62_reasoning.py
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ONEAI_API_KEY"],
    base_url="https://api.oneaiapikey.com/v1",
)
resp = client.chat.completions.create(
    model="gpt-6.2-sol:free",
    messages=[{"role": "user", "content": "Prove this or find the counterexample."}],
    reasoning_effort="high",
    max_tokens=8192,
)
print(resp.choices[0].message.content)

Our reasoning docs explain the effort tiers and how they interact with the context window.

Step 7: send an image

Both GPT-6.2 tiers accept image input on the same chat endpoint, in OpenAI’s image_url content-part format. This is the free lane too, so it costs nothing during the window:

send an image to gpt-6.2-sol:free
curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.2-sol:free",
    "messages": [{"role": "user", "content": [
      {"type": "text", "text": "What is wrong with this screenshot?"},
      {"type": "image_url", "image_url": {"url": "https://example.com/ui.png"}}
    ]}]
  }'

Both models are text-in, text-out on the output side, so the response is always text regardless of input modality. There is no audio or video output on either tier, per OpenAI’s model specs.

The 1M-token context, in practice

Both tiers have a 1,050,000-token context window with a 922,000-token input ceiling. That is roughly 2,000 pages of text in a single request, and it is the feature that changes how you work: load the whole repository, the whole contract, the whole research dump, and ask questions across all of it without chunking.

Two things to know before you paste a book into messages.

The long-context surcharge is real after the window. Above 272,000 input tokens, OpenAI’s specs double the input and cache rates and raise output to 1.5x for the whole request. During the free window this does not matter, because the price is $0. The day the window closes, a 500,000-token prompt bills at the doubled rate, and that is worth knowing before you build a workflow that depends on it. Our 1M context guide works through the math.

Big prompts are slow prompts. A model reading a million tokens has a million tokens to attend over before the first output token. Sol’s first-token latency is good for its class, but no model is instant on a full-window prompt. Keep streaming on, and consider whether you actually need the whole document in context or whether retrieval over a smaller slice would answer the same question faster.

The free lane, and what happens at the ceiling

Both free ids meter against the free lane rather than your balance. That is what makes them $0. The lane’s rules:

Rule Value
Requests per day 100, shared across all :free ids
Tokens per day 5,000,000, shared across all :free ids
Refill time 00:00 UTC / 05:30 IST, automatic
Above the cap 429, code daily_limit_free
Card required No
Applies to API and in-site chat

The allowance is per account, not per key and not per model. If you run an eval against gpt-6.2-sol:free all morning and then switch to gpt-6.2-astra:free in the afternoon, you are drawing from the same bucket. The rate limits docs cover the caps in detail, and the free lane page lists every free id.

The 48-hour window runs from the 2026-11-18 announcement. When it ends, the ids either come off the free lane or move to a discounted rate, and we will say so on the changelog and the status board. Your code does not change either way; the id stays the same and the price is what moves.

The four errors you might hit

401 Unauthorized. The key is missing, wrong, or sent without the Bearer prefix. Check the header and re-copy the key from the console.

404 on the model. The id is wrong. gpt-6.2-sol:free is not the same string as gpt-6.2-sol, and the :free suffix is what puts the call on the free lane. Copy the id from the snippet above rather than typing it.

429 with daily_limit_free. You have used today’s 100 requests or 5,000,000 tokens. They refill at 00:00 UTC. To raise the cap, the pricing page lists paid options, and a paid key is not subject to the free-lane allowance.

Empty or late stream. That is reasoning effort, not a broken connection. A high-effort call spends output budget thinking before the first visible token. Keep streaming on so partial reasoning arrives token by token, and set max_tokens high enough for the thought plus the answer.

Two settings worth logging from call one

Model id and effort. Log both on every request. GPT-6.2 has two tiers and five effort levels between them, and a before-and-after that does not record which id and which effort produced it is not a comparison, it is a coincidence. Pin both in your eval notes as well as your config.

Input tokens and cached tokens. The free lane makes this optional for 48 hours and mandatory the day the window closes. Both GPT-6.2 models have a 95% cache discount on cached input, $0.10 per million on Sol and $0.40 on Astra against $2 and $8 for fresh input. A stable-prefix workload that reads mostly from cache costs a fraction of one that does not, and the only way to know your hit rate is to log it. Our prompt caching guide covers the mechanics.

What the models are good at, briefly

Artificial Analysis publishes the numbers, and they are worth knowing before you pick a default id.

Sol at max effort scores Intelligence Index 57, which AA describes as on par with GPT-6 Astra at about 15% of the cost per task. Its cost per task is $1.01 against Astra’s $4.00, and it runs 85 tokens per second against Astra’s 66. For everyday work that is the faster and much cheaper tool.

Astra at max effort scores 62, and its AA-3D score of 1318 leads the field against Claude Fable 5.2’s 1271 and Sol’s 1259. On the AA-Robotics research preview it scores 79 against Fable 5.2’s 75 and Sol’s 78. On factual accuracy, AA-Omniscience records a hallucination rate of 59% for Astra and 55% for Sol at max effort, which is a reason to keep retrieval in front of either model on factual work.

AA also records a coding regression on Sol: 3 points lost against GPT-6.1 Sol, driven by a 14-point drop on SWE-Atlas-QnA-AA, which AA summarizes as Sol being more likely than its predecessor to omit key facts. If your workload is coding, read the Sol benchmarks post before you migrate anything.

Those are AA’s measurements, not ours, and the fastest way to replace them with your own is the free key.

FAQ

Do I need a card for the free lane?

No. Sign up, create a key, call the free id. The $10 sign-up credit is separate and pays for priced models if you want them.

Can I use the OpenAI SDK unchanged?

Yes. Set base_url="https://api.oneaiapikey.com/v1" and model="gpt-6.2-sol:free". Everything else in your client stays the same.

Which free id should I start with?

gpt-6.2-sol:free for everyday work, because it is faster and the allowance is shared anyway. Re-run your hardest prompts on gpt-6.2-astra:free and see whether the extra quality is worth four times the eventual bill.

Does image input work on the free ids?

Yes. Both GPT-6.2 tiers accept text and image input on the same chat endpoint, in OpenAI’s image_url content-part format.

What is the maximum output?

128,000 tokens on both models, per OpenAI’s model specs. Set max_tokens below that and above your reasoning budget.

Does reasoning effort work on the free ids?

Yes. The same dial applies. none is not accepted, matching OpenAI’s own behavior.

How long is the free window?

48 hours from the 2026-11-18 announcement. After that, either the ids come off the free lane or move to a discount, announced on the changelog.

Is the free lane rate-limited per key or per account?

Per account. The 100 requests and 5,000,000 tokens are shared across every key and every free id on the account, in the API and the chat.

Where do I see my usage?

The console shows per-request logs including tokens. The free lane costs $0, so the log is informational during the window, but it is the same log you will rely on afterwards.

What if a free id is down?

Check the status board for live health. Free-lane incidents show there the same as paid ones.

More GPT-6.2 coverage

Bottom line

Sign up, grab a key, and call gpt-6.2-sol:free at https://api.oneaiapikey.com/v1. The curl above is a working first call, the Python snippets cover the SDK, streaming and reasoning effort, and the free lane gives you 100 requests and 5,000,000 tokens a day for the next 48 hours. Set max_tokens on purpose, keep streaming on, log the model id and effort on every request, and you will finish the window with real numbers on both tiers instead of someone else’s launch-day take. Get your key at console sign-up, and if you would rather not open a terminal, the in-site chat runs the same ids on the same free lane.

More in Blog

Try it

One API key for Claude, GPT, Grok, DeepSeek, Kimi, Qwen, GLM, MiniMax, Step, Crow, Dots, Beam, Nemotron, Jailbreak, MiMo, Gemini, Muse and Mistral.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.