Skip to content

Credit and account

Understand holds, token billing, free credit, x402 per-request payments, and account controls on HeyEly.

Service credit is a US dollar balance attached to your HeyEly account that funds every model call. Alongside it, Free credit sits in a separate promotional balance for eligible open-weight text models and is always spent first when a request qualifies.

Add credit

Visit Add credit and type the dollar amount you want to load. HeyEly previews the resulting service credit before you sign anything.

Pay withWhat happens
Bridged USDCThe selected liquidity route acquires credit tokens on Elysium and activates them immediately; the quote previews net credit after purchase and activation fees
Credit tokensCredit tokens already in your wallet are burned, adding the post-activation-fee balance as service credit

Eligible launch token holders may also claim holder rewards directly into service credit.

Final balance additions always come from confirmed on-chain activation receipts. Slippage protection (minimum output) guards gross credit tokens before activation fees are deducted. Read Order book for routing and quote behavior.

Service credit is non-transferable and stays bound to your account: it cannot be withdrawn, sent to another wallet, or converted back into credit tokens. If you might list tokens later, hold unactivated credit tokens and activate only what you plan to spend.

How a request spends it

  1. Before forwarding a call upstream, HeyEly places a temporary hold covering the estimated cost of your prompt (plus chat-template overhead), reserved output tokens, and any fixed per-request charge. Server-side tools add their own reservation. File attachments and URL-referenced images or videos reserve the larger of the text estimate and the model's context window (or 1,000,000 tokens if the window is unpublished). Active holds show right next to your balance.
  2. Once the model finishes, the hold clears and HeyEly bills the actual measured usage. Non-streamed timeouts retain their hold pending cost review.
  3. Seconds later, reconciliation compares the call against the provider's billing record and updates Credit and usage with the final amount.

Your spendable credit equals your balance minus active holds. Passing a smaller max_tokens keeps holds lighter. Because holds are estimates, a finished request can occasionally exceed its hold; any excess draws from remaining credit within the key's cap, and no call ever drives your balance below zero. Read Pricing for full calculation rules.

When a request is refused

Calls are rejected upfront whenever the required hold exceeds available account credit or the calling key's remaining spend limit. On Chat Completions and legacy Completions that leave output caps unset and invoke no server tools, HeyEly automatically scales down the upstream output cap so the call can still execute, down to prompt tokens plus one output token. Explicit output caps you send are never altered. Calls eligible for free credit can also execute against a reduced hold.

ErrorCauseFix
402 insufficient_creditAvailable account credit is smaller than the required holdAdd credit or pass a smaller max_tokens
402 free_credit_not_eligibleOnly free credit remains, and this model or payload falls outside its rulesSwitch to an open-weight text model, lower max_tokens, or add credit
402 key_limit_reachedThe calling key's remaining cap is smaller than the holdIncrease the key limit under Developers or switch keys

Any calls already in flight continue to completion.

Limit what a key can spend

Attach per-key dollar limits and optional expiration dates so a single script or editor cannot drain your entire balance. Read Keys and security for key hygiene.

Free credit

Free credit is a promotional balance maintained alongside your paid credit. It covers qualifying open-weight text models, draws down before paid credit, expires on a schedule, and cannot be transferred, sold, or withdrawn.

Get free credit

Complete the onboarding checklist under Free credit on Credit. Each milestone grants free credit once, totaling up to $2.50 per account.

StepAddsDone whenExpires after
Link your email$0.25An email address or Google account is linked and verified30 days
Create a key$0.25You mint any API key30 days
Use your key once$0.50Any API request completes successfully30 days
Use a coding tool$0.50Three requests succeed from a supported coding tool across two separate sessions30 days
Add $5 or more$1.00A single purchase or activation adds at least $5 in net credit after fees (buying unactivated credit tokens or claiming rewards as credit does not count)60 days

Grants settle within roughly a minute of completing a milestone, and each grant's expiry window starts on the day it is issued.

