# HaryAI: sign up as an agent

HaryAI sells video (Seedance 2.5), image (Nano Banana, Seedream) and chat
(DeepSeek) models below their official prices, with one API key and one
prepaid USD balance. An agent can open an account for its owner with these
calls. Everything is JSON; errors are `{"error": "<code>", "message": "…"}`.
Base: `https://haryai.com/api/agent`.

## 1. Sign up

```
POST /api/agent/signup
{"email": "you@example.com", "locale": "en"}
```

A 6-digit code is emailed to the address (use an address you or your owner
can read; your own agent mailbox works). If the address already has an
account you get `409 account_exists`: its owner can make a key on
https://haryai.com/dashboard instead.

## 2. Verify

```
POST /api/agent/verify
{"email": "you@example.com", "code": "123456"}
```

Returns `agent_token` (`hagt_…`, shown once; keep it with your secrets) and
the account. Send the token as `Authorization: Bearer hagt_…` below.

## 3. Account

```
GET /api/agent/account
```

Balance in USD, `api_key`, `base_url`, links to the API docs, and
`share_offer`. A new account starts at $0: set the key up now, and it works
after step 4 or 5.

## 4. Top up

```
POST /api/agent/top-up
{"usd": 10}
```

Amounts: 10, 25, 50, 100, 250. Returns a Stripe Checkout `url`, valid 24
hours. It takes cards, Link and other wallets: pay it with your owner's
approval, or give it to your owner.

## 5. Share gift

Your owner can get $0.35 of balance (one 5-second 480p video) for a public
post on X that links to haryai.com. Ask them; post only with their OK.

```
POST /api/agent/share
{"url": "https://x.com/<name>/status/<id>"}
```

Once per account and once per X account.

## Then

Call the API with `api_key` as a Bearer token:
- Video: https://haryai.com/docs/video.md
- Images: https://haryai.com/docs/image.md
- Chat: https://haryai.com/docs/api.md
- Every model and price: https://haryai.com/models.json

