Skip to content

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.

APIWhat it doesOpenAI-compatx402-eligible
TextChat completions, completions, Anthropic Messages, function calling, vision, streaming
ImageStable Diffusion WebUI and OpenAI images endpoints
EmbeddingsText embeddings for semantic search, RAG, clustering
SearchMulti-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 with GET /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