All milestones require a verified email or Google login, so wallet-only accounts must link one before grants unlock. Each email or Google identity qualifies once, and disposable email domains are excluded.

Qualifying coding tools include Claude Code, Codex, OpenCode, Cline, Kilo Code, Roo Code, Zed, Goose, Crush, Continue, Qwen Code, Factory Droid, Hermes Agent, OpenClaw, Cursor, and Aider. Connect a tool to get started.

What it pays for

A call qualifies for free credit when every one of these checks passes:

  • The chosen model is open-weight and produces text output only.
  • Its highest output price across all endpoints and long-prompt tiers, including OpenRouter's 5% platform fee, is at most $2 per million tokens. Note that Models displays the lowest listed rate.
  • The worst-case request estimate is at most $0.05, computed from your input plus max_tokens. Always specify max_tokens on larger models; omitting it disqualifies models that publish no output cap.

Free credit never applies to image generation, server-side tools such as web search, web_search_options, plugins, file attachments, URL-referenced images or videos, provider routing, or Private and Overdrive models.

On qualifying calls, free credit spends first (earliest expiration first) before touching paid credit. Non-qualifying calls spend paid credit exclusively.

Limits until credit is first added

Before an account adds paid credit for the first time, aggregate throughput across all keys is capped at 20 requests per minute. Adding credit via bridged USDC or credit tokens, or claiming holder rewards as service credit, lifts that 20-RPM cap; buying credit tokens without activating them does not. Standard per-key limits of 300 requests per minute still apply.

If the program's monthly grant pool is exhausted, the checklist remains visible while new grants pause until the next reset. Existing free credit balances stay usable until they expire.

Check your free credit

  • View cumulative milestone progress under Free credit on Credit.
  • Inspect individual grant, spend, and expiration entries under Activity on Credit labeled Free credit, Free credit used, and Free credit expired.
  • Read free_credit_available and free_credit_expires_at programmatically from GET /v1/key. See Key.

Troubleshooting

You seeCauseFix
402 free_credit_not_eligibleOnly free credit remains and the call breaks an eligibility rulePick an open-weight text model, reduce max_tokens, or add credit
429 rate_limited with a free credit messageYou sent more than 20 requests in a minute prior to adding paid creditWait retry-after seconds or add paid credit
A step is done but nothing was addedEmail verification is incomplete or monthly grants are pausedVerify Link your email under Free credit on Credit
The balance dropped with no requestsA grant reached its expiration timestampSpend grants prior to free_credit_expires_at from GET /v1/key

Pricing

Open models bill at OpenRouter's rate plus OpenRouter's 5% platform fee, and HeyEly adds zero markup. Billing is strictly pay-as-you-go with no subscriptions.

Model prices

Catalog models publish per-million-token USD prices for input, output, cache reads, and cache writes, plus per-request or per-image charges where applicable. Both Models and GET /v1/models display all-in rates with the fee already included.

What a request costs

TokensCharged at
InputStandard input token rate
Input read from cacheCache read token rate
Input written to cacheCache write token rate
Output (including reasoning tokens)Standard output token rate

Whenever an upstream provider reports an exact cost (standard for chat completions, embeddings, and images), HeyEly bills that reported cost plus OpenRouter's 5% platform fee with no markup. Final amounts round up once to the nearest millionth of a dollar.

How a request is charged

StepWhat happens
HoldBefore dispatch, HeyEly holds an estimated cost covering prompt tokens, chat-template overhead, reserved output, and any fixed per-request charge
ChargeOnce the response completes, the hold releases and measured usage is billed
FinalHeyEly reconciles against the provider's record; until settled, Credit and usage labels the row Estimated cost

Without an output cap, Chat Completions and legacy Completions that are not eligible for free credit reserve at most 32,768 output tokens. They reserve the model's maximum if lower, or 8,192 tokens when that maximum is unknown. That reservation is sent upstream as max_tokens, so it caps the provider. Messages and Responses reserve the model's full maximum output, and return 400 output_cap_required when the model publishes no maximum. HeyEly does not add an output cap on Messages or Responses.

