返回顶部
热门问答 更多热门问答
技术文章 更多技术文章

刚刚,xAI 发布 Grok Code Fast 1 编程模型,快、便宜、免费

[复制链接]
链载Ai 显示全部楼层 发表于 2 小时前 |阅读模式 打印 上一主题 下一主题

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">刚刚,xAI扔出「速度炸弹」的编程模型:Grok Code Fast 1!

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">这个全新的推理模型专门为智能体编程打造,现在已经在GitHub Copilot、Cursor、Cline、Kilo Code、Roo Code、opencode和Windsurf上免费开放了!

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">全新轻量级架构

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">xAI这次没有走寻常路,他们从头开始构建了Grok Code Fast 1,采用了全新的轻量级模型架构

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">结合创新的加速服务效率改进,Grok Code Fast 1在速度和经济性上都树立了新标准。

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">通过xAI API,这个模型的定价主打一个便宜得不讲道理:

    ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;" class="list-paddingleft-1">
  • 输入token:$0.20/百万

  • 输出token:$1.50/百万

  • 缓存token:$0.02/百万

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">

全栈通吃

Grok Code Fast 1在全栈开发中表现出色,特别擅长TypeScript、Python、Java、Rust、C++和Go

@DannyLimanseta使用Grok Code Fast 1,仅用一天时间就构建了下面这个游戏:

在训练过程中,xAI团队将终端用户满意度作为首要目标,通过真实世界的人类评估来衡量。

开发者社区一致评价这个模型快速、可靠、经济实惠,完美适合日常编程任务。

限时免费

xAI(@xai)宣布,接下来7天内,Grok Code Fast 1将在Cursor、GitHub Copilot、Cline、opencode、Windsurf、Roo Code和Kilo Code等流行的智能体编程平台上免费使用。

他们还贴心地准备了一份使用指南,教你如何从Grok Code Fast 1中获得最佳效果:

链接见文末

使用技巧

根据官方文档,要让Grok Code Fast 1发挥最大威力,有几个关键点:

提供必要的上下文

虽然大多数编程工具会自动收集上下文,但明确选择特定代码作为上下文会更好。比如不要简单说「让错误处理更好」,而是说「我的错误代码定义在@errors.ts中,你能用它作为参考,为@sql.ts中的查询添加适当的错误处理和错误代码吗?」

设定明确的目标和要求

避免模糊的提示词。与其说「创建一个食物追踪器」,不如说「创建一个食物追踪器,当我输入食物项目时,它能显示每天按不同营养素划分的卡路里消耗分解。让我既能看到概览,也能获得高层次趋势」。

持续优化你的提示词

Grok Code Fast 1的效率极高,速度是其他领先智能体模型的4倍,成本仅为1/10。这让你能以前所未有的速度和经济性测试复杂想法。

分配智能体任务

Grok Code Fast 1更适合智能体风格的任务,而不是一次性查询。它擅长快速、不知疲倦地为你找到答案或实施所需的更改。

命令行工具

虽然官方还没有推出CLI命令行工具,但已经有开发者分享了在Codex CLI上运行的方法:

$ export XAI_API_KEY=your-xai-key
$ codex -p grok-code-fast

技术细节

Grok Code Fast 1是一个推理模型,通过chunk.choices[0].delta.reasoning_content暴露其思考轨迹(仅在流式模式下可用)。

它提供原生工具调用的一手支持,专门为原生工具调用而设计。

xAI建议使用原生调用而不是基于XML的工具调用输出,后者可能会影响性能。

对于缓存命中的优化也很关键。在智能体任务中,模型按顺序使用多个工具时,大部分前缀保持不变,因此会自动从缓存中检索以加快推理速度。

社区反馈

Vals AI(@_valsai)对Grok Code进行了评估,发现在三个编程基准测试中,该模型的表现不及Grok 4。

在LiveCodeBench上,Grok Code的准确率为62%,与Claude Sonnet 4等其他推理模型相似,但成本约为其十分之一

在国际信息学奥林匹克(IOI)测试中,Grok Code得分4.3%,在12个模型中排名第8。在SWE-Bench上,Grok Code以57.6%的成绩在15个模型中排名第4。

Grok官方回应说,Grok Code Fast针对速度和低成本进行了优化,非常适合快速编码任务,他们正在根据这些反馈进行迭代以提高准确性。

Grummz(@Grummz)分享了一个优化技巧:

在Grok完成所有工作后,代码可能会很混乱。告诉Grok假装自己是X公司的首席工程师,审查并重构代码。效果非常好。

马斯克站台

Elon Musk(@elonmusk)也第一时间亲自为Grok Code V1.0站台:

试试@Grok Code V1.0,让我们知道需要改进什么。将快速发展以满足你的需求。

Grok官方账号也主动回应互动道:

感谢Elon!很高兴大家能试用Grok Code V1.0。分享你的想法,我会整合反馈快速升级。你最优先希望改进什么?

xAI团队表示,这只是开始,他们致力于为Grok的编程能力提供持续更新,以提高用户满意度和生产力。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

链载AI是专业的生成式人工智能教程平台。提供Stable Diffusion、Midjourney AI绘画教程,Suno AI音乐生成指南,以及Runway、Pika等AI视频制作与动画生成实战案例。从提示词编写到参数调整,手把手助您从入门到精通。
  • 官方手机版

  • 微信公众号

  • 商务合作

  • Powered by Discuz! X3.5 | Copyright © 2025-2025. | 链载Ai
  • 桂ICP备2024021734号 | 营业执照 | |广西笔趣文化传媒有限公司|| QQ