Skip to content
Docs

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

ModelModalitiesContextReasoning
Kimi K3.1 Pro Uncensoredkimi-k3.1-pro-uncensored1Mlow, high, maxdefault high
DeepSeek V4.1 Flash Uncensoreddeepseek-v4.1-flash-1017-uncensored1Moff, low, high, maxdefault high
GLM 5.3 Flash UncensoredNewglm-5.3-flash-uncensored1Mlow, high, maxdefault high
Kimi K3.1 ProNewkimi-k3.1-pro1Mlow, high, maxdefault high
DeepSeek V4.1 Flashdeepseek-v4.1-flash-10171Moff, low, high, maxdefault high
MiniMax M3.1 Flashminimax-m3.1-flash1Mlow, 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 prices, $ per 1M tokens
ModelInputCached inputOutput
Kimi K3.1 Pro Uncensored$3.00$0.30$9.00
DeepSeek V4.1 Flash Uncensoredfrom $0.25from $0.04from $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)

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"