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.
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.
推薦主備模型組合
Flagship architecture refactoring, Claude Code & Codex sessions
24/7 coding loops, subagent fan-out, and high-volume automation
一鍵複製正式環境設定
Call /v1/responses directly via OpenAI SDK
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”为品牌名称,不代表底层数值精度承诺。第三方参考价格为公开估算值,具体请以各厂商官网最新公布为准。