Get started
Quickstart
Make your first deepflock request in five minutes with curl, Python or Node, using any OpenAI SDK.
deepflock speaks the OpenAI API. If your code already uses an OpenAI SDK, you change two things: the base URL and the key.
1. Get a key
Keys are issued to waitlist members (join here) and managed in the console at console.deepflock.dev. They start with df-. Store yours in an environment variable:
Shell
export DEEPFLOCK_API_KEY="df-..."Keep keys on your server. Never put them in a web page or an app bundle. More in Authentication and keys.
2. Check that the API answers
This endpoint needs no key:
Shell
curl https://api.deepflock.dev/v1/statusJSON
{"status": "operational", "access": "waitlist",
"message": "API keys are issued to waitlist members: https://deepflock.dev/#join", "nodes_online": 0, "flocks_active": 0}3. Send a chat request
The base URL is https://api.deepflock.dev/v1.
curl
Shell
curl https://api.deepflock.dev/v1/chat/completions \
-H "Authorization: Bearer $DEEPFLOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-235b-a22b",
"messages": [{"role": "user", "content": "Explain a heat pump in two sentences."}],
"stream": true
}'Python
Install the official SDK with pip install openai.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepflock.dev/v1",
api_key=os.environ["DEEPFLOCK_API_KEY"],
)
stream = client.chat.completions.create(
model="qwen3-235b-a22b",
messages=[{"role": "user", "content": "Explain a heat pump in two sentences."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True)Node
Install the official SDK with npm install openai.
Node
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepflock.dev/v1",
apiKey: process.env.DEEPFLOCK_API_KEY,
});
const stream = await client.chat.completions.create({
model: "qwen3-235b-a22b",
messages: [{ role: "user", content: "Explain a heat pump in two sentences." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}4. Next steps
- See the models and their ids in Models.
- Read every request field in Chat completions.
- Learn what errors look like in Errors and limits.
- Prefer one bill for many providers? See Using deepflock through OpenRouter.
View as MarkdownUpdated 2026-12-01