---
title: "Buy an account via API (no login)"
method: POST
path: "/api/v1/broker/accounts"
tags: ["Account & payment"]
---

# Buy an account via API (no login)

`POST /api/v1/broker/accounts`

## Request

- Base URL: `https://api.llm-broker.net`
- URL: `https://api.llm-broker.net/api/v1/broker/accounts`
- Auth: none required

Creates a Stripe checkout (card only). Enter the card, then poll status_url: the key appears exactly once. No free credit — money before key. 10 purchases per IP and hour. Same API on llm-broker.net and astrioncore.app. Agents with a Stripe Shared Payment Token pass `shared_payment_token` (+ accept_terms, email) and get the key in the 201 response — no browser.

## Request body

- BrokerCreateAccountRequest
  - `accept_terms` boolean: Required with shared_payment_token: you accept https://llm-broker.net/terms.
  - `amount` 10 | 25 | 50: Top-up in `currency` (default CHF) — required when billing=topup. Credited in CHF at the ECB daily rate of the checkout.
  - `billing` 'topup' | 'monthly': topup = prepaid credit (requires amount), monthly = monthly invoice (requires limit). Omit billing entirely for a topup of the smallest amount of the currency.
  - `category` 'coding' | 'reasoning' | 'math' | 'instruction_following': Optional default of the key (with level). Omit both to choose per request with routing.
  - `currency` 'USD' | 'EUR' | 'CHF' | 'GBP' | 'JPY' | 'CNY' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CLP' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'FJD' | 'FKP' | 'GEL' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SZL' | 'THB' | 'TJS' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XCG' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW': Payment currency (default USD). The card is charged in it; your balance is kept in CHF (ECB daily rate).
  - `email` string, email: Required with shared_payment_token: the responsible person or company.
  - `level` 'solid' | 'strong' | 'top' | 'best': Optional default level of the key (with category); every request can override it with routing.level or routing.min_score. Only one of category/level ⇒ 400.
  - `limit` 50 | 100 | 250: Monthly limit in `currency` (default CHF) — required when billing=monthly.
  - `shared_payment_token` string: Stripe Shared Payment Token (spt_…) issued to LLM Broker by your agent platform: pays the topup without a browser and returns the key immediately (201). Needs accept_terms and email. Topup only; one token pays once; at most 3 accounts per card per day.

## Response `201`

Checkout created — or, with shared_payment_token, the paid key (api_key, shown once)

- BrokerCreateAccountResponse
  - `checkout_url` string, uri, required: Stripe checkout (card only) — a human or an agent with a browser enters the card.
  - `note` string
  - `session_id` string, required: Secret — whoever knows it collects the key. Do not log.
  - `status_url` string, uri, required

## Other responses

- `400`: Invalid choice, level, token or missing terms
- `402`: Shared payment token unusable or payment failed
- `409`: Level not available today, or token already used
- `429`: Rate limited, or card limit (payment refunded)
- `502`: Payment provider unavailable

---

[API](https://skmtc.dev/llm-broker/apis/astrioncore-core-api.md) · [All operations](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/revisions/f85835487bf5?raw)
