Models
Browse available models with specifications and pricing
GET /v1/models
Returns a list of all available models with their specifications, pricing, and supported features.
Request
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token with your API key |
Example Request
import os
import openai
client = openai.OpenAI(
base_url="https://api.blackfuel.ai/v1",
api_key=os.environ["BLACKFUEL_API_KEY"],
)
models = client.models.list()
for model in models.data:
print(f"Model: {model.id}")
print(f" Description: {model.description}")
print(f" Parameters: {model.supported_parameters}")
print()import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.blackfuel.ai/v1',
apiKey: process.env.BLACKFUEL_API_KEY
});
const models = await client.models.list();
for (const model of models.data) {
console.log(`Model: ${model.id}`);
console.log(` Description: ${model.description}`);
console.log(` Parameters: ${model.supported_parameters}`);
console.log();
}curl https://api.blackfuel.ai/v1/models \
-H "Authorization: Bearer $BLACKFUEL_API_KEY"Response
Success Response
200 OK{
"object": "list",
"data": [
{
"id": "deepseek-ai/DeepSeek-V4-Flash-0731",
"object": "model",
"created": 1785534044,
"created_at": "2026-07-31T21:40:44Z",
"owned_by": "blackfuel",
"name": "DeepSeek V4 Flash 0731",
"display_name": "DeepSeek V4 Flash 0731",
"description": "Sparse mixture-of-experts model (284B total, 13B active) with a 1M-token context window. A re-post-trained revision of DeepSeek-V4-Flash tuned for coding, reasoning, and agentic workflows, with configurable reasoning modes, tool calling, and structured outputs.",
"context_length": 1048576,
"task": "text-generation",
"input_modalities": ["text"],
"output_modalities": ["text"],
"supported_parameters": ["tools", "tool_choice", "structured_outputs", "reasoning_effort", "max_tokens", "temperature", "top_p"],
"reasoning": {
"supported_efforts": ["none", "low", "high", "max"]
},
"license": "MIT",
"anthropic_family_tier": null,
"is_family_default": false,
"lifecycle": "active",
"expiration_date": null,
"pricing": {
"prompt": "0.00000014",
"completion": "0.00000028",
"input_cache_read": "0.000000028",
"request": "0",
"image": "0"
}
}
]
}data carries one such entry per model.
Response Fields
| Field | Type | Description |
|---|---|---|
object | string | Always "list" |
data | array | Array of model objects. See Model Object. |
Model Object
| Field | Type | Description |
|---|---|---|
id | string | Unique model identifier to use in requests |
object | string | Always "model" |
created | integer | Unix timestamp of model availability |
created_at | string | The created instant as an RFC 3339 UTC timestamp |
owned_by | string | Model owner ("blackfuel") |
name | string | Human-readable model name |
display_name | string | Human-readable model name; same value as name |
description | string | Human-readable model description |
context_length | integer | Maximum context window, in tokens |
task | string | Endpoint/task type: text-generation or embedding |
input_modalities | string[] | The input modalities the model accepts, for example ["text"] or ["text", "image"]. Read it to find the models that take image input. |
output_modalities | string[] | Produced output modalities, e.g. ["text"] |
supported_parameters | string[] | The request parameters advertised for the model, e.g. ["tools", "tool_choice", "max_tokens", "temperature", "top_p"]. The endpoint also accepts the standard Chat Completions parameters. |
reasoning | object | null | Reasoning capability, or null for a non-reasoning model. See Reasoning Object. |
license | string | null | Model license, as a human-readable name such as "Apache License 2.0"; null when no license name is published |
anthropic_family_tier | string | null | Claude family the chat model is mapped to (sonnet, opus, haiku, fable, mythos); null when unmapped |
is_family_default | boolean | true on the one model per family that family aliases such as sonnet resolve to |
lifecycle | string | "preview", "active", or "deprecated" — the model's status. See Lifecycle. |
expiration_date | string | null | The date the model stops answering, as YYYY-MM-DD; null while no retirement is scheduled |
deprecation | object | The retirement contract. Present only when lifecycle is "deprecated". See Deprecation Object. |
pricing | object | Per-token pricing information |
created_at and display_name use the Anthropic Models API field names.
Pricing Object
| Field | Type | Description |
|---|---|---|
prompt | string | null | Cost per input token (USD); null when the model has no published rate |
completion | string | null | Cost per output token (USD); null when the model has no published rate |
input_cache_read | string | null | Cost per cached input token (USD); null when the model has no published cached-input rate |
request | string | Per-request charge (USD) |
image | string | Per-image charge (USD) |
Reasoning Object
Present on models that support reasoning; null otherwise. Read it for the reasoning_effort values each model accepts. For how reasoning behaves and how to choose an effort, see the reasoning guide.
| Field | Type | Description |
|---|---|---|
supported_efforts | string[] | The reasoning_effort values the model accepts, a subset of none, minimal, low, medium, high, xhigh, max |
Lifecycle
lifecycle is on every entry and is one of three values:
"active"— generally available. The model carries an availability commitment, and pricing or availability changes come with advance notice."preview"— served, priced, and billed exactly like an active model, but with no availability commitment: a preview model is retired on a reduced notice period, and repriced without the notice an active model gets."deprecated"— the model is scheduled for withdrawal and keeps serving until its sunset date. Where a retirement date is recorded, the entry carries the Deprecation Object with the sunset, the successor, and any migration note, andexpiration_dateholds that date. A deprecated model reads"deprecated"whatever commitment it was listed under.
Check lifecycle before making a model a production dependency. The notice a model gets before it is retired is set out in Model Lifecycle.
Retirement Signal
Branch on lifecycle, or on the presence of deprecation — the key is absent from every model that is not deprecated. Read expiration_date instead when you already parse a catalog that carries the sunset under that name; it is present on every entry, null until a retirement is scheduled, and otherwise holds deprecation.sunset as a plain date.
A deprecated entry, showing only the fields that carry the retirement:
{
"lifecycle": "deprecated",
"expiration_date": "2026-11-15",
"deprecation": {
"sunset": "2026-11-15T00:00:00Z",
"successor": "meta-llama/Llama-3.3-70B-Instruct",
"migration_note": "Tool-call formatting differs; re-run your evaluations."
}
}Deprecation Object
successor and migration_note are always present inside the object; either can be null.
| Field | Type | Description |
|---|---|---|
sunset | string | RFC 3339 date-time at which the model stops answering requests |
successor | string | null | The id to migrate to; null when the retirement names no replacement |
migration_note | string | null | One sentence on what to check when moving to the successor; null when there is nothing to flag |
For the notice you get before sunset and what stays fixed until then, see Model Lifecycle.
Retrieve a Single Model
GET /v1/models/{model_id}
Returns one model object — the same shape as an entry in data, documented in Model Object.
Put the model ID in the path unencoded: the / in vendor/model is a literal path separator. A percent-encoded ID redirects with 307 to the unencoded path.
import os
import openai
client = openai.OpenAI(
base_url="https://api.blackfuel.ai/v1",
api_key=os.environ["BLACKFUEL_API_KEY"],
)
model = client.models.retrieve("deepseek-ai/DeepSeek-V4-Flash-0731")
print(f"Context length: {model.context_length}")
print(f"Prompt price: {model.pricing['prompt']} USD/token")import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.blackfuel.ai/v1',
apiKey: process.env.BLACKFUEL_API_KEY
});
const model = await client.models.retrieve('deepseek-ai/DeepSeek-V4-Flash-0731');
console.log(`Context length: ${model.context_length}`);
console.log(`Prompt price: ${model.pricing.prompt} USD/token`);curl https://api.blackfuel.ai/v1/models/deepseek-ai/DeepSeek-V4-Flash-0731 \
-H "Authorization: Bearer $BLACKFUEL_API_KEY"Fields beyond the OpenAI model schema — context_length, pricing, reasoning, and the rest — reach the OpenAI SDKs as extra attributes. They are present at runtime; a Python type checker does not know them.
Available Models
The full model list — with context windows, per-token pricing, supported features, and EU variants — is maintained in one place and kept in sync with the live platform:
- Model catalog — human-readable tables for chat, embedding, and EU-hosted models.
GET /v1/models(above) — the same data, live, as JSON.
Avoid hard-coding the model list in your application; query GET /v1/models so new launches and retirements are picked up automatically.
Error Responses
To read an error response and decide whether to retry, follow Error Handling.