Search by

bf16 / sdk

bf16ai

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

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