/v1/models endpoint and pricing page — marked "check the docs" below.results.csv.openai Python SDK (any recent version exposing client.chat.completions), an API key with billing enabled, one text file with your test tasks.export LLM_API_KEY="<your-key>"
export LLM_BASE_URL="https://<provider-endpoint>/v1"
export MODEL_SOL="<sol-model-id>" MODEL_LUNA="<luna-model-id>"
python compare_models.py
Details and verification are in the steps below.

bash, zsh or PowerShell 7).python3 --version.pip install openai python-dotenv.OPENAI_API_KEY; never paste it into the script./v1/models → check the docs.tasks.jsonl and results.csv.For a wider model shortlist (not just Sol vs 4o), see ChatGPT, Claude, Gemini, DeepSeek: AI assistant comparison.
What to do: Create a working folder, export your key, and list the models your key can actually call.
mkdir -p ~/model-compare && cd ~/model-compare
export OPENAI_API_KEY="sk-..." # your key
export OPENAI_BASE_URL="https://api.openai.com/v1" # or your gateway URL
curl -s -H "Authorization: Bearer $OPENAI_API_KEY" \
"$OPENAI_BASE_URL/models" \
| python3 -c "import json,sys; [print(m['id']) for m in json.load(sys.stdin)['data']]" \
| grep -iE 'sol|luna|gpt-4'Why: Model IDs change faster than blog posts. A wrong ID is the number-one reason a comparison fails at request time, and it fails with a 404 rather than "wrong model", which confuses beginners.
How to check: The command prints one model ID per line, filtered to Sol/Luna/4o-family names. Example output shape:
<id-for-sol>
<id-for-4o>Copy the two exact strings into environment variables — these are the only values in this guide you must not guess:
export SOL_MODEL_ID="<exact-sol-id-from-/v1/models>"
export GPT4O_MODEL_ID="<exact-4o-id-from-/v1/models>"
export SOL_IN_PRICE="<usd per 1M input tokens, from the pricing page>"
export SOL_OUT_PRICE="<usd per 1M output tokens, from the pricing page>"
export GPT4O_IN_PRICE="<usd per 1M input tokens, from the pricing page>"
export GPT4O_OUT_PRICE="<usd per 1M output tokens, from the pricing page>"If your provider has no 4o equivalent, stop here and note in your report: "4o not available on this endpoint — check the docs." Do not substitute a model silently.

