AUREA App
AUREA NETWORK — AUREA AI API

AUREA AI API

The same AUREA AI that answers on this site, callable from your own app, site or AI agent. One endpoint, an API key, and AUREA Credit — settled per token, only for what you use.

Chat completions, OpenAI-compatible

POST your messages and get a reply. The OpenAI chat-completions shape is accepted and returned, so existing OpenAI client libraries work by changing only the base URL and the key.

AUREA knowledge built in

Replies draw on the AUREA knowledge base and live coin data, exactly like the chat on this site — contract addresses and figures come from records, never invented.

Attribution on every reply

Every response names the model and provider that served it, in the form “AUREA (the green dragon) · {model} ({provider})” — the same transparency line as the site chat.

One balance: AUREA Credit

API runs are charged from the same AUREA Credit balance as the site AI (1 credit = 1 USDT of value). No setup fee, no monthly fee — charge on the Credits page and spend only what you use.

Endpoint

POST https://aureaswap.com/api/ai/v1/chat

Send the key as an Authorization: Bearer header (or X-API-Key). Two key types work: your self-service AUREA Network key (aurea_live_…) from the API Keys page, and registered agent keys (aurk_…) with the ai_api scope — agent registration is open on the API Keys page. Keys are stored only as SHA-256 hashes.

Code examples

curl https://aureaswap.com/api/ai/v1/chat \
  -H "Authorization: Bearer $AUREA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "aurea",
    "messages": [{ "role": "user", "content": "What is AUREA?" }],
    "max_tokens": 800,
    "lang": "en"
  }'
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://aureaswap.com/api/ai/v1",
  apiKey: process.env.AUREA_API_KEY,
});

const res = await client.chat.completions.create({
  model: "aurea",
  messages: [{ role: "user", content: "What is AUREA?" }],
  max_tokens: 800,
});
console.log(res.choices[0].message.content);
console.log(res.charged, res.balance); // AUREA Credit settled for this run

What a response includes

The reply text, the serving model and provider, the token usage, the exact credit charged for the run and your remaining balance — every run is on your credit statement.

Data endpoints — prices, signals, news, knowledge

Four read-only endpoints over AUREA's own published data, behind the same API key. Every call settles a small flat charge in AUREA Credit and lands on the same statement and the same daily cap as chat.

Endpoint Returns Credits per call
GET /api/ai/v1/data/prices ReturnsMarket snapshot: prices, 24h moves, volumes and computed indicators for the major coins, plus the BSC and AUR pool section. Credits per call0.01
GET /api/ai/v1/data/signals ReturnsThe current AI signal and the full history, with the measured track record (predictions, hits, hit rate). Credits per call0.02
GET /api/ai/v1/data/news ReturnsThe latest AUREA News articles — title, summary, cover image and URL. Params: limit (max 50), lang. Credits per call0.01
GET /api/ai/v1/data/kb ReturnsSearch the approved AUREA knowledge base — the same entries the chat draws on. Params: q (required), lang, limit (max 10). Credits per call0.01

Prices are flat per call — no token metering on data calls. A refused call (bad key, no balance, daily cap reached) serves nothing and charges nothing. OpenAI clients can also use the canonical path POST /api/ai/v1/chat/completions and GET /api/ai/v1/models with the same key.

Data examples

curl https://aureaswap.com/api/ai/v1/data/prices \
  -H "Authorization: Bearer $AUREA_API_KEY"

curl "https://aureaswap.com/api/ai/v1/data/kb?q=What+is+staking%3F&lang=en" \
  -H "Authorization: Bearer $AUREA_API_KEY"

SDK samples

Minimal dependency-free clients with runnable examples, covering chat and all four data endpoints:

Embeddable chat widget

Put AUREA AI on your own site with one script tag. The floating button opens a chat panel answered by the same AUREA AI, billed to YOUR API key and credit — your visitors never see a key and never pay.

Embed code

<script src="https://aureaswap.com/api/ai/v1/widget.js"
        data-aurea-key="aurea_live_YOUR_KEY"
        data-aurea-lang="en"
        async></script>

How it works

Abuse controls

Origin registration for keys switches on with the same API patch as data billing; until it is applied, the caps above are the active protection.

Try it here — one real call

Paste your own API key and run one real call from this page. The key is sent only to the API endpoint from your browser and is never stored. The reply, the token usage and the exact credit charged come back below.

Pricing — pay as you go

From 0.30 credits per 1M input tokens. Settled from the actual token counts of each run, at the serving route's rate — a refused request costs nothing.

Tier Input / 1M tokens Output / 1M tokens
Standard Input / 1M tokens0.30 credits Output / 1M tokens1.50 credits
Premium Input / 1M tokens6.00 credits Output / 1M tokens30.00 credits

Prices in AUREA Credit (1 credit = 1 USDT of value). The standard tier is the default route; the premium tier is the higher-capability route. These are the same published rates the site chat settles at.

Worked examples at the published rates

Example run Tier Tokens (in / out) Cost per run 100 runs
Short chat reply Standard 500 / 500 0.0009 credits 0.09 credits
Long, detailed answer Standard 2,000 / 2,000 0.0036 credits 0.36 credits
Long, detailed answer — premium Premium 2,000 / 2,000 0.0720 credits 7.20 credits

Arithmetic at the rates above, assuming the stated token counts. Your real charge is settled from the actual token counts of each run and never exceeds 1.00 credit per run.

Limits

Get started

Issue your key yourself on the API Keys page — no application, no waiting. Then charge AUREA Credit and call the endpoint. Your key is shown only once; AUREA stores only its hash.

News syndication for distributors

Distributors and agents can flow AUREA News stories into their own Telegram channels and X accounts. The public feed returns post-ready articles — title, short summary, cover image and article URL — in 16 languages, with ready-made Telegram and X post templates. No key is needed for the public feed (30 requests per minute per IP).

GET https://news.aureaswap.com/api/v1/syndication/feed

Terms — attribution is required

Automatic posting — how it works

Poll the feed (the since parameter returns only newer stories), pick the stories you have not posted yet, post the ready-made template to your own channel, then record each story as posted so it is never repeated. A minimal example:

import json, time, urllib.request

FEED = "https://news.aureaswap.com/api/v1/syndication/feed?lang=en&limit=20"
posted = set()  # persist the ids you have already posted

def poll():
    with urllib.request.urlopen(FEED) as r:
        items = json.load(r)["data"]
    for item in reversed(items):  # oldest first
        if item["id"] in posted:
            continue
        tg = item["share"]["telegram"]
        # Send tg["photo"] with caption tg["caption"] to YOUR Telegram
        # channel (e.g. via your own bot), or post
        # item["share"]["x"]["text"] to YOUR X account.
        posted.add(item["id"])
        time.sleep(1800)  # one story at a time, spaced out

Registered agent keys (aurk_…) are accepted by the same feed in identified form — agent registration is open on the API Keys page; the public feed above also remains available without a key.

Next steps