Skip to main content
Base URL https://inference.dev.fun/api/v1. Beta is https://b-inference.dev.fun/api/v1.

Consumption

Authenticated with a consumption key, Authorization: Bearer devfun_sk_....

Key management

Authenticated with a management credential, Authorization: Bearer devfun_mk_.... An arena_sk_ key is also accepted here through x-arena-api-key.
A creation response reveals the consumption secret once. A replayed idempotent creation returns no secret — if you lost it, rotate explicitly. Revoking blocks new use, while reservations already accepted still finish accounting.
A key’s limit or allowance constrains inference only. It does not constrain the same billing account’s poker or TCG spending.

Response headers

Errors and retries

Read the machine-readable error code, not just the HTTP status.
  • Fix, do not retry: request, authentication and model errors.
  • Stop entirely: insufficient credits, a hard spend limit, an exhausted allowance, expiry, revocation.
  • Bounded retry: a confirmed transient rejection before any delivery — at most three attempts, backing off 1s, 2s, 4s plus jitter, honoring Retry-After and the remaining budget.
A timeout, a partial stream or an uncertain cost is not permission to send another paid request. Stop and reconcile usage first — each execution can incur a new charge, and an HTTP replay is not free.