One API for GPT, Claude, Gemini, and Xpersona
Start from /opencode, connect provider xpersona in OpenCode, select xpersona/claude-fable-5 from /models, or use /v1/models, /v1/chat/completions, /v1/pricing, and /v1/usage directly.
Developer documentation
Current production base is https://www.xpersona.co. Use this page for native OpenCode setup, Xpersona /v1 inference, monthly packages and prepaid credits, usage dashboard endpoints, crawl licensing, and feed-first validation.
Packages
$20 / $100 / $200
Fixed monthly capacity with no surprise overage billing.
Inference
16 models
Genuine GPT, Claude, Gemini, and Xpersona models through /v1 and native OpenCode routing.
OpenCode
Native
Choose Xpersona from the provider picker and paste a setup key.
Search
410
Retired search surfaces point crawlers to feed-based replacements.
A small rate note
Several premium Xpersona PAYG routes are 60–70% below the compared standard official API list prices. Savings vary by model and token type, so the useful comparison is the row—not the headline.
Read the model-by-model price checks| Model | Xpersona | Official baseline | Input / output savings |
|---|---|---|---|
| GPT-5.6 / Sol | $1.50 / $12 | $5 / $30 | 70% / 60% |
| GPT-5.6 Terra | $1.50 / $2 | $2.50 / $15 | 40% / 87% |
| GPT-5.5 | $1.50 / $12 | $5 / $30 | 70% / 60% |
| GPT-5.4 | $0.75 / $6 | $2.50 / $15 | 70% / 60% |
| GPT-5.4 Mini | $0.375 / $4 | $0.75 / $4.50 | 50% / 11% |
Generic GPT-5.6 is the baseline for GPT-5.6 Sol. Batch, flex, priority, caching, long-context, tools, regions, taxes, and promotions can change the result. Gemini 3.5 Flash is excluded from this savings claim.
Recommended AI flow
1) /api/v1/feeds/agents/latest -> 2) /snapshot -> 3) /contract + /trust -> then decide
Step 1
Start with latest, benchmarked, security-reviewed, or openapi-ready feed views.
Step 2
Read snapshot, contract, trust, card, and facts before acting.
Step 3
Use /v1 inference after a signed-in user has an active plan and API key.
Package quick reference
Builder
Fixed supplier-weighted monthly capacity on the base-cost route; premium usage is supplier-weighted.
$20/month
Pro
5x Builder monthly capacity on the base-cost route; premium usage is supplier-weighted.
$100/month
Studio
20x Builder monthly capacity on the base-cost route; premium usage is supplier-weighted.
$200/month
Scale
50x Builder monthly capacity on the base-cost route; premium usage is supplier-weighted.
$350/month
Prepaid credits
One-time top ups remain available.
$2 minimum
Stripe manages packages and one-time credit top ups. Package requests pause at the monthly allowance; prepaid usage pauses at a zero balance.
Start from /opencode, connect provider xpersona in OpenCode, select xpersona/claude-fable-5 from /models, or use /v1/models, /v1/chat/completions, /v1/pricing, and /v1/usage directly.
Builder, Pro, Studio, and Scale unlock the full catalog with supplier-weighted included capacity. Package requests pause at the compute allowance instead of creating overage charges.
The dashboard shows prepaid credit state, API key prefix, monthly spend, weekly usage, token totals, latency, recent requests, and the retail price card.
Crawler integrations can buy prepaid crawl credits, reveal one-time xpcrawl keys, exchange keys for short-lived crawl tokens, and check status.
Run one task across several frontier models with blind judging, compare the evidence, and continue with the winner. Or call the virtual xpersona-auto model and let an explainable router pick the best enabled model for each request.
Copy-paste examples
Auth uses $XPERSONA_API_KEY.
List models
curl -s "https://www.xpersona.co/v1/models"OpenCode native setup
export XPERSONA_API_KEY='xp_your_key'
opencode models xpersona --refresh --verbose
opencode run -m xpersona/claude-fable-5 "Reply with exactly: XPERSONA_OK"
opencodeChat completions
curl -s "https://www.xpersona.co/v1/chat/completions" \
-H "Authorization: Bearer $XPERSONA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"claude-fable-5","messages":[{"role":"user","content":"Ship a tiny Next.js route"}],"reasoning":{"effort":"low"}}'Pricing
curl -s "https://www.xpersona.co/v1/pricing"Usage
curl -s "https://www.xpersona.co/v1/usage" -H "Authorization: Bearer $XPERSONA_API_KEY"Latest agent feed
curl -s "https://www.xpersona.co/api/v1/feeds/agents/latest"Agent evidence
curl -s "https://www.xpersona.co/api/v1/agents/my-agent-slug/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/my-agent-slug/contract"
curl -s "https://www.xpersona.co/api/v1/agents/my-agent-slug/trust"Crawl-license info
curl -s "https://www.xpersona.co/api/v1/crawl-license"Xpersona /v1 model access plus public pricing and authenticated usage telemetry.
/v1/models
List Xpersona model IDs.
/v1/chat/completions
Run any public model; Claude Fable 5 is the default.
/v1/pricing
Retail model price cards.
/v1/usage
Billing, limits, spend, and recent calls.
/api/v1/inference/pricing
Versioned pricing alias.
/api/v1/inference/usage
Versioned usage alias.
/v1/chat/completions (model: xpersona-auto)
Auto-route to the best enabled model with explainable routing metadata.
/v1/council
Create and run a multi-model Council comparison.
/v1/council/:id/receipt
Preview, publish, or unpublish a proof receipt (private by default).
The customer path for adding credits, creating keys, and monitoring spend.
/opencode
Native OpenCode setup and model catalog.
/pricing
Monthly packages and prepaid top ups.
/api/v1/me/xpersona-topup
One-time Stripe Checkout for prepaid credits.
/dashboard/connect-ai
Native OpenCode setup and API key flow.
/dashboard
Usage, billing, model access, and recent requests.
The replacement flow for retired search endpoints: feed first, then evidence endpoints.
/api/v1/feeds/agents/{view}
latest, benchmarked, security-reviewed, openapi-ready, recent-updates.
/api/v1/agents/{slug}/snapshot
Stable summary for extraction.
/api/v1/agents/{slug}/contract
Capability and integration contract.
/api/v1/agents/{slug}/trust
Verification and reliability signals.
/api/v1/agents/{slug}/card
Compact agent card.
/api/v1/agents/{slug}/facts
Fact-level citation surface.
Machine-readable entrypoints for crawlers, tools, and LLM framework adapters.
/api/v1/crawl-license
Credit options, token transport, and gated surfaces.
/api/v1/crawl-license/checkout
Prepaid Stripe Checkout for crawl credits.
/api/v1/crawl-license
Exchange API key for a crawl token.
/api/v1/tools/langchain
LangChain tool descriptors.
Files and schemas intended for autonomous clients and crawlers.
/api/v1/openapi/ai-public
Curated AI-facing OpenAPI schema.
/api/v1/openapi/public
Broader public OpenAPI schema.
/llms.txt
Short guidance for LLM clients.
/llms-full.txt
Expanded machine guidance.
/chatgpt.txt
Agent-focused entrypoint.
Live schema snapshot
/api/v1/agents/{slug}
deleteDELETE /api/v1/agents/{slug}
getGET /api/v1/agents/{slug}
patchPATCH /api/v1/agents/{slug}
/api/v1/agents/{slug}/card
getGET /api/v1/agents/{slug}/card
/api/v1/agents/{slug}/contract
getGET /api/v1/agents/{slug}/contract
/api/v1/agents/{slug}/facts
getGET /api/v1/agents/{slug}/facts
/api/v1/agents/{slug}/snapshot
getGET /api/v1/agents/{slug}/snapshot
/api/v1/agents/{slug}/trust
getGET /api/v1/agents/{slug}/trust
/api/v1/chat/completions
postCreate a chat completion
/api/v1/crawl-license
getDescribe crawl licensing
postExchange crawl API key for token
/api/v1/crawl-license/checkout
postCreate crawl-license Checkout session
/api/v1/crawl-license/render-agent/{slug}
getRender gated agent page with crawl license
/api/v1/crawl-license/reveal
postReveal crawl API key after checkout
/api/v1/crawl-license/rotate-key
postRotate crawl API key
/api/v1/crawl-license/status
getGet crawl-license status
/api/v1/feeds/agents/{view}
getGET /api/v1/feeds/agents/{view}
/api/v1/inference/pricing
getGet Xpersona inference pricing
/api/v1/inference/usage
getGet Xpersona inference usage
/api/v1/me/xpersona-checkout
postCreate Xpersona Stripe Checkout session
/api/v1/models
getList Xpersona inference models
/api/v1/tools/anthropic
getSchema-tool descriptors
/api/v1/tools/langchain
getLangChain tool descriptors
/api/v1/tools/openai
getFunction-tool descriptors
/context/v1
getGET /context/v1
/v1/chat/completions
postCreate a chat completion
/v1/models
getList Xpersona inference models
/v1/pricing
getGet Xpersona inference pricing
/v1/usage
getGet Xpersona inference usage