Pass an explicit output limit to bound both response length and the temporary credit hold: use max_tokens for Messages and legacy Completions, max_completion_tokens or max_tokens for Chat Completions, or max_output_tokens for Responses.

Certain payloads require extra reservation headroom:

  • Each allowed server-side web-search step adds another reservation pass accounting for carried-forward search results.
  • File attachments and URL-referenced images or videos hold the larger of the text estimate and the model's context window (or 1,000,000 tokens when the context window is unknown).
  • Image generation reserves per requested image. Reported costs are final immediately because image responses have no generation ID; a successful image response lacking a reported cost stays unresolved with its hold reserved.

Remember that holds are estimates. If dense tokenization or provider overshoot causes actual cost to exceed the hold, HeyEly bills the remainder from your available credit within the key's cap. Free credit never settles for more than its initial hold, and neither paid credit nor free credit ever goes negative.

Failed and cancelled requests

  • Requests rejected before execution incur zero charge.
  • Mid-stream failures bill whatever cost the provider reports plus OpenRouter's 5% platform fee, with no HeyEly markup; token counts paired with a generation ID act as a provisional estimate, and anything else leaves the hold uncharged.
  • Disconnecting mid-stream still bills for all output tokens generated before completion.
  • Non-streamed text requests enforce a 15-minute gateway timeout (or 5 minutes if response headers fail to arrive or the body stalls), while image requests enforce a 120-second deadline. Every non-streamed timeout returns 504 upstream_timeout, bills nothing immediately, and leaves the hold reserved in case the provider finished executing; Credit and usage displays Estimated cost until final cost is confirmed.
  • Payloads with unbounded cost structures (X search, audio input, and models billed per search or per song) are rejected upfront with 400 at zero cost.

See what you spent

Every completed non-streamed call includes the x-astra-cost header in micro-dollars (where 1,000,000 equals $1.00). Visit Credit and usage for per-request breakdowns and spend totals grouped by model.

Prompt caching

When multiple requests share an identical leading prompt prefix, supporting providers can serve those tokens from cache at a lower rate than fresh input.

Check the price

Check GET /v1/models: a model publishes cache pricing when pricing.input_cache_read is greater than "0" and below pricing.prompt. A value of "0" on input_cache_read or input_cache_write indicates no published cache tier. Because cache writes can cost more than standard input, caching saves credit primarily when prefixes repeat across turns.

Mark a cache point on Messages

On POST /v1/messages, attach cache_control to the final block of the stable prefix. HeyEly relays system and cache_control untouched.

{
  "model": "anthropic/claude-sonnet-5.5",
  "max_tokens": 1024,
  "system": [
    {
      "type": "text",
      "text": "You are a support agent for Acme. Policies follow...",
      "cache_control": { "type": "ephemeral" }
    }
  ],
  "messages": [{ "role": "user", "content": "How do refunds work?" }]
}

Keep everything ahead of the cache marker byte-for-byte identical between turns; editing even one character invalidates the cached prefix.

Chat Completions and Responses

Several providers enable automatic prefix caching once prompts cross a minimum token threshold, reporting cache hits in prompt_tokens_details.cached_tokens on Chat Completions.

Confirm it works

Inspect usage.cache_read_input_tokens on Messages or usage.prompt_tokens_details.cached_tokens on Chat Completions. Values above zero confirm a cache hit. Compare total call cost in Credit and usage across subsequent turns, keeping in mind that the initial cache write can cost slightly more.

Why a cache misses

CauseFix
Leading text changed between callsPlace dynamic timestamps or user variables after the cache marker
Prefix falls short of the provider's thresholdCache a larger shared prefix
Cache TTL elapsed between callsIssue follow-up turns within the provider's cache window
system was sent as a plain stringFormat system as an array of content blocks

Pay per request with x402

