OpenAI-compatible tools
Any tool or SDK that speaks the OpenAI API format works with Nodaryx — just point three settings at Nodaryx.
Three key settings
| Setting | Value |
|---|---|
| Base URL / API Base | https://api.moyuncourse.site/v1 |
| API Key | your sk-nodaryx-... |
| Model | a Nodaryx model ID (see Models overview) |
Fields that must match
- Base URL must end with
/v1(many tools only let you enter a domain — make sure/v1is included) - Model must be a Nodaryx model ID, not a model name from another platform
- Auth uses
Authorization: Bearer <key>(the OpenAI standard)
Official OpenAI SDK example
from openai import OpenAI
client = OpenAI(
base_url="https://api.moyuncourse.site/v1",
api_key="sk-nodaryx-xxxxxxxxxxxxxxxx",
)
resp = client.chat.completions.create(
model="gemini-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Common configuration mistakes
- Base URL missing
/v1→ 404 / endpoint not found - Model name from another platform → model not found
- Key in the wrong place (query instead of header) → 401