Project

bf16

0.0
The project is in a healthy, maintained state
Zero-dependency Ruby client for bf16.ai OpenAI-compatible (/v1/chat/completions, /v1/responses) and Anthropic Messages (/v1/messages) APIs with strict Zero Data Retention.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

bf16 (Official Ruby SDK)

Zero-dependency Ruby client for bf16.ai — uncensored 1M-context open-weight LLM inference API (DeepSeek V4.1 Flash, GLM-5.3, Kimi K3.1 Pro) with automatic prompt caching and strict Zero Data Retention (ZDR).

Installation

gem install bf16

Quickstart

require "bf16"

client = Bf16::Client.new(api_key: ENV.fetch("BF16_API_KEY"))

response = client.chat(
  model: Bf16::MODEL_DEEPSEEK_V41_FLASH,
  messages: [{ role: "user", content: "Summarize this SQL migration safely." }]
)
puts response.dig("choices", 0, "message", "content")

Documentation & Links