Salta al contenuto principale
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.

Why Standard APIs & Subscriptions Break Here

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

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

Copy-Paste Production Config

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.',
});
Matching Client Setup Guides

Domande frequenti

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.

Guide e confronti correlati

Tutti i casi d'uso

Not 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.