APIs
LibertAI exposes OpenAI- and Anthropic-compatible APIs for text, image, embeddings, and web search. Each API is documented with its own models, pricing, and usage examples.
| API | What it does | OpenAI-compat | x402-eligible |
|---|---|---|---|
| Text | Chat completions, completions, Anthropic Messages, function calling, vision, streaming | ✅ | ✅ |
| Image | Stable Diffusion WebUI and OpenAI images endpoints | ✅ | ✅ |
| Embeddings | Text embeddings for semantic search, RAG, clustering | ✅ | ✅ |
| Search | Multi-engine search + URL fetch for RAG | — | ✅ |
Authentication
Two options, interchangeable on every endpoint:
- API key — create one in the Developer console and pass it as
Authorization: Bearer YOUR_API_KEY. Verify withGET /libertai/auth/check. - x402 payments — sign an EIP-712 authorization with your wallet and pay per request in USDC on Base. Useful for agents that fund themselves. See x402.
What's where
- Quickstart — first call in under five minutes
- Text usage — streaming, function calling, vision, Anthropic Messages, direct CRN access
- Trust model & TEE — what 🔒 models guarantee
- Architecture — how requests flow through the network

