API Basics
Nodaryx exposes an OpenAI-compatible Chat Completions API. Any tool or SDK that speaks the OpenAI API format works as-is — just point the Base URL and API key at Nodaryx.
Base URL
All model calls go through this gateway (the data plane, served by LiteLLM):
https://api.moyuncourse.site/v1
Note: the Nodaryx Business API (platform backend) is not exposed to ordinary model-calling clients. Model calls always go through the
/v1gateway above.
Authentication
Send your API key (prefixed sk-nodaryx-) in the request header:
Authorization: Bearer sk-nodaryx-xxxxxxxxxxxxxxxx
Content-Type: application/json
API keys are created in the platform and shown only once — store them safely. See Create your first API key.
Your first call
A minimal request with curl:
curl https://api.moyuncourse.site/v1/chat/completions \
-H "Authorization: Bearer sk-nodaryx-xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-flash",
"messages": [{ "role": "user", "content": "Hello, introduce yourself" }]
}'
Compatible protocol
- OpenAI Chat Completions (
POST /chat/completions) - Works with Continue, Cline, and any OpenAI-compatible client
- Supports streaming (
"stream": true), see Streaming