x402 brings native HTTP pay-per-request billing for autonomous agents. Calling a model endpoint without an API key returns a 402 challenge quoting the hold; your client signs an on-chain authorization and resends the request, and HeyEly settles and answers in one round trip. Payments use canonical bridged USDC on Elysium (Chain ID 99901 mainnet, 99801 testnet) and fund the exact same service credit spent by API keys. You only need bridged USDC in your wallet (no HYPE gas is required) because HeyEly submits the Elysium transaction and covers gas itself. Inspect x402 on GET /v1 to confirm whether x402 is enabled along with its active network, token address, and funding address (null when disabled).

The flow

  1. Issue a request to any inference endpoint without an API key.
  2. Parse the 402 response's PAYMENT-REQUIRED header (base64-encoded JSON specifying network, asset, amount, and recipient).
  3. Sign an EIP-3009 TransferWithAuthorization payload for that amount and replay the identical request with your signed payload in PAYMENT-SIGNATURE.
  4. HeyEly settles the transfer on Elysium (100 ms blocks), credits the account tied to your wallet, executes the model call, and attaches settlement details (including the transaction hash viewable on the Elysium explorer (opens in a new tab)) in PAYMENT-RESPONSE.

The quoted amount equals the request's hold. Any unspent difference stays as service credit on your wallet's account, so subsequent signed requests draw down that existing balance without submitting another on-chain transfer while funds remain. In practice, signing acts as wallet authentication too: if your balance already covers the hold, nothing settles on chain. Keep holds modest by setting max_tokens (Messages and legacy Completions), max_completion_tokens or max_tokens (Chat Completions), or max_output_tokens (Responses). See Pricing.

What the challenge says

{
  "x402Version": 2,
  "resource": { "url": "https://heyely.si/v1/chat/completions", "description": "HeyEly inference, paid per request", "mimeType": "application/json" },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:99901",
      "asset": "0x...",
      "amount": "125000",
      "payTo": "0x...",
      "maxTimeoutSeconds": 60,
      "extra": { "name": "<token EIP-712 name>", "version": "<token EIP-712 version>" }
    }
  ]
}
FieldMeaning
networkCAIP-2 identifier for Elysium (eip155:99901 mainnet, eip155:99801 testnet), matching x402.network on GET /v1
assetCanonical bridged USDC contract on Elysium (6 decimals, so amount is in micro-dollars), matching x402.asset on GET /v1
amountRequired hold for this call (125000 equals $0.125)
payToHeyEly's funding wallet address signed into the authorization so it cannot be tampered with, matching x402.pay_to on GET /v1
extra.name, extra.versionEIP-712 domain parameters required for signature construction

The 402 response body also follows the standard error envelope with code payment_required, so clients without x402 support still receive a clear diagnostic message.

Pay with the x402 client

Use @x402/fetch alongside viem to intercept 402 challenges, sign automatically, and retry:

import { privateKeyToAccount } from "viem/accounts";
import { wrapFetchWithPayment } from "@x402/fetch";

const account = privateKeyToAccount(process.env.AGENT_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);

const response = await fetchWithPayment("https://heyely.si/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    model: "openai/gpt-5-mini",
    max_completion_tokens: 400,
    messages: [{ role: "user", content: "One sentence on x402." }],
  }),
});
console.log(await response.json());
console.log(response.headers.get("PAYMENT-RESPONSE"));

The identical wrapper works across /v1/messages, /v1/responses, /v1/completions, /v1/embeddings, and /v1/images.

Pay by hand

