xNomad AI
English
English
  • Introduction
  • Why AI-NFT?
  • xNomad.fun
    • Overview of Agent Features
    • Agent Launchpad
      • Create an AI-NFT
      • Create a Swarm
    • Agent Wallet
      • Deposit into Wallet
      • Withdraw from Wallet
    • On-chain Interaction
      • Claim Airdrop
      • Transfer Token
      • Trade Tokens
      • Token Insight Query
      • Issue Tokens
      • Trading Setting
      • Auto Tasks
      • Copy Trade
      • Limit Order
    • Agent Token
    • Social Integration
    • Agent API
      • Get an API Key
      • Getting Started
      • API Reference
        • Chat API
  • Technology
    • How AI-NFT Works?
    • AI-NFT Metadata
    • Airdrop Proxy
    • Neuro Net
      • Neuro Node
      • DePIN Connector
      • Knowledge Cloud
  • Links
    • Website
    • X
    • Discord
    • Github
Powered by GitBook
On this page

Was this helpful?

  1. xNomad.fun
  2. Agent API

Getting Started

PreviousGet an API KeyNextAPI Reference

Last updated 9 days ago

Was this helpful?

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,
      }'

Apply for an API Key