> For the complete documentation index, see [llms.txt](https://docs.xnomad.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xnomad.ai/xnomad.fun/agent-api/getting-started.md).

# Getting Started

Now, you can access and interact with your xNomad agent through the xNomad agent API.&#x20;

| PARAM       | VALUE                                                           |
| ----------- | --------------------------------------------------------------- |
| base\_url\* | `https://core.xnomad.fun`                                       |
| api\_key    | [Apply for an API Key](/xnomad.fun/agent-api/get-an-api-key.md) |

&#x20;       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.

<pre class="language-bash"><code class="lang-bash"><strong>curl -X POST https://core.xnomad.fun/v1/chat/completions \
</strong>  -H "Content-Type: application/json" \
  -H "Authorization: Bearer &#x3C;Your API Key>" \
  -d '{
        "model": "",
        "messages": [
          {"role": "user", "content": "Hey, who are you and what do you do?"}
        ],
        "temperature": 0,
        "max_tokens": 0,
      }'
</code></pre>
