Quick Start
This guide takes you from zero to your first API call in about three minutes.
1. Create an account
Open Chat and click Log in in the top-right corner, then choose Create account. New accounts receive $0.5 in free credits so you can try every model straight away. If a friend invited you, enter their referral code during sign-up.
2. Create an API key
Go to API and click Create key. Give it a name and copy the key — it starts with sk-dn- and is only shown once. Store it somewhere safe, such as an environment variable:
export DEEPNEXUS_API_KEY="sk-dn-..."
3. Make your first request
curl http://localhost:3000/v1/chat/completions \
-H "Authorization: Bearer $DEEPNEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Introduce DeepNexus in one sentence."}]
}'
Python
from openai import OpenAI
client = OpenAI(base_url="http://localhost:3000/v1", api_key="sk-dn-...")
resp = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "http://localhost:3000/v1", apiKey: process.env.DEEPNEXUS_API_KEY });
const stream = await client.chat.completions.create({
model: "glm-5.3-flash",
messages: [{ role: "user", content: "Write a haiku about agents" }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
4. Top up
When your free credits run low, add funds on the Top up page. Card, e-wallet and crypto (USDT / USDC on TRON, BNB Chain, Ethereum, Base, Arbitrum and Polygon) are supported, and larger top-ups earn a bonus of up to $100.
Check your balance
curl http://localhost:3000/v1/balance -H "Authorization: Bearer $DEEPNEXUS_API_KEY"
{ "object": "balance", "currency": "USD", "balance": 12.345678, "plan": "free" }