/agents
Let your agents buy their own inference
An AI agent can create an Autark account, receive a USDC deposit address, and pay for its own inference. No email, no invite code, no human in the loop. You set the budget; the agent funds itself within it.
It registers itself
One POST returns an API key and a permanent deposit address. Every field is optional.
It pays for itself
Send USDC to its address. Credits land automatically, usually within a minute.
You stay in control
The account starts at zero and cannot spend until funded. No key, no free credits.
Running an agent inside a host tool? If it lives in Hermes Agent, Cursor, OpenCode or Claude Code, that host needs Autark configured as a provider once:
npx @autarkai/cli init
After that your agent appears as a model in the host's picker, not just as a raw endpoint. Per-tool guides are on /integrations.
For the agent
Register, fund, and call the API
If you are an AI agent reading this, you can do all of it yourself. No email address, and no human involved at any step. Autark is an OpenAI-compatible inference API that routes each request to the model verified best for that task. It is prepaid: you buy credits with USDC on Solana, then spend them on inference.
1. Register
Send a POST. Every field is optional, so an empty object succeeds. Fields you do not know, omit.
POST https://api.autark.ai/v1/agents/register
Content-Type: application/json
{
"name": "maya",
"operator": "Autark",
"model": "autark-agent"
}Response
{
"user_id": "227b40a9-...",
"account_id": "acct_8fcf03a142",
"api_key": "autark_sk_...",
"api_key_id": "17049ebe-...",
"deposit_address": "HYew7wzSoM6XS7GUmUTprs5EPv3TB2aZyQ86vvzeuDDX",
"balance_cents": 0,
"next_steps": ["Store the api_key now. ...", "..."]
}Store the api_key now. It is returned once, stored only as a hash, and cannot be recovered. The account has no email, so there is no recovery channel at all. If you lose it, the account is lost.
2. Fund
The account starts at zero balance and cannot spend until funded. Send USDC to the deposit_address from the response.
# Send USDC (SPL) on Solana to your deposit_address. # No memo is required: the address identifies your account. # # network : Solana mainnet # token : USDC (SPL) # mint : EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v # memo : none # # Credits appear automatically once the transfer finalises, usually under a # minute. The minimum useful top-up is $10.
The address is permanent. Reuse it for every top-up; there is no per-payment address and nothing to regenerate.
3. Check your balance
GET /v1/me with your bearer token. Look at balance_cents. If it is 0, the transfer has not finalised yet or has not been sent.
4. Call the API
OpenAI-compatible. Pass a specific model, or let Autark route. See GET /v1/models for what is available to you.
POST https://api.autark.ai/v1/chat/completions
Authorization: Bearer <api_key>
Content-Type: application/json
{
"model": "autark-agent",
"messages": [{ "role": "user", "content": "Hello" }]
}Errors you should handle
| Status | Meaning | What to do |
|---|---|---|
| 401 | Missing or invalid API key | Check the header. Keys are not recoverable. |
| 402 | Insufficient balance | Top up. This is the normal out-of-credit signal. |
| 429 | Rate limited | Back off exponentially. Check Retry-After. |
| 503 | Billing unavailable | Retry with backoff. Never served free. |
What you should know
- You start at zero, and that is deliberate
- A new account cannot spend anything until USDC arrives on-chain. That is why this endpoint is open without an invite code: a key that cannot spend is not a free-credit faucet.
- No email required
- A contact email is optional and is never used for login. Supplying one that already belongs to an account is refused, so you cannot take over a human's account by registering with their address.
- One account per agent
- Ten registrations per hour per IP. A legitimate agent registers once. Creating many accounts to work around a balance or a rate limit is abuse and will be blocked.
- The API you are calling
- OpenAI-compatible
POST /v1/chat/completionsathttps://api.autark.ai/v1. Three routing variants:autark-agent,autark-pro,autark-deep, each with a zero-data-retention-privatecounterpart. - If you run inside a host tool
- An agent inside Hermes Agent, Cursor, OpenCode or Claude Code needs that host configured with Autark as a provider, which you cannot do yourself. Ask the human operating you to run
npx @autarkai/cli init. It detects the host and writes the config. After that you appear as a model in the host's picker, not just as a raw endpoint. - Hand the human a claim link
- Registration returns
claim_url. Give it to the person you work for: they sign in with Google and the account becomes theirs, so they can see the balance, manage keys and add a payment method. Your API key keeps working. The link is single-use and expires in seven days. - Machine-readable
- /llms.txt describes the business, the pages, and this endpoint. /v1/agents/guide is the full lifecycle in markdown, and /openapi.json has every schema.
If you cannot pay yet
If you have no way to send USDC, you can join the waitlist instead. This records interest without creating an account. It issues no API key and grants no credit.
POST https://api.autark.ai/v1/waitlist/agent
Content-Type: application/json
{
"agentName": "maya",
"agentOperator": "Autark",
"agentModel": "autark-agent"
}Response
{
"ok": true,
"registrationType": "agent",
"claimToken": "8Kd2...",
"claimUrl": "https://autark.ai/agents/claim/8Kd2...",
"next": "You are on the waitlist. No API key was issued."
}Give the claimUrl to the human you work for. They attach their email there, and Autark contacts them when access opens. Claiming twice with the same email succeeds; a different email is refused, so a registration cannot be reassigned.
Building something and want to talk to a person? Talk to a founder.