# Seinari Inference

> High-speed OpenAI-compatible and Anthropic-compatible LLM inference API. Built for autonomous agents: programmatic signup with no CAPTCHA, instant API keys, x402 USDC payments on Base, $1–$2000 Stripe card checkout links, and remote MCP tools.

## Live Models

| Model ID | Name | Context | Pricing (USD) | Surfaces |
|---|---|---|---|---|
| `deepseek-v4.1-flash` | DeepSeek V4.1 Flash | 131,070 tokens | Free beta (shared budget) | chat_completions, messages, responses, completions |

Live JSON catalog (no auth required): `GET https://api.seinari.ai/account/v1/models` or `GET https://api.seinari.ai/`

## Autonomous Agent Quickstart (4 Calls)

1. **Challenge (Ed25519 or EVM wallet, no CAPTCHA):**
   `POST https://api.seinari.ai/account/v1/agent/challenge` with `{"type":"ed25519","public_key":"<32-byte-base64url-or-hex>"}` (or `{"type":"evm","address":"0x..."}`).
   Email alternative: `POST https://api.seinari.ai/account/v1/agent/signup/email` then `POST https://api.seinari.ai/account/v1/agent/verify/email`.
2. **Sign up & get API key (scopes: `inference`, `account`):**
   `POST https://api.seinari.ai/account/v1/agent/signup` with `{"challenge_id":"chg_...","signature":"<base64url-or-hex>"}`.
   Returns `api_key.secret` (`sk-seinari-v2...`) with deposit enabled immediately.
3. **Pay (prepaid credit, $1 minimum by card or $0.01 by x402):**
   - **x402 (USDC on Base `eip155:8453`):** `POST https://api.seinari.ai/account/v1/billing/x402` (returns HTTP 402 `PAYMENT-REQUIRED` to `0x9e3dc0d16fa8f5a5a70a5e727899fe4d15581b7c`, asset `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, or submit `{"tx_hash":"0x..."}`). You can also send `PAYMENT-SIGNATURE` directly on `POST https://api.seinari.ai/v1/chat/completions`.
   - **Hosted card checkout link:** `POST https://api.seinari.ai/account/v1/billing/top-ups` with header `Idempotency-Key: <uuid>` and `{"amount_microusd":1000000}` ($1.00). Returns `checkout_url` to hand to a human/payer; poll `GET https://api.seinari.ai/account/v1/billing/checkouts/{id}` or `GET https://api.seinari.ai/account/v1/billing`.
   - **Stripe Shared Payment Token (SPT):** `POST https://api.seinari.ai/account/v1/billing/top-ups` with `{"amount_microusd":1000000,"payment_method":"stripe_spt","shared_payment_token":"spt_..."}`.
4. **Call OpenAI-compatible inference:**
   - Base URL: `https://api.seinari.ai/v1`
   - Auth: `Authorization: Bearer sk-seinari-v2...` (or `x-api-key: sk-seinari-v2...`)
   - Endpoint: `POST https://api.seinari.ai/v1/chat/completions` (also `/v1/responses`, `/v1/completions`, `/v1/messages`, `/v1/models`)

## Documentation & Discovery

- [Full Agent Manual](https://seinari.ai/llms-full.txt): complete API, curl examples, x402, OpenClaw/OpenAI/Anthropic configs, MCP, limits
- [Inference OpenAPI 3.1](https://seinari.ai/openapi.json): inference endpoints spec
- [Account OpenAPI 3.1](https://api.seinari.ai/account/v1/openapi.json): signup, keys, billing, x402, deployments spec
- [MCP Server](https://seinari.ai/mcp): Streamable HTTP MCP server (`list_models`, `chat`, `get_balance`, `create_topup`, `list_keys`, `create_key`)
- [MCP Server Card](https://seinari.ai/.well-known/mcp/server-card.json): SEP-2127 discovery metadata
- [A2A Agent Card](https://seinari.ai/.well-known/agent-card.json): Agent-to-Agent discovery card
- [AI Plugin Manifest](https://seinari.ai/.well-known/ai-plugin.json): OpenAPI plugin discovery manifest

## Pages (Markdown)

- [Homepage](https://seinari.ai/index.md): speed benchmarks and agent setup prompt
- [Inference Overview](https://seinari.ai/inference.md): product summary and base URLs
- [Model Catalog](https://seinari.ai/inference/models.md): live models, capabilities, and pricing
- [API Documentation](https://seinari.ai/inference/docs.md): OpenAI, Anthropic, OpenClaw, and MCP client guides
- [FAQ](https://seinari.ai/inference/faq.md): limits, billing, regions, and reliability
- [Company](https://seinari.ai/company.md): contact and investor inquiries
- [Terms](https://seinari.ai/terms.md): service terms
- [Privacy](https://seinari.ai/privacy.md): privacy policy
