Nodaryx Help Center中文

Postman / Apifox

Debug the Nodaryx API by hand with Postman or Apifox.

Fastest: generate a ready-to-import collection

In the Console, open API Keys → Use with developer tools → Postman / Apifox, pick a model, and download the generated collection. Import the JSON into Postman or Apifox, set a NODARYX_API_KEY environment variable, and send. The collection uses environment variables only — it never contains a real key.

Prefer to set it up by hand? Follow the steps below.

Create a request

  • Method: POST
  • URL: https://api.moyuncourse.site/v1/chat/completions

Set headers

| Key | Value | |---|---| | Authorization | Bearer sk-nodaryx-xxxxxxxxxxxxxxxx | | Content-Type | application/json |

Set the body

Choose raw → JSON:

{
  "model": "gemini-flash",
  "messages": [{ "role": "user", "content": "Hello" }]
}

Use environment variables

Store the Base URL and key as environment variables so you don't repeat them in every request (and don't accidentally share your key):

  • base_url = https://api.moyuncourse.site/v1
  • api_key = your key

Then use {{base_url}}/chat/completions in the URL and Bearer {{api_key}} in the header.

Debugging error responses

On a non-200 response, read the error code in the body and resolve it via Errors & troubleshooting.