GPT-6.2 与 Gemini 4 编程实测对比

当我看到 OpenAI 的 GPT-6.2 Sol 和 Google 的 Gemini 4 Neon 在 11 月 17 日和 18 日相隔一天发布时,我怀疑这个时间安排是否是计划好的。两家最大的 AI 公司如此近距离地发布产品很不寻常,这在每天使用这些工具的人中引起了很多侧目。
我想知道这些新模型彼此对比时表现如何。
当我看 Google 自己的编码测试时,我没想到它们几乎打成平手,Neon 略占优势。从经验来看,在构建时,OpenAI 在 Codex 中的模型对我来说一直表现更好,所以我并没有真的预料到会这样。而当每个模型在各自公司的工具中运行时,显现出的差距完全出乎我的意料。
我还没有亲自运行过 Sol 或 Neon。我所做的是用它们所在的工具,在更早的模型上构建了两个项目:Codex 中的 Evidence Desk 和 Antigravity 中的 PageScore。所以本文结合我自己的构建项目和已公布的数据,探讨这些工具会对它们内部的模型产生什么影响。
Sol 不是 OpenAI 的旗舰。它是一款面向日常编码和更便宜工作的模型,就像一辆日常代步车:总能把你送到想去的地方,而不必是豪华 SUV。我把它看作 Camry 或 Corolla。它拥有出色的驾驶模式、出色的速度和出色的操控,一辆能舒适地把你从 A 点带到 B 点的车该有的一切它都有。它不会让你太怀念豪华 SUV。
截至 2026 年 11 月,Sol 的价格是每百万输入 Token 2 美元、每百万输出 Token 10 美元,与它之前的 Sol 相同;从 Plus 计划起,你可以在 ChatGPT 和 Codex 中使用它。
在 Google 的产品阵容中,Neon 的定位介于 Carbon 和 Hydrogen 之间。Carbon 是重量级的推理模型,Hydrogen 则是便宜、快速的那一个。撰写本文时,Neon 的价格为每百万输入 Token 3 美元、每百万输出 Token 15 美元;它默认以 high 档思考,并且 API 没有免费额度,尽管 Hydrogen 仍然有。在 Gemini 应用和 Antigravity 中,你需要 Pro 或 Ultra。
Neon 比 Sol 更贵、又没有免费额度,这让我很难理解,因为 Sol 提供了相近的性能——至少在 Google 自己的发布基准测试中是如此——而定价却友好得多。对于那些想要开始接触更高层次 AI 的人来说,这样的定价更舒适,也更友好。
Antigravity 还有一个叫 Orchestrator 的东西:Neon 负责规划工作,Hydrogen 负责构建,全都在同一个会话中完成。我认为这是个聪明的做法,因为它把两个模型用在同一个任务上,从而带来更大的灵活性和更好的结果。
工具即基础
我并不完全信任一家公司自己给出的基准测试表,因为这些测试是在它们自己优化过的环境里、以能让模型发挥最佳表现的条件下运行的。它们并不知道我在做什么,也不知道我的任务有多重。我更信任那些贴合我日常工作流的实际测试。我在写 Reflection 的 Beam 时也有同样的感觉:发布数据看起来很惊艳,直到你去核实托管这个模型需要什么条件。
不过,Google 的发布表格是唯一把 Sol 和 Neon 在编程任务上并排测试的地方。在 Terminal-bench 4.1 上,Neon 得分 65.2%,Sol 为 61.5%;在 FrontierCode 2.0 上则是 46.2 对 43.8。
Google 还把一项名为 SWE-sweep 的测试跑了两遍,分别使用两套不同的 harness。harness 就是控制模型的代码,它决定打开哪些文件、运行哪些命令,并全程监督模型、指导它如何工作。Codex 和 Antigravity 都是 harness。
在中立的 harness(名为 mini-SWE)上,Neon 解决了 12.8% 的任务,Sol 为 11.6%。而在各自公司的工具中,Neon 在 Antigravity 里跃升至 39.0%,Sol 在 Codex 里则降至 8.3%。
Gemini 4 Neon 与 GPT-6.2 Sol 的 SWE-sweep 结果:使用同一个中立的 harness,以及各自公司自有的工具。数据:Google 厂商自报数据,2026 年 11 月。图片由作者制作。
模型要想在某个工具里跑得更好,就应当针对该工具做定制,并且能够与工具的工作方式形成互补。Google 称 Antigravity 的 harness 是与 Gemini 联合训练的,这正符合这一点。
Google 并未说明究竟是什么带来了这一跃升,但一个可能的原因是会检查自身改动的子智能体。读到这一点时,我想起了自己在 PageScore 项目上与 Antigravity 协作的方式。目前还没有人公布 Neon 在 Codex 中运行、或 Sol 在 Antigravity 中运行的结果。
OpenAI 自己对 Sol 的编程能力说法则不同。它称 Sol 在 FrontierCode 2.0 上与自家旗舰 GPT-6.2 Astra 的差距在 0.5 分以内,而成本约为后者的五分之一。
工具的重要性可能与模型相当,因为工具就像模型所立足的地基。工具必须根基扎实、组织有序,模型才能进来、安稳落座,并在良好的环境中工作。
用 Codex 和 Antigravity 构建
Evidence Desk 是我用 Codex 构建的一个项目。它会跨多个来源核查各种说法——主要是技术性说法、数字和事实——以确保你所说的内容正确无误,并且与来源一致。作为一名技术写作者,我在这方面很吃力,写完之后还得专门腾出时间来做核查。我想把这部分工作流自动化、省下时间,于是做出了 Evidence Desk。我还把它发布在 ShipAI 上,那是 TDS 展示真实 AI 工作成果的视频栏目。
而 PageScore 则是我在 Antigravity 里做的一个有趣项目,用来让自己从日常工作中抽离一下。有一天我朋友在看书,让我用我的 Spotify 歌单放点音乐。我手上没有哪首歌能配得上她正在读的内容的氛围,而她一直抱怨我把她的氛围给毁了。Spotify 并不知道我们在读什么,它只是放音乐。于是我就想,怎么才能让声音和你正在读的内容相匹配,PageScore 就是这么来的。它会追踪你正在读的章节、篇目或段落,并让音乐的节奏与内容的节奏相匹配。
从经验来看,Codex 一开始就乐于承担大部分重活。它拿到提示词后一路推进,能直接给你一个完成的项目。Antigravity 也能做到这一点,但当你的项目被拆分成一层层的任务时,它表现得更好:它完成一层,你检查并修正,然后再给它下一个提示词。这让我想起大学软件工程课上的增量模型——先做出一个小模块,测试它,然后才继续做下一个。
有一点我无法放弃,那就是编码智能体能够进入我的文件,在我什么都不做的情况下创建和编辑它们。我不必拖拽文件,也不必粘贴截图让它去找东西。Antigravity 也能做到这一点,但我更喜欢 Codex 的方式。它会进入我的终端,找到自己需要的东西。
这也有不利的一面。Codex 以前会安装我并不需要的软件包。我在做别的事情,Codex 在后台运行,突然我的 MacBook 屏幕上弹出一个“允许”提示。我完全不知道它是从哪来的,直到我意识到它在安装我根本不需要的软件包。
在构建 Evidence Desk 时,Codex 有一点做得非常对,让我十分惊讶,甚至叫了几位科技圈的朋友过来看。它能够区分在不同语境中使用同一个数字的不同说法。它不是只看到一个数字,就在所有地方都一视同仁地对待它。
当我用 Antigravity 构建 PageScore 时,有些地方出了问题。它没有把 CSS 处理好,视觉效果和样式也不理想。对我来说,处理动画流程的代码看起来也不好,而这对于一个围绕情绪打造的工具来说至关重要。
为思考付费
两家公司都把模型的思考按输出 Token 计费。我原本不知道模型思考也会被收费,这让我很意外。模型每思考一次都要付费,费用很快就会累积起来,我认为这不该是它的运作方式。
当用户知道思考是要付费的,就会让他们变得保守,从而限制了探索的意愿。他们就不会真的愿意去尝试某些东西。
A Computing for Geeks 的测试给 Neon 在每个思考等级上都出了一道调试题。在 low 等级下,它使用了 1,924 个思考 Token,花费 0.0373 美元。在默认的 high 等级下,它使用了 6,766 个思考 Token,花费 0.1128 美元,其中约 90% 用于思考。在 xhigh 等级下,它耗时 205.8 秒,花费 0.3439 美元。每个等级都找出了相同的两个首要 bug 成因。
为一个 bug 等上三分多钟,我觉得太久了。如果它真能解决问题,我不介意等。但以我做过的调试量来看,一个智能体不该为一道题花三分钟。问题总是接踵而至,就算你修好了这一个,它有多大可能是最后一个 bug,或者不会由此引出新 bug?不怎么写代码的人或许能接受,只要它能解决问题就行。
原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(GPT-6.2 Sol vs. Gemini 4 Neon for Coding in Codex and Antigravity)
When I saw OpenAI'sGPT-6.2 Sol and Google's Gemini 4 Neon launch a day apart, on November 17 and 18, I wondered whether the timing was planned. Two of the biggest AI companies launching that close together is unusual, and it raised a lot of eyebrows among people who use these tools every day.
I wanted to know how these new models would hold up against each other.
When I looked at Google's own coding tests, I did not expect them to be almost tied, with Neon having the edge. From experience, OpenAI's models in Codex have always been the better performers for me while building, so I was not really expecting that. And when each model ran inside its own company's tool, the gap that opened up was not what I was expecting at all.
I have not run Sol or Neon myself yet. What I have done is build two projects with the tools they live in, Evidence Desk in Codex and PageScore in Antigravity, on earlier models. So this piece looks at what those tools do to the models inside them, using my own builds and the published numbers.
Sol is not OpenAI's flagship. It is a model meant for everyday coding and cheaper work, like a daily driver that can always get you where you want to go without being a luxury SUV. I see it as a Camry or a Corolla. It has great drive modes, great speed and great handling, and everything you would want in a car that takes you from point A to point B comfortably is there. It does not make you miss the luxury SUV that much.
As of November 2026, Sol costs $2 per million input tokens and $10 per million output tokens, the same as the Sol before it, and you can use it in ChatGPT and Codex from the Plus plan up.
Neon sits between Carbon and Hydrogen in Google's lineup. Carbon is the heavy reasoner, and Hydrogen is the cheap, fast one. At the time of writing, Neon costs $3 per million input tokens and $15 per million output tokens; it thinks at high by default, and there is no free tier on the API, even though Hydrogen still has one. In the Gemini app and in Antigravity, you need Pro or Ultra.
Neon costing more than Sol and having no free tier is hard for me to understand, because Sol offers similar performance, at least in Google's own launch benchmarks, with much friendlier pricing. That pricing is more comfortable and more welcoming for people trying to get started with higher-level AI.
Antigravity also has something called the Orchestrator, where Neon plans the work and Hydrogen does the building, all in one session. I think that is a smart idea, because it puts two models on the same task, which gives you more flexibility and better results.
The tool is the foundation
I do not fully trust a company's own benchmark table, because companies run these tests on their own optimized setups, in the conditions that get the best performance out of the model. They do not know what I am working on or how heavy my tasks are. I trust practical tests that match my everyday workflow more. I had the same feeling when I wrote about Reflection's Beam. The launch numbers looked impressive, until you checked what it takes to host the model.
Still, Google's launch table is the only place Sol and Neon were tested side by side on coding. On Terminal-bench 4.1, Neon scored 65.2 percent and Sol 61.5 percent, and on FrontierCode 2.0 it was 46.2 against 43.8.
Google also ran a test called SWE-sweep twice, with two different harnesses. A harness is the code that controls the model. It decides which files to open and which commands to run, and it watches over the whole model and guides it on how to work. Codex and Antigravity are both harnesses.
On the neutral harness, called mini-SWE, Neon solved 12.8 percent of tasks and Sol 11.6 percent. Inside their own tools, Neon jumped to 39.0 percent in Antigravity, while Sol dropped to 8.3 percent in Codex.

