Capabilities
- Context length
- 8,192 tokens
- Parallel requests
- 1 per account (
max_parallel) - Thinking
- Yes
- Weights
- 2-bit; check exact output such as numbers, code and citations
- Input and output
- Text only
Request
Stream a long answer: a non-streamed request without a response after about 100 s fails with 524.
curl
curl https://api.albastov.com/v1/chat/completions \
-H "Authorization: Bearer $ALBASTOV_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"max_tokens": 1000,
"messages": [{"role": "user", "content": "Explain the difference between a process and a thread in three sentences."}]
}'Python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.albastov.com/v1", api_key=os.environ["ALBASTOV_API_KEY"])
reply = client.chat.completions.create(
model="deepseek-v4.1-flash",
max_tokens=1000,
messages=[{"role": "user", "content": "Explain the difference between a process and a thread in three sentences."}],
)
print(reply.choices[0].message.content)JavaScript
const res = await fetch("https://api.albastov.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ALBASTOV_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "deepseek-v4.1-flash",
max_tokens: 1000,
messages: [{ role: "user", content: "Explain the difference between a process and a thread in three sentences." }],
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const reply = await res.json();
console.log(reply.choices[0].message.content);Every parameter, response header and error: Chat completions reference.