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.
How bf16.ai Solves This Workflow
- 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.
Recommended Model Split
Flagship architecture refactoring, Claude Code & Codex sessions
24/7 coding loops, subagent fan-out, and high-volume automation
Copy-Paste Production Config
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.',
});Frequently Asked Questions
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.
Related Guides & Comparisons
All Use CasesNot affiliated with Anthropic, OpenAI, Google, Z.ai, Moonshot AI, DeepSeek, or any third-party provider listed on this page. All trademarks belong to their respective owners. "bf16" is a brand name, not a statement about numeric precision. Third-party reference rates are public approximations; check official pricing pages for exact current terms.