SWE-sweep results for Gemini 4 Neon and GPT-6.2 Sol, on the same neutral harness and inside each company's own tool. Data: Google's vendor-reported figures, November 2026. Image by the author.
For a model to run better in a tool, it should be tailored for that tool, and it should be able to complement how the tool works. Google says Antigravity's harness was co-trained with Gemini, which fits that.
Google has not said exactly what caused the jump, but one of its possible reasons is subagents that check their own changes. When I read that, it reminded me of how I worked with Antigravity on PageScore. Nobody has published Neon running inside Codex or Sol running inside Antigravity yet.
OpenAI's own coding claim for Sol is different. It says Sol comes within 0.5 points of its flagship, GPT-6.2 Astra, on FrontierCode 2.0 at about a fifth of the cost.
The tool can matter as much as the model, because the tool is like the foundation the model sits on. The tool has to be properly rooted and well organized, so the model can come in, sit comfortably and work in a good environment.
Building with Codex and Antigravity
Evidence Desk is a project I built using Codex. It checks claims, mostly technical claims, numbers and facts, across multiple sources, to make sure what you are saying is correct and in line with the source. As a technical writer, I struggle with that, and after writing I would have to set aside time for claim checking. I wanted to automate that part of my workflow and save time, so I built Evidence Desk. I also published it on ShipAI, TDS's video showcase for real-world AI work.
PageScore, on the other hand, was a fun project I built in Antigravity to take my mind off my usual work. My friend was reading one day and asked me to play music from my Spotify playlist. I did not have any song to match the mood of what she was reading, and she kept complaining that I was ruining the mood for her. Spotify does not know what we are reading. It just plays the music. So I wondered how I could match sounds to what you are reading, and that was how I created PageScore. It tracks the sections, chapters or paragraphs you are reading and matches the tempo of the music to the tempo of the content.
From experience, Codex is comfortable doing most of the heavy lifting from the start. It takes the prompt, runs with it, and can give you a finished project. Antigravity can do that too, but it works better when your project is broken down into levels of tasks, where it finishes one level, you check it and make corrections, and then you give it the next prompt. It reminded me of the incremental model from my software engineering class at university, where you build one small piece, test it, and only then move on to the next.
One thing I cannot give up is that a coding agent can go into my files and create and edit them without me doing anything. I do not have to drag and drop files or paste screenshots for it to find something. Antigravity does this too, but I prefer the way Codex does it. It goes into my terminal and finds what it needs.
That has a downside. Codex used to install packages I did not need. I would be working on something else while Codex ran in the background, and suddenly an "allow" prompt would appear on my MacBook screen. I had no idea where it came from, until I realized it was installing packages I did not even need.
Something Codex got right while building Evidence Desk really surprised me, to the point that I called some friends in tech to come and look at it. It was able to tell the difference between claims that use the same number in different contexts. It did not just see a number and treat it the same everywhere.
When I built PageScore with Antigravity, some things went wrong. It did not get the CSS right, and the visuals and styling were not good. The code that handled the flow of the animations did not look good to me either, which mattered a lot for a tool built around mood.
Getting billed for thinking
Both companies bill the model's thinking as output tokens. I did not know you could get charged for a model's thinking, and that surprised me. Paying every time a model thinks can add up quickly, and I do not think it is how it should work.
When users know they are getting billed for thinking, it makes them act conservatively, which limits their sense of exploration. They will not really want to try certain things.
A Computing for Geeks test gave Neon one debugging problem at every thinking level. At low, it used 1,924 thinking tokens and cost $0.0373. At high, the default, it used 6,766 thinking tokens and cost $0.1128, with about 90 percent of that going to thinking. At xhigh, it took 205.8 seconds and cost $0.3439. Every level found the same top two causes of the bug.
Waiting over three minutes for one bug feels too long to me. If it delivers, I do not mind waiting. But from the amount of debugging I have done, an agent should not take three minutes for one problem. There is always more coming, and even when you fix that one, what are the chances it is the last bug, or that a new one will not come from it? People who do not code much might be comfortable with it, as long as it delivers.
There is no similar test for Sol yet. OpenAI says its new models get better results with fewer output tokens, but it has not given a number. On the Plus plan, OpenAI estimates 17 to 180 local messages every five hours on Sol, depending on the task.
I think that range is good. People who work with AI agents can code for five hours straight, but I do not think most will reach 180 messages. Heavier tasks will eat into it faster, but for most of my work, I would hardly see the message telling me my limit has run out.
If I were paying out of my own pocket, cost would matter. I am not comfortable with how much more Neon costs, and I dislike being told to stop working in the middle of a flow state because I hit a limit. So on cost, Sol wins for me.
Choose between Codex and Antigravity based on the kind of work you do, how your workflow is, and how you enjoy working. If you enjoy constant checks, follow-ups, and breaking a project down into tasks, Antigravity suits you. If you like to let the agent do most of the heavy lifting and then come in with corrections, Codex is your best bet.
For everyday coding, I would choose Sol in Codex. It ticks most of the boxes I want in a tool I use every day, and it costs less per token. Neon is not the everyday driver for me. As a heavy user, I already use a lot of tokens and I am looking for ways to cut them down, not add more.
The person who should pick Neon is someone who is fine with the cost and loves breaking their work into segments with close monitoring. I multitask a lot, so I want to give the agent a task and go do something else, like design an architecture or a blueprint.
Building these two projects taught me that whichever tool you pick, you have to know what you are doing. You need a blueprint first, with the steps from the beginning of the project to the end. You also need to prompt well, because these agents are not in our heads. You have to get your ideas and plans across properly to get good results. And you need a good eye for design, because a coding agent will mostly give you what it thinks is good, which might not be good for your users, or for you.
I trust both of them. They are just for different kinds of users.
I write about AI and ML engineering, especially the everyday choices developers make about which models and coding tools to build with. You can subscribe to my newsletter if you would like more of that.
Step by step tutorial from a raw dataset to a bar chart race video
November 15, 20207 min read
Scale and Host LLMs on AWS
The exciting new world of designing conversation driven APIs for LLMs
July 28, 20258 min read
I tested LLM routing to understand why switching models mid-session can erase the savings promised by cheaper inference
October 20, 202623 min read
Enterprise Document Intelligence [Vol.1 #B4] - A diagnostic and five composable operations, not a decision tree
September 3, 202619 min read
Abacus.AI and the case for unified AI workflows
Practical data visualization guide.
September 11, 20215 min read
Introduction to GANs in Python
June 11, 20208 min read
A conversational data analysis pattern for increased transparency and safety with reduced costs
January 26, 202411 min read
原文为英文,正文由自动抓取并保留原文。
原文发布于 Towards Data Science(GPT-6.2 Sol vs. Gemini 4 Neon for Coding in Codex and Antigravity),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。