Developer documentation

Docs for inference, billing, and agent validation

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

The base URL is not the only thing that changes.

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
USD per 1M uncached input / output tokens. Standard list-price snapshot checked July 28, 2026.
ModelXpersonaOfficial baselineInput / output savings
GPT-5.6 / Sol$1.50 / $12$5 / $3070% / 60%
GPT-5.6 Terra$1.50 / $2$2.50 / $1540% / 87%
GPT-5.5$1.50 / $12$5 / $3070% / 60%
GPT-5.4$0.75 / $6$2.50 / $1570% / 60%
GPT-5.4 Mini$0.375 / $4$0.75 / $4.5050% / 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

Discover from feeds

Start with latest, benchmarked, security-reviewed, or openapi-ready feed views.

Step 2

Inspect evidence

Read snapshot, contract, trust, card, and facts before acting.

Step 3

Run or recommend

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.

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.

Four fixed monthly packages

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.

Dashboard usage control

The dashboard shows prepaid credit state, API key prefix, monthly spend, weekly usage, token totals, latency, recent requests, and the retail price card.

Crawl licensing

Crawler integrations can buy prepaid crawl credits, reveal one-time xpcrawl keys, exchange keys for short-lived crawl tokens, and check status.

Council & xpersona-auto

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

Use the current production API

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"
opencode

Chat 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"

Inference and usage

Xpersona /v1 model access plus public pricing and authenticated usage telemetry.

GET

/v1/models

List Xpersona model IDs.

Public
POST

/v1/chat/completions

Run any public model; Claude Fable 5 is the default.

Bearer API key
GET

/v1/pricing

Retail model price cards.

Public
GET

/v1/usage

Billing, limits, spend, and recent calls.

Bearer API key
GET

/api/v1/inference/pricing

Versioned pricing alias.

Public
GET

/api/v1/inference/usage

Versioned usage alias.

Bearer API key
POST

/v1/chat/completions (model: xpersona-auto)

Auto-route to the best enabled model with explainable routing metadata.

Bearer API key
POST

/v1/council

Create and run a multi-model Council comparison.

Signed-in user
GET

/v1/council/:id/receipt

Preview, publish, or unpublish a proof receipt (private by default).

Signed-in user

Billing and dashboard

The customer path for adding credits, creating keys, and monitoring spend.

GET

/opencode

Native OpenCode setup and model catalog.

Public
GET

/pricing

Monthly packages and prepaid top ups.

Public
POST

/api/v1/me/xpersona-topup

One-time Stripe Checkout for prepaid credits.

Signed-in user
GET

/dashboard/connect-ai

Native OpenCode setup and API key flow.

Signed-in user
GET

/dashboard

Usage, billing, model access, and recent requests.

Signed-in user

Agent discovery and validation

The replacement flow for retired search endpoints: feed first, then evidence endpoints.

GET

/api/v1/feeds/agents/{view}

latest, benchmarked, security-reviewed, openapi-ready, recent-updates.

Public
GET

/api/v1/agents/{slug}/snapshot

Stable summary for extraction.

Public or crawl token
GET

/api/v1/agents/{slug}/contract

Capability and integration contract.

Public or crawl token
GET

/api/v1/agents/{slug}/trust

Verification and reliability signals.

Public or crawl token
GET

/api/v1/agents/{slug}/card

Compact agent card.

Public
GET

/api/v1/agents/{slug}/facts

Fact-level citation surface.

Public

Crawler and tool integrations

Machine-readable entrypoints for crawlers, tools, and LLM framework adapters.

GET

/api/v1/crawl-license

Credit options, token transport, and gated surfaces.

Public
POST

/api/v1/crawl-license/checkout

Prepaid Stripe Checkout for crawl credits.

Public
POST

/api/v1/crawl-license

Exchange API key for a crawl token.

xpcrawl key
GET

/api/v1/tools/langchain

LangChain tool descriptors.

Public

Machine-readable docs

Files and schemas intended for autonomous clients and crawlers.

GET

/api/v1/openapi/ai-public

Curated AI-facing OpenAPI schema.

Public
GET

/api/v1/openapi/public

Broader public OpenAPI schema.

Public
GET

/llms.txt

Short guidance for LLM clients.

Public
GET

/llms-full.txt

Expanded machine guidance.

Public
GET

/chatgpt.txt

Agent-focused entrypoint.

Public

Live schema snapshot

26 AI/public paths loaded

/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