Sign the EIP-712 typed struct TransferWithAuthorization(address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce) using domain { name: <extra.name>, version: <extra.version>, chainId: <the network's chain id>, verifyingContract: <asset> } with an EOA private key (EIP-1271 smart-contract wallet signatures are not accepted). Pick a fresh random 32-byte nonce, set validAfter to 0, set validBefore at least 60 seconds in the future, and set value to at least amount. Assemble the envelope:

{
  "x402Version": 2,
  "accepted": { "...the entry from accepts you chose...": "" },
  "payload": {
    "signature": "0x...",
    "authorization": {
      "from": "0xYourWallet",
      "to": "0x...payTo...",
      "value": "125000",
      "validAfter": "0",
      "validBefore": "1793800000",
      "nonce": "0x...32 bytes..."
    }
  }
}

Base64-encode that JSON object and pass it in the PAYMENT-SIGNATURE header on your retried request.

The response

Every response to an x402-signed call carries a base64 JSON PAYMENT-RESPONSE header whether the call succeeded or failed:

{ "success": true, "transaction": "0x...", "network": "eip155:99901", "payer": "0xYourWallet", "amount": "125000" }

amount reports the settled transfer credited in full to your wallet account. If existing credit funded the call without an on-chain transfer, transaction is empty and amount is omitted. On refused payments, HTTP status is 402, success is false, and errorReason specifies invalid_signature, insufficient_funds, nonce_used, settlement_failed, or settlement_pending (accompanied by the transaction hash). If settlement succeeds before an upstream failure or rate limit occurs, the credited funds remain on your account for future calls.

Standard x-request-id and x-astra-cost headers are still returned. Signing into HeyEly with the paying wallet displays those calls in Credit and usage under key x402 and logs each settlement under Credit Activity as Paid for one request. Because x402 is a real account key, pausing it under Developers halts x402 billing for that wallet.

Failures

StatusCodeCause
402payment_requiredNeither API key nor payment header was supplied; read the price from PAYMENT-REQUIRED
400payment_invalidMalformed payment header, mismatched network/token/recipient, underpayment below the hold, expired or future-dated validity window (under 60 seconds remaining), non-32-byte nonce, or a keyed request paired with a wallet outside that account
402payment_invalidSignature failed recovery to from, insufficient bridged USDC balance, or previously used nonce; check PAYMENT-RESPONSE for details and PAYMENT-REQUIRED for a fresh quote
402payment_failedOn-chain settlement reverted (settlement_failed) or did not confirm within 30 seconds (settlement_pending); inspect PAYMENT-RESPONSE for the reason and transaction hash. Credit is never added without confirmation

With an API key

When an API-keyed request fails with 402 insufficient_credit, that response also attaches PAYMENT-REQUIRED. Retrying with both the API key and a PAYMENT-SIGNATURE from that account's wallet (or a linked wallet) tops up and runs the request under the key in one step. Signing from an unrelated wallet is rejected upfront with 400 payment_invalid before settlement so credit can never land on the wrong account.

Limits

Standard rate limits apply and accrue against the account's x402 key. On-chain settlements that fail to confirm within 30 seconds return settlement_pending.

Find your account

Click your profile at the bottom of the sidebar to jump into Settings or Credit (which houses Usage), and open Developers from Settings. Choosing Add credit next to your name opens the top-up flow directly. Press ⌘ K (Ctrl K on Windows and Linux) to open Search across chats and documentation.

Credit

Credit puts your current balance and estimated runway (based on your recent weekly burn) front and center. Sections for Free credit, For sale, Activity, and Wallet appear automatically whenever they have records to show.

Add credit

  1. Open Add credit and pick or enter a dollar amount; the preview line shows net credit after fees.
  2. Expand Details to choose your funding asset (bridged USDC or wallet credit tokens). Switching Add as to Credit tokens keeps purchased tokens in your wallet instead of activating them.
  3. Choose Pay and confirm in your wallet (first-time token spends require an approval prompt before the purchase prompt).

Paying with bridged USDC purchases and activates credit tokens atomically on Elysium, while paying with credit tokens burns tokens already in your wallet. Confirmed activation receipts determine final credit. If your wallet holds zero funds, Add credit displays your Elysium deposit address for bridged USDC.

Completing a single purchase or activation that adds at least $5 in net credit unlocks Add $5 or more for $1.00 of free credit.

Sell credit tokens

  1. Under Wallet, choose Use or sell beside your credit tokens, then pick Sell.
  2. Select Price for each and enter your quantity; the preview shows how many tokens already sit ahead of your order at that price tier.
  3. Choose List and sign in your wallet (your first listing prompts once for token approval and once to place the order).

Active orders live under For sale. Choose View to inspect price, filled volume, queue depth ahead of you, and the transaction receipt. Use Cancel listing to return unsold tokens to your wallet and Collect to withdraw bridged USDC proceeds. Read Selling for full details.

On a network without the order book, Sell says that selling is not available yet.

Send or receive tokens

Under Wallet, open Send or receive on USDC to display Receive (your address plus QR code) and Send. Always transfer exclusively on Elysium (Chain ID 99901 mainnet, or 99801 testnet) as indicated in Receive. Credit tokens, HeyEly launch tokens, and HYPE each expose their own Send dialog.

Check Holder rewards to claim launch token fee payouts.

Activity

Activity provides a reverse-chronological ledger of everything that changed your credit balance: top-ups, reward claims activated as credit, x402 per-request payments, and free credit grants, usage, and expirations. Pending confirmations stay pinned at the top, and on-chain entries link straight to the Elysium explorer (opens in a new tab).

Usage

Credit and usage tracks exactly what your model calls cost. Toggle between 7 days and 30 days to inspect aggregate spend and daily trends, with Spent on highlighting your highest-spend models.

Find a request

The Spend table displays every dispatched call along with its model, origin, context utilization, timestamp, and charge. From shows Chat for web conversations or the API key's label. Active calls read Running, failed calls read Failed, and Show all expands the full list.

Rows log as soon as HeyEly opens a credit hold and dispatches a call upstream. Calls rejected before that point do not appear in Spend, even though their error responses include a request ID. See Errors.

Filter views via query parameters such as /usage?key=laptop to isolate a single key, model, or client, then use Clear filter to reset.

Open a request

Click any row to inspect From (including detected client software when available), Cost (labeled Estimated cost until provider settlement finishes), Length (input and output tokens), Context (percentage of model context used), Private (whether it ran on a Private route), and ID (matching x-request-id).

HeyEly logs billing metadata only and never retains prompt or completion text.

Investigate a failed request

Grab x-request-id from the HTTP response headers and navigate to /usage/<request-id>, then cross-reference the status against Errors. If no row exists for that ID, inspect the error payload itself, because auth, credit, and validation failures halt before model dispatch.

Export the figures

Click CSV next to the date-range toggle to download all logged requests for that period.

Developers

Developers centralizes both your API keys and third-party apps authorized through the MCP server.

  • Create key generates a new secret displayed once. See Keep a key safe.
  • Edit updates a key's label or dollar limit, pauses it, or deletes it permanently.
  • Connected apps tracks each OAuth app's spend, with Edit controls to adjust budgets, pause access, or disconnect.
  • Connect a tool provides ready-to-copy base URLs and configuration snippets.

Settings

Settings manages your display name, theme preference, linked login methods, active sessions, local chat storage, and account deletion.

Change your name and look

Click Edit next to Name to update your profile label, and choose Light, Dark, or System under Appearance.

Add another way to sign in

Under Ways to sign in, attach an email address, Google account, wallet, or passkey (using Touch ID, Face ID, or device lock). Every linked credential opens the same HeyEly account, and any unneeded method can be removed via Remove.

Sign out on every device

Under Devices, choosing Sign out beside Every device revokes all active web sessions and connected-app authorizations, including your current browser. API keys stay active unless you also enable Also stop every API key.

Delete your chats

Choosing Delete all beside Chats permanently wipes conversations stored in your current browser.

Delete your account

Click Delete on Delete account and confirm by typing the shortened wallet address displayed. Deletion permanently removes keys and chats and forfeits any remaining credit and free credit, while leaving wallet tokens untouched on Elysium. Wait for any in-flight requests to finish before deleting.

Signing back in later with the same wallet reopens the account with a zero credit balance and no renewed eligibility for free credit.