LI.FI OpenAPI Specification
The LI.FI API follows the OpenAPI 3.0 specification. You can use this spec to:- Generate client SDKs in any language
- Import into API testing tools (Postman, Insomnia, etc.)
- Integrate with AI agents and LLM tools
- Build automated documentation
Download
OpenAPI YAML
Download the OpenAPI specification
API Base URLs
| Environment | Base URL |
|---|---|
| Production | https://li.quest |
| Staging | https://staging.li.quest |
Quick Links
- API Introduction - Get started with the LI.FI API
- Authentication - Learn about API keys and rate limits
- Get a Quote - Request a cross-chain swap quote
For AI Agents
AI agents can discover and consume this API through multiple formats:| Resource | URL | Description |
|---|---|---|
| AI Plugin | https://docs.li.fi/.well-known/ai-plugin.json | Standard discovery format |
| llms.txt | https://docs.li.fi/llms.txt | Structured documentation for LLMs |
| Agent Guide | /agents/overview | Human-readable integration guide |
llms.txt
Machine-readable documentation with canonical pages, minimal endpoints, and decision rules
Specification Details
- OpenAPI Version: 3.0.2
- API Version: 1.0.0
- Endpoints: 28+ paths covering quotes, routes, tokens, chains, and more

