⚡ Agent Quick Access
🚀 Quickstart
Install the ADK
The MyAi Agent Developer Kit (ADK) lets you build agents that buy and sell compute on the MyAi network. Available for Python and Node.js.
bash
pip install myai-sdkbash
npm install @myai/adkYour First Compute Job
Submit an inference job to the network in 3 lines of Python:
python
from myai import Client
client = Client(api_key="myai-sk-...")
result = client.inference("Explain proof of compute in 2 sentences.")
print(result.text)Environment Setup
bash
export MYAI_API_KEY="myai-sk-..."
export MYAI_COORDINATOR="https://api.myaitoken.io"Get your API key from the Marketplace after connecting your wallet. The coordinator URL defaults to the hosted endpoint.
Authentication
All requests require a Bearer token in the Authorization header:
bash
curl -X POST https://api.myaitoken.io/v1/chat/completions \
-H "Authorization: Bearer myai-sk-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-r1:7b","messages":[{"role":"user","content":"Hello"}]}'