BLACKFUEL

Overview

Blackfuel is an OpenAI-compatible inference API for open-weight models, with transparent per-token pricing and EU-hosted model variants

Blackfuel serves open-weight models over an OpenAI Chat Completions-compatible API. Point any OpenAI client library at https://api.blackfuel.ai/v1, name a Blackfuel model, and your existing code runs unchanged — same request shape, same response shape, same SDKs.

Your first request

Create a key on the API Keys page, then export it:

export BLACKFUEL_API_KEY="bf_mykey_xxxxxx"

Send a chat completion:

import os
import openai

client = openai.OpenAI(
    base_url="https://api.blackfuel.ai/v1",
    api_key=os.environ["BLACKFUEL_API_KEY"],
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Flash-0731",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)

print(response.choices[0].message.content)
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.blackfuel.ai/v1',
  apiKey: process.env.BLACKFUEL_API_KEY,
});

const response = await client.chat.completions.create({
  model: 'deepseek-ai/DeepSeek-V4-Flash-0731',
  messages: [{ role: 'user', content: 'What is the capital of France?' }],
});

console.log(response.choices[0].message.content);
curl https://api.blackfuel.ai/v1/chat/completions \
  -H "Authorization: Bearer $BLACKFUEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/DeepSeek-V4-Flash-0731",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'

The Quickstart extends this with streaming and model discovery. Production clients retry on 429 and 5xx — see the error-handling guide for retry logic.

Base URL

Send all API requests to:

https://api.blackfuel.ai/v1

Set this as base_url (Python) or baseURL (JavaScript) and pass your key as a bearer token. Authentication covers key format and storage; Migrate from OpenAI covers moving an existing integration.

Endpoints

EndpointDescription
POST /v1/chat/completionsChat-based completions with conversation history
POST /v1/embeddingsTransform text into vector embeddings
GET /v1/modelsList available models
POST /v1/messagesAnthropic Messages-compatible completions

Responses stream token by token when you set stream: true — see Streaming.

Models

Blackfuel serves chat, reasoning, vision, and embedding models. The catalog changes as models launch and retire, so read it at run time:

  • GET /v1/models — the live source for model IDs, context windows, and pricing. Query it from any application that depends on those values.
  • Available Models — the same catalog as a browsable reference; EU-hosted variants are listed in a separate table.

Use the model ID from either source as the model parameter.

Next steps

PageWhat it covers
QuickstartInstall a client, stream responses, list models
AuthenticationKey format, storage, and rotation
Migrate from OpenAIMove an existing OpenAI integration to Blackfuel
Rate LimitsRequest and token limits, and how to stay within them
Best PracticesRunning Blackfuel in production
Connect via MCPReach Blackfuel models from MCP-compatible clients

Run Blackfuel inside an existing tool with the cookbooks: VS Code Copilot, GitHub Copilot CLI, Claude Code, Pi Coding Agent, and LangSmith.

On this page