跳至主要内容
OPENAI PROTOCOL

Drop-In OpenAI Chat Completions & Responses API Migration

Migrate Codex CLI and modern OpenAI SDK apps seamlessly to uncensored 1M-context models via both /v1/responses and /v1/chat/completions.

为什么常规 API 或订阅套餐在这里容易卡壳

Newer agent tools like OpenAI Codex CLI require the newer /v1/responses wire format, which many open-weight hosts still have not implemented.

bf16.ai 的架构级解法

  • bf16.ai natively supports BOTH /v1/chat/completions and /v1/responses at https://api.bf16.ai/v1.
  • Drop-in compatibility with official OpenAI TypeScript, Python, Go, and Rust SDKs.
  • Eliminate OpenAI 30-day abuse-log retention and safety-classifier refusals in one config change.

推荐主备模型组合

Smart Alias: bf16/auto:coding
Primary Model
GLM-5.3 Uncensored
zai-org/glm-5.3-uncensored
$1.35 in · $0.250 cached · $4.20 out / 1M · 1M tokens

Flagship architecture refactoring, Claude Code & Codex sessions

Secondary / Fast Subagent
DeepSeek V4.1 Flash Uncensored
deepseek/deepseek-v4.1-flash-uncensored
$0.26 in · $0.045 cached · $1.00 out / 1M · 1M tokens

24/7 coding loops, subagent fan-out, and high-volume automation

一键复制生产级配置

Call /v1/responses directly via OpenAI SDK

responses-demo.ts
import OpenAI from 'openai';

const openai = new OpenAI({
  baseURL: 'https://api.bf16.ai/v1',
  apiKey: process.env.BF16_API_KEY,
});

const response = await openai.responses.create({
  model: 'zai-org/glm-5.3-uncensored',
  input: 'Explain epoll edge-triggered pitfalls in Go netpoll.',
});
配套客户端接入文档

常见问题解答

Does Codex CLI work out of the box with bf16.ai?

Yes — see /docs/clients/codex for the exact ~/.codex/config.toml snippet.

Do I include /v1 for OpenAI endpoints?

Yes! OpenAI-compatible SDKs use https://api.bf16.ai/v1, while Anthropic SDKs use https://api.bf16.ai without /v1.

Are streaming tool calls supported on /v1/responses?

Yes, streaming events and tool calling work across both /v1/responses and /v1/chat/completions.

延伸阅读与对比

查看全部实战场景

bf16.ai 与 Anthropic、OpenAI、Google、Z.ai、Moonshot AI、DeepSeek 及本页提及的任何第三方厂商无隶属关系,所有商标归其各自所有者所有。“bf16”为品牌名称,不代表底层数值精度承诺。第三方参考价格为公开估算值,具体请以各厂商官网最新公布为准。