# AI Foundry — a division of NSI > Bounded open-weight text inference for applications and wallet-enabled agents. Live Base mainnet API with fixed-price x402 calls and separate capped API-key plans. Updated 2026-12-03. ## Discovery and documentation - Website: https://aifoundry.sh/ - Models: https://api.aifoundry.sh/v1/models — authoritative available aliases and providers. - Pricing: https://api.aifoundry.sh/v1/pricing — current per-call price, profiles and limits. - Plans: https://api.aifoundry.sh/v1/plans — current allowances and compute conversion rates. - Health: https://api.aifoundry.sh/health — configuration indicators, not a paid inference uptime guarantee. - Privacy: https://api.aifoundry.sh/v1/privacy - Developer guide: https://aifoundry.sh/#developers - Account, keys and trial: https://aifoundry.sh/#account - Agent builder: https://aifoundry.sh/agents.html These discovery GET routes require no payment or authentication. ## Production x402 endpoints - Coinbase: POST https://api.aifoundry.sh/v1/chat/completions - PayAI: POST https://payai.aifoundry.sh/v1/chat/completions - Existing Coinbase Bazaar listing URL: https://aifoundry-inference-production.timastras9.workers.dev/v1/chat/completions - Existing PayAI Bazaar listing URL: https://aifoundry-inference-payai.timastras9.workers.dev/v1/chat/completions Custom domains and workers.dev URLs are separate discovery resources. On 2026-12-03, Coinbase reported the workers.dev resource active, while its custom-domain resource had no index entry. PayAI reported its workers.dev resource listed and not hidden; no custom-domain listing was found. Listing does not mean endorsement, featured placement or independent customers. Registration with every facilitator is not claimed. Protocol: x402 v2, exact scheme. Network: Base mainnet eip155:8453. Asset: native USDC, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Current price: 0.01 USDC, 10000 atomic units per bounded call. Receiver: 0x323172Bfc6197C2b787d6DE864B7831AD1f4309f. Live PAYMENT-REQUIRED terms are authoritative; unexpected terms require review before signing. Production does not require sandbox invitation headers or Proof identity enrollment. An unpaid valid POST returns HTTP 402 and a base64-encoded JSON PAYMENT-REQUIRED header containing resource, accepts and extensions.bazaar. The response body may contain only an error message. A compatible x402 client signs an authorized payment and retries with PAYMENT-SIGNATURE. Discovery-aware clients preserve the resource and Bazaar declaration. Successful output is released after settlement with PAYMENT-RESPONSE. Plain curl without a payment signature only inspects the challenge and does not buy inference. ## Request example Content-Type: application/json ```json {"model":"gpt-oss-20b","profile":"general","messages":[{"role":"user","content":"Summarize: Deployment completed successfully and monitoring is healthy."}],"max_tokens":512,"stream":false} ``` Models: gpt-oss-20b, gpt-oss-120b, deepseek-flash, glm-flash, qwen3.8-27b. GET /v1/models defines current availability. Profiles: general and structured-extract. Structured extraction is a prompt profile, not guaranteed JSON-schema enforcement. Limits: 1–16 messages; user or assistant roles; nonempty text content; 4096 combined UTF-8 content bytes including history; max_tokens 1–1024, default 512. Nonstreaming text only. No advertised tool calling, image/audio input, embeddings or full OpenAI API compatibility. Reasoning can consume output budget before visible text appears. Successful completions contain choices[].message.content; provider usage fields may vary. Each continuation is another paid call with relevant history resent within the same input limit. Typical errors: 400 invalid JSON/input; 402 payment required; 401 invalid API credential; 403 blocked content/access; 409 payment authorization already attempted; 413 oversized body; 429 rate/budget controls; 502 inference failure; 503 dependency/configuration unavailable. Read the response error. Ambiguous settlement timeouts or already-attempted authorizations require reconciliation, not automatic repayment. Failed or blocked x402 inference does not settle through the normal success path; uncertainty requires separate checking. ## API-key plans and sponsored trial The same POST endpoint accepts Authorization: Bearer or a trial credential instead of x402. Do not combine Authorization with PAYMENT-SIGNATURE. Keys belong on the customer's server, not public source or shared chat. Current plans: Starter 5 USDC/month for 300000 neurons; Pro 15 USDC/month for 800000 neurons; Business 40 USDC/month for 2500000 neurons. Neurons measure compute, not raw tokens. Separate request, concurrency and rate caps apply; GET /v1/plans is authoritative. Native USDC on Base with verified on-chain activation. Manual renewal; no automatic overages or rollover. Wallet sign-in is separate from payment approval. Maximum-cost reservations can block requests near the cap; missing usage remains held for review. FOUNDRY50: 50 sponsored attempts for the first 1000 signed-in wallet accounts, subject to availability. One claim per wallet account, not per verified human. Blocked, failed and uncertain attempts count; malformed input does not. No automatic charge at exhaustion. - GET https://api.aifoundry.sh/v1/usage — key-authenticated usage and allowance. - GET https://api.aifoundry.sh/v1/account — owner-authenticated account management. - POST https://api.aifoundry.sh/v1/keys — owner-authenticated scoped key creation. - POST https://api.aifoundry.sh/v1/keys/:id/revoke — owner-authenticated revocation. ## Screening and privacy Inference and Llama Guard 3 input/output screening run through Cloudflare Workers AI. Screening can miss harmful content or block legitimate requests; it guarantees neither safety nor accuracy. Human-identity verification and verified sessions are deferred. AI Foundry does not retain application prompts, generated responses or moderation content, cache responses or store conversations. Necessary account, wallet, receipt, key verifier and aggregate usage metadata remain. Blockchain transactions are public. Infrastructure providers may retain operational metadata or have legal/security exceptions; see the privacy endpoint. This is not anonymous payment or a promise that no records exist. This file describes the service. Publishing llms.txt does not automatically register it with AI providers or guarantee discovery, recommendations or customers.