Your First API Call
The DarkSeek API uses an OpenAI-compatible chat-completions format. Configure your SDK with the DarkSeek base URL and API key to access the service. Compatibility varies by endpoint; review the API reference for supported options.
| PARAM | VALUE |
|---|---|
| base_url (OpenAI) | https://api.darkseeks.com/v1 |
| API origin | https://api.darkseeks.com |
| api_key | Manage your API keys |
| model | darkseek-v4.1 |
Developer preview: the public API address is the configured product contract; DNS and successful public inference are not yet verified. Public registration is not open yet. Key creation requires verified email, and inference requires an explicitly enabled account allowance. DeepSeek credentials and balances do not transfer to DarkSeek.
Integrate with Agent Tools#
Use a configurable API client or agent tool with the DarkSeek base URL and an account-owned API key. The integration guides explain configuration and limitations for tools including Claude Code, Codex and OpenCode. Each tool and protocol must be verified separately; documentation does not imply broad tool certification.
See the agent integration guides for configuration details and the capability matrix for verification status.
Invoke The Chat API#
Use darkseek-v4.1 and set an explicit output ceiling. Examples are request contracts, not evidence that an unconfigured deployment is live.
export DARKSEEK_BASE_URL=https://api.darkseeks.com
# Set DARKSEEK_API_KEY securely in your environment; never commit it.
curl "$DARKSEEK_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer $DARKSEEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"darkseek-v4.1","messages":[{"role":"user","content":"Hello!"}],"max_tokens":256,"stream":false}'Use an SDK#
An OpenAI-compatible client can target the connected DarkSeek /v1 base URL. Compatibility is endpoint-specific; it does not imply every API feature is supported.
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ["DARKSEEK_API_KEY"],
base_url="https://api.darkseeks.com/v1",
)
reply = client.chat.completions.create(
model="darkseek-v4.1",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=256,
)
print(reply.choices[0].message.content)