Get started
Models
Every model works on all three API formats with the same key and the same balance. Send its ID in model. Prices per 1M tokens are in Prices.
Uncensored models have their refusal behavior removed. Standard models keep the safety behavior they were released with.
Available models
| Model | Modalities | Context | Reasoning |
|---|---|---|---|
Kimi K3.1 Pro Uncensoredkimi-k3.1-pro-uncensored | 1M | low, high, maxdefault high | |
DeepSeek V4.1 Flash Uncensoreddeepseek-v4.1-flash-1017-uncensored | 1M | off, low, high, maxdefault high | |
GLM 5.3 Flash UncensoredNewglm-5.3-flash-uncensored | 1M | low, high, maxdefault high | |
Kimi K3.1 ProNewkimi-k3.1-pro | 1M | low, high, maxdefault high | |
DeepSeek V4.1 Flashdeepseek-v4.1-flash-1017 | 1M | off, low, high, maxdefault high | |
MiniMax M3.1 Flashminimax-m3.1-flash | 1M | low, high, maxdefault high |
Prices
Prices are in $ per 1M tokens: input, cached input and output. Reasoning is billed as output. A price marked "from" is the lowest the model is billed at. Promo prices are temporary and can change when the promotion ends. Pricing and top-ups in detail: Pricing.
| Model | Input | Cached input | Output |
|---|---|---|---|
| Kimi K3.1 Pro Uncensored | $3.00 | $0.30 | $9.00 |
| DeepSeek V4.1 Flash Uncensored | from $0.25 | from $0.04 | from $0.90 |
| GLM 5.3 Flash Uncensored | $0.30 | $0.06 | $1.20 |
| Kimi K3.1 Pro | $1.00 | $0.25 | $6.00 |
| DeepSeek V4.1 Flash | $0.04 | $0.004 | $0.30 |
| MiniMax M3.1 Flash | $0.05 | $0.005 | $0.20 |
Images
The table shows which models take images. The others read text only.
Send images as base64 data URLs: image_url parts in Chat Completions, image blocks in Anthropic Messages, or input_image parts in Responses.
Images count as input tokens, at the model's input price. A whole request, images included, can be up to 40 MB. Past that it returns 413 request_too_large. Check what a model reads off an image before you rely on it, because it can misread small text and numbers.
import base64
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.libremodel.ai/v1", api_key=os.environ["LIBREMODEL_API_KEY"])
with open("receipt.png", "rb") as f:
image = base64.b64encode(f.read()).decode()
response = client.chat.completions.create(
model="deepseek-v4.1-flash-1017",
messages=[{"role": "user", "content": [
{"type": "text", "text": "What is the total on this receipt?"},
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image}"}},
]}],
)
print(response.choices[0].message.content)import base64
import os
from anthropic import Anthropic
client = Anthropic(base_url="https://api.libremodel.ai", api_key=os.environ["LIBREMODEL_API_KEY"])
with open("receipt.png", "rb") as f:
image = base64.b64encode(f.read()).decode()
message = client.messages.create(
model="deepseek-v4.1-flash-1017",
max_tokens=1024,
messages=[{"role": "user", "content": [
{"type": "image", "source": {"type": "base64", "media_type": "image/png", "data": image}},
{"type": "text", "text": "What is the total on this receipt?"},
]}],
)
print(message.content[0].text)List models
GET /v1/models returns the active models your key can use, in the OpenAI format. Retired IDs return 404 model_not_found.
curl https://api.libremodel.ai/v1/models \
-H "Authorization: Bearer $LIBREMODEL_API_KEY"import os
from openai import OpenAI
client = OpenAI(base_url="https://api.libremodel.ai/v1", api_key=os.environ["LIBREMODEL_API_KEY"])
for model in client.models.list():
pricing = model.model_extra.get("pricing", {})
print(model.id, pricing.get("prompt"), pricing.get("completion")){
"object": "list",
"data": [
{
"id": "kimi-k3.1-pro-uncensored",
"object": "model",
"created": 0,
"name": "Kimi K3.1 Pro Uncensored",
"architecture": { "input_modalities": ["text","image"], "output_modalities": ["text"] },
"supported_parameters": ["max_tokens","temperature","top_p","stop","tools","reasoning","reasoning_effort"],
"pricing": {
"prompt": "0.000003",
"completion": "0.000009",
"input_cache_read": "0.0000003",
"request": "0",
"image": "0.0001",
"web_search": "0",
"internal_reasoning": "0"
}
}
]
}