What to do: Write tasks.jsonl — one JSON object per line, mixing routine work (where our channel places Sol: email summarization, text generation) and hard work (where our channel places Luna: long context, many simultaneous conditions). Then write compare.py.
tasks.jsonl:
{"id":"sum-01","type":"routine","prompt":"Summarize this support email in 3 bullets: <paste email>"}
{"id":"gen-01","type":"routine","prompt":"Write a 60-word product blurb for a USB-C dock."}
{"id":"rea-01","type":"hard","prompt":"Follow these 4 constraints at once: A) ... B) ... C) ... D) ..., then answer."}
{"id":"rea-02","type":"hard","prompt":"Read the attached 30-page spec and list every requirement that depends on another requirement: <paste text>"}
{"id":"sum-02","type":"routine","prompt":"Summarize this changelog in 5 bullets: <paste changelog>"}compare.py:
import csv, json, os, time
from openai import OpenAI
client = OpenAI(
api_key=os.environ["OPENAI_API_KEY"],
base_url=os.environ.get("OPENAI_BASE_URL", "https://api.openai.com/v1"),
)
MODELS = {"sol": os.environ["SOL_MODEL_ID"], "gpt4o": os.environ["GPT4O_MODEL_ID"]}
PRICES = { # USD per 1M tokens — copy from the pricing page, do not estimate
"sol": (float(os.environ["SOL_IN_PRICE"]), float(os.environ["SOL_OUT_PRICE"])),
"gpt4o": (float(os.environ["GPT4O_IN_PRICE"]), float(os.environ["GPT4O_OUT_PRICE"])),
}
def run(tag, prompt):
t0 = time.perf_counter()
r = client.chat.completions.create(
model=MODELS[tag],
messages=[{"role": "user", "content": prompt}],
temperature=0,
)
dt = time.perf_counter() - t0
u = r.usage
pin, pout = PRICES[tag]
cost = u.prompt_tokens / 1e6 * pin + u.completion_tokens / 1e6 * pout
return {
"model_tag": tag, "model_id": MODELS[tag], "latency_s": round(dt, 2),
"prompt_tokens": u.prompt_tokens, "completion_tokens": u.completion_tokens,
"cost_usd": round(cost, 6),
"answer": r.choices[0].message.content.strip()[:500],
}
rows = []
with open("tasks.jsonl", encoding="utf-8") as f:
for line in f:
task = json.loads(line)
for tag in MODELS:
rows.append({**task, **run(tag, task["prompt"])})
with open("results.csv", "w", newline="", encoding="utf-8") as f:
w = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
w.writeheader()
w.writerows(rows)
print(f"wrote {len(rows)} rows to results.csv")Run it:
python3 compare.pyWhy: Our channel reports *positioning* (Sol = cheap routine work, price cut 50%; Luna = long context and multi-step reasoning, more expensive), not a head-to-head against 4o. The only defensible comparison is the one you run on your own tasks with temperature=0. Cost is computed from token counts, so the math stays correct even when prices change.
How to check: wrote 10 rows to results.csv (5 tasks × 2 models). Open the file:
python3 -c "import pandas as pd; print(pd.read_csv('results.csv')[['id','type','model_tag','latency_s','prompt_tokens','cost_usd']])"You should see each id twice, once per model_tag, with different latency and cost values. The evaluation methodology behind this loop is covered in depth in How to Test and Evaluate AI Models: A QA Guide for Machine Learning.
What to do: Score each answer 0–2 per task (0 = unusable, 1 = usable after edits, 2 = send as-is). Blind yourself to the model name while scoring — sort the CSV by id and hide the model_tag column. Then fill this checklist:
answer.type=routine task, the cheaper model scored ≥ the other model, or the gap is ≤ 1 point.type=hard task, the model with the longer context window scored higher.cost_usd per model summed for the 5 tasks./v1/models and the pricing page.python3 -c "
import pandas as pd
d = pd.read_csv('results.csv')
print(d.groupby('model_tag')[['latency_s','cost_usd']].median())
print(d.groupby('model_tag')['cost_usd'].sum())
"Why: A model that is 5× cheaper but one point worse on hard reasoning is a routing decision, not a winner. Routine traffic goes to the cheap model; only requests that hold many simultaneous conditions go to the expensive one.
How to check: You get a two-row table with median latency and total cost per model, e.g.:
latency_s cost_usd
model_tag
gpt4o 2.10 0.0031
sol 1.40 0.0007The numbers themselves will differ — what must match is the *shape*: one row per model, both columns populated. If cost_usd is identical for both models, one of your price variables was left empty.

