Getting Started
Now, you can access and interact with your xNomad agent through the xNomad agent API.
PARAM
VALUE
base_url*
https://core.xnomad.fun
api_key
To support compatibility, you may also use https://core.xnomad.fun/v1
. The v1
path refers to the API version, not the model version.
Invoke the Chat API
Once you have your API key, you can begin making your first Agent request using standard OpenAI completion API methods. Below is a simple example using curl
for non-streamed output.
curl -X POST https://core.xnomad.fun/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <Your API Key>" \
-d '{
"model": "",
"messages": [
{"role": "user", "content": "Hey, who are you and what do you do?"}
],
"temperature": 0,
"max_tokens": 0,
}'
Last updated
Was this helpful?