AIAgenHub — the AI inference marketplace
Maximize every token you spend on AI.
Call dozens of frontier models through one OpenAI- and Anthropic-compatible API, billed per million tokens in USDC and routed to the best-priced healthy provider. No monthly plan, no commitment — pay for what you use, at a fraction of official pricing.
I want API access
Pay per token. Maximum value.
Top up USDC, grab one key, then npx @aiagenhub/helper — or call any model from your SDK. Stop calling, stop paying.
Top 5 consumer spending
All time- 1a63343940d7c$13,933 USDC
- 2c136d3271380$6,323 USDC
- 3b9e6f45a3b88$2,826 USDC
- 4e8290fda427c$1,623 USDC
- 51430c0bb15f7$1,386 USDC
I have capacity
Turn idle capacity into USDC.
Connect one of the curated upstreams — Claude, Codex, z.ai, OpenCode Go, Command Code — and earn on the headroom you don't use.
Top 5 publisher earnings
All time- 13012952611b7$2,156 USDC
- 26b652a8e5328$2,103 USDC
- 3569edb1ca39b$1,999 USDC
- 465457f30696c$1,905 USDC
- 583b9009087d9$1,437 USDC
Reach upstreams that normally live behind a monthly plan
One API, two protocols, a marketplace behind it
AIAgenHub is an OpenAI- and Anthropic-compatible API with a marketplace behind it. Call any model with one key; route to capacity that fits your budget.
One key, both protocols
Hit /v1/chat/completions or /v1/messages with a single AIAgenHub API key. Or run npx @aiagenhub/helper to wire Claude Code, Codex, OpenCode, and more in seconds.
Combos: one name, many upstreams
combo/<slug> virtual models check your budget, then route to the first provider with available capacity. One model name, automatic failover, no manual re-rolls.
Real upstream quota tracking
We poll Claude, Codex, and z.ai for live 5-hour and weekly usage windows. No manual caps — exhaustion is detected from the source of truth, so your provider never cuts you off without warning.
Pay-per-use in USDC
Tokens are metered per million and deducted from your balance in real time. Stop calling, stop paying. No subscription to cancel. USDC on Solana mainnet.
Credentials encrypted at rest
Every provider key is encrypted at rest and injected only at the wire — we never expose your raw credential. Release control and rotation anytime.
Per-provider proxy pool
Each publisher's outbound traffic rides a least-used proxy from its configured pool, keeping upstream fingerprints stable and traffic distributed.
Get started in one command
Coding agents first: run the helper, paste your key, pick models. Or point your OpenAI / Anthropic SDK at AIAgenHub — same request shape, same streaming, one key for both.
# Point Claude Code, Codex, OpenCode, Hermes, OpenClaw, Cline at AIAgenHub
npx @aiagenhub/helper
# Interactive wizard:
# 1. paste API key -> validated via GET /v1/models
# 2. select agents
# 3. search & pick models
# 4. confirm -> configs written// Consumer combo -> first provider with capacity
const res = await client.chat.completions.create({
model: "combo/code-assistant",
messages: [{ role: "user", content: "Refactor this function." }],
stream: true,
});Full walkthrough in docs. Package: @aiagenhub/helper.
Pay-per-use for consumers, payout for publishers
Consumers optionally attach a bid (x-max-input-price / x-max-output-price) and we route to a provider that meets it. Skip the bid and we route to the first provider with capacity within your budget. No subscription tier required on either side.
Consumer path
Deposit USDC, generate one API key, and call any model through /v1/chat/completions or /v1/messages. Optionally attach a bid with x-max-input-price / x-max-output-price and we route to a provider that meets it.
Call models nowPublisher path
Pick a curated upstream — Claude, Codex, z.ai, OpenCode Go, or Command Code — connect its key, set your per-Mtoken ask, and your capacity joins the pool. Earnings accrue per settled request; withdraw to Solana at the 5 USDC minimum.
List your capacityJoin the AIAgenHub community on Discord
Get support, request features, share suggestions, and follow updates. Whether you're calling models or publishing capacity, we're most responsive there.
Join the Discord