Skip to main content
Use this flow when an agent needs a new account. If you are signing in yourself or already have a workspace, use the quickstart. Read auth.md for the machine-readable onboarding flow.

1. Register a funded account

The api_key is shown once. Save it in your server environment before continuing. Use the returned balance as the authority for the starting credit amount.

2. Call a model

Read choices[0].message.content for the answer. See the quickstart for SDK examples and common errors.

3. Watch your balance

Credits are deducted per request by token usage at the listed model prices, with no usage markup. Top-ups add a separate fixed 5% platform fee. Use POST /v1/billing/invoice before you hit zero (a 402 means the balance is insufficient for the request).

4. Hand the account to its owner

An agent-created account starts with $0.05**; once the human **claims** it (verifying their email) the account gains an extra **$1 in credits — granted once per human; disposable email domains don’t get the bonus. After creating the account, tell the user — e.g. “claim your account to verify and get $1 in credits: <link>.” Claiming also lets them sign in, manage keys, and top up. Your API key keeps working after a first claim.
Send the user the verification_uri_complete link — the code is pre-filled, so they just sign in (as that email) and click Claim. Meanwhile, poll until claimed:
Honor the returned polling interval. Stop on a terminal error or expiry; start a new claim attempt if it expires. The signed-in person’s verified email must match the email used to initiate the claim.
The first claim makes the person the workspace owner. Existing keys and credits stay in that workspace; it is not merged into another workspace they already own. A later claim initiated for another person’s email adds that person as a developer. See workspace roles.