| Model | Difference (per our channel's data) | Price (per our channel's data) |
|---|---|---|
| GPT-6.1 Sol | "Near-Astra intelligence for a fifth of the price"; positioned as the cheaper workhorse for routine work: email summarization, text generation | Sol pricing reported as cut by **50%**; the digest headline frames it as **a fifth of the price** of Astra. Exact per-token figure: check the docs |
| GPT-6 Luna | Built for long context and complex multi-step reasoning where many conditions must be held at once; expected to beat Sol on hard benchmarks | More expensive than Sol; no number in our source — check the docs |
| GPT-4o | Not covered by our sources for this comparison: no benchmark, price or context-window figure available to us | Check the docs (pricing page and `/v1/models`) — we publish no number here |
Practical routing, in one line each:
GPT4O_MODEL_ID set, and decide on your own latency/cost/score table.For the broader 2026 landscape before you commit, see Best AI models and neural networks in 2026.
Problem. The script stops on the first request.
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model '<id>' does not exist', 'code': 'model_not_found'}}/v1/models. IDs are per-account and per-region.curl command, copy the exact ID, re-export it: export SOL_MODEL_ID="<exact-id>", then python3 compare.py.Problem. Only some rows appear in results.csv.
openai.RateLimitError: Error code: 429 - {'error': {'code': 'rate_limit_exceeded', 'message': 'Rate limit reached for requests'}}import time; time.sleep(2) inside the for tag in MODELS loop — or retry with backoff, then delete results.csv and rerun so the file is not a half-run mix.Problem. You see KeyError: 'SOL_MODEL_ID' before any request is sent.
KeyError: 'SOL_MODEL_ID'os.environ[...] raises instead of returning an empty string.env | grep -E 'SOL_|GPT4O_' to confirm they are visible), or put them in .env and add from dotenv import load_dotenv; load_dotenv() at the top of compare.py.Copy the exact Sol and 4o model IDs from /v1/models, run the five-task harness, and route routine work to the cheaper model while keeping hard multi-condition tasks on the stronger one. Re-run the harness after every release or pricing change, since both model names and numbers move faster than any comparison article.
Is GPT-6.1 Sol better than GPT-4o?
Our sources contain no head-to-head benchmark, price or context-window data for 4o, so no honest answer exists yet — run Step 2 with both model IDs and decide from your own results.csv. Anything else is a guess.
How much cheaper is Sol?
Our channel reports Sol's prices were cut by 50%, and its digest headline describes the model as near-Astra intelligence "for a fifth of the price". The absolute per-token number is not in our sources — check the docs.
When should I use Luna instead of Sol?
When the task needs a long context or several conditions held at once, which is exactly the positioning our channel gives Luna; it is also the more expensive option, so test it only on tasks your harness marks as hard.
Which model should summarize email and generate text?
Sol — our channel describes it as the discounted workhorse for routine jobs such as email summarization and text generation, with Luna aimed at complex multi-step reasoning instead.
Status: practical guide. Some statements come from vendors; verify in your environment.
Comparison of GPT-6.1 Sol and GPT-4o: performance, cost, and use cases to help you make the right choice. Our channel's sources cover only two of the three names in the headline: OpenAI split GPT-6 into Sol (the cheap workhorse, reported 50% price cut, digest headline "Near-Astra intelligence for a fifth of the price", discussed on Hacker News) and Luna (long context, multi-step reasoning, more expensive). Our sources contain no GPT-4o benchmark, price or context-window figures. This guide therefore never quotes…
Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.
| Entity | Type | Role |
|---|---|---|
| GPT-6.1 Sol vs GPT-4o | продукт/модель | упоминается в заголовке, TL;DR или разделах гайда |
| GPT-6.1 Sol comparison | продукт/модель | упоминается в заголовке, TL;DR или разделах гайда |
| which model is better GPT-6.1 Sol | продукт/модель | упоминается в заголовке, TL;DR или разделах гайда |
| Windows | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| macOS | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| Python | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| OpenAI | компания | упоминается в заголовке, TL;DR или разделах гайда |
| DeepSeek | компания | упоминается в заголовке, TL;DR или разделах гайда |
| GPT-6.1 | продукт/модель | упоминается в заголовке, TL;DR или разделах гайда |
| GPT-4o | продукт/модель | упоминается в заголовке, TL;DR или разделах гайда |
No independent confirmation is provided; source claims and editorial conclusions are separated below.
| Source | Type | Role |
|---|---|---|
| api.openai.com | внешний источник | ссылка из тела гайда |
Cite as: AI Release. GPT-6.1 Sol или GPT-4o: сравнение моделей и что выбрать. ai-release.org.