bf16 / sdk
Official zero-dependency PHP SDK for bf16.ai — uncensored 1M-context LLM inference API with prompt caching and strict Zero Data Retention.
v0.1.0
2026-11-26 02:01 UTC
Requires
- php: >=8.1
- ext-curl: *
- ext-json: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-27 02:30:22 UTC
README
Official zero-dependency PHP 8.1+ client for bf16.ai — uncensored 1M-context open-weight LLM API with prompt caching and strict Zero Data Retention (ZDR).
Installation
composer require bf16/sdk
Quickstart
<?php require 'vendor/autoload.php'; use Bf16\Client; $client = new Client(getenv('BF16_API_KEY')); $reply = $client->chat(Client::MODEL_DEEPSEEK_V41_FLASH, [ ['role' => 'user', 'content' => 'Review this SQL migration for unsafe string concatenation.'], ]); echo $reply['choices'][0]['message']['content'] . PHP_EOL;
Documentation & Links
- Website & Console: bf16.ai
- API Documentation: bf16.ai/docs
- Open-Source Grants (
$50API credits): bf16.ai/open-source