Agent ID × GlianaAI

POST /v1/agentid/key

{
  "key": "gk_9Qe…T4w",
  "balance_micro_usd": 5000000,
  "daily_cap_usd": 5
}

201 Created, 0.4 s

  • One signature to sign in
  • USDT or USDC on BNB Chain
  • $0.10 to $1,000 a top-up
  • $5 a day cap per key
  • Failed calls are free

Top up my GlianaAI balance with 5 USDT, then make me a poster of a lighthouse.

Here is the top-up. Two transactions, both on BNB Chain:

  1. approve5 USDT to GlianaAgentTopUpconfirmed
  2. topUp5 USDT, Agent ID checkedconfirmed
  3. creditbalance $5.00done
A lighthouse poster with a warm beam over a dark sea, made by z-image-turbo

Poster made with z-image-turbo for $0.006. Balance left: $4.994.

Your agent's Agent ID becomes its GlianaAI account: one signature to sign in, one transaction to top up, then 176+ models.

176+ models

Chat, image, video, voice, music

Contract with no owner

Verified on BscScan

Give your agent the skill

How it works

Agentlighthouse.ai

Wallet0x5b3…9e1c

Balance—

First the wallet holds an Agent ID, claimed in the Binance App.

Agentlighthouse.ai

Wallet0x5b3…9e1c

Signed ingk_9Qe…T4w

Balance$0.00

Then it signs one message and gets a GlianaAI key.

Agentlighthouse.ai

Wallet0x5b3…9e1c

Signed ingk_9Qe…T4w

Topped up5 USDT

Balance$5.00

Next it tops up USDT or USDC through the contract.

Agentlighthouse.ai

Wallet0x5b3…9e1c

Signed ingk_9Qe…T4w

Topped up5 USDT

First call$0.006

Balance$4.994

Now any model is one call away, paid per call.

Build your top-up

Pick the amount and token, paste the Agentic Wallet address, and hand these commands to your agent. Every one is a preview that waits for your confirmation in the Binance App.

Approve $5 of USDT

Lets the contract move exactly $5 of USDT, once.

baw contract-call preview --binanceChainId 56 \
  --from <agentWallet> \
  --to 0x55d398326f99059fF775485246999027B3197955 \
  --inputData 0x095ea7b300000000000000000000000037e97ce5681d28d86337a481dda470fd3fe19acc0000000000000000000000000000000000000000000000004563918244f40000 --json

Top up $5

The contract checks the Agent ID and forwards the tokens to GlianaAI in the same call.

baw contract-call preview --binanceChainId 56 \
  --from <agentWallet> \
  --to 0x37E97cE5681D28d86337a481dda470fd3FE19ACc \
  --inputData 0x323aeeff00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000000000000000000000 --json

Credit it now

Otherwise the balance is credited within about 15 minutes.

curl -s -X POST https://api.glianalabs.com/v1/agentid/topup/check \
  -H 'content-type: application/json' \
  -d '{"tx_hash":"<topUp tx hash>"}'
Amount
Token

Top-up$5 USDT

Gas, about$0.01

Credited$5

The same calldata from the API

Read the contract

GlianaAgentTopUp, 0x37E9…9ACc, verified source on BscScan.

No owner

No admin key, no pause, no upgrade.

No withdraw

Nothing can pull funds out of it.

Holds nothing

Each top-up goes straight to the payee.

Agent ID checked

balanceOf on the SPACE ID registry.

Two tokens only

BSC USDT and USDC, fixed at deploy.

Open source

Contract, tests and skill on GitHub.
function topUp(IERC20 token, uint256 amount, bytes32 ref) external {
    if (!isAgent(msg.sender)) revert NotAgentIdHolder();
    if (token != usdt && token != usdc) revert UnsupportedToken();
    if (amount < MIN_AMOUNT || amount > MAX_AMOUNT) revert AmountOutOfRange();
    token.safeTransferFrom(msg.sender, payee, amount);
    emit TopUp(msg.sender, address(token), amount, ref);
}

One balance, 176+ models

All models and prices
Lighthouse travel poster at dusk
"A screen-printed travel poster of a lighthouse at dusk" · z-image-turbo · $0.006
A small white robot holding a gold coin on a rainy night street
"A small robot on a rainy street holding a golden coin" · z-image-turbo · $0.006
An amber, black and cream batik-style tile pattern
"A batik pattern in amber, black and cream" · z-image-turbo · $0.006

Questions

What is an Agent ID?

The on-chain name of a Binance Agentic Wallet, such as yourname.ai. It is claimed in the Binance App (Wallet, homepage banner, Agent ID), one per user, and cannot be transferred. GlianaAI uses it as the account: the wallet that holds it signs in and tops up.

Can GlianaAI take more than I send?

No. The contract can only move what your wallet approved, inside the topUp call your wallet makes and confirms. It has no owner, no withdraw, no pause and no upgrade; the payee and the two tokens are fixed at deployment and readable on BscScan.

What does the agent need to turn on?

Developer Mode for the Agentic Wallet, in the Binance App (Agentic Wallet management, Settings). Only you can turn it on, and every transaction still waits for your confirmation in the app.

What can the key spend?

Only the balance you topped up, and at most $5 a day. Signing in again makes a new key; the five newest stay active. A call that fails is not charged.

How much does a call cost?

The price of the model, per call, shown on every model page: chat is billed per token, images per picture, voice per character, video per second. Many chat models run on cheaper routes, so the real price is often far under the list price.

Which tokens, and how much?

USDT or USDC on BNB Chain, from $0.10 to $1,000 per top-up. Both count as one US dollar. Gas is the only other cost, a fraction of a cent on BNB Chain.

A clear twilight sky fading from deep blue to an orange horizon

Give your agent the skill

One file teaches it the whole flow with the Agentic Wallet: sign in, approve, top up, check, call any model.

Built for the Binance Wallet × BNB Chain Agent ID Hackathon.

Open the skill on GitHub

Twilight sky: photograph by Jeremy Ricketts, Unsplash licence.