How-toOfficialSelected

OpenAI 批处理 API 新增 2h/8h 完成窗口,最高省 40% 费用

Why we picked it

批量跑任务的朋友注意了,OpenAI 批处理现在能选 2h 窗口省 30%、8h 窗口省 40%。加上 continuation ID 还能提高排队优先级。做离线批处理、数据标注的团队可以直接把成本砍下来,实时业务照旧走 Standard 就行。

OpenAI 开发者团队介绍 Batch API 的 completion_window 参数新选项:设为 2h 可比 Standard 每 token 便宜 30%,设为 8h 可便宜 40%。

Image · @OpenAIDevs
Body

工作机制是请求进入批处理队列,在设定的完成窗口内排队执行,容忍更长等待时间换更低单价。官方还提示使用 continuation ID:首次提交任务时设置并在后续请求中复用,可获得更高的队列优先级。

对开发者而言,非实时场景如批量摘要、数据标注、日志分析可以直接切换到 2h/8h 窗口降低成本;需要即时响应的在线业务仍应保留 Standard 模式,按延迟敏感度分层调用。

Original · @OpenAIDevs

Set “completion_window” to “2h” for 30% less per token than Standard, or “8h” for 40% less. Set a continuation ID when you send the notes and reuse it on follow-up requests to give them higher queue priority. developers.openai.com/api/docs/guide…📊 12 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include OpenAI, Batch API, prompt engineering, developer tools.

Primary source verification: published directly by @OpenAIDevs with first-party authority.