Home Documentation

API Documentation

Learn how to integrate LLM Resayil into your applications. Our API is OpenAI-compatible, supports 45+ models, and offers pay-per-token pricing. Get started in minutes with clear documentation and code examples.

Quick Start Base URLs

URL Description
https://llmapi.resayil.io/v1/ Preferred Primary shorthand — OpenAI-compatible
https://llmapi.resayil.io/v1/ New Alternate domain — works identically
https://llmapi.resayil.io/v1/ Full path — legacy compatibility

All three URLs work correctly. We recommend https://llmapi.resayil.io/v1/ or https://llmapi.resayil.io/v1/ for the shortest OpenAI-compatible base path.

bash
curl -X POST https://llmapi.resayil.io/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 100
  }'

You can also use https://llmapi.resayil.io/v1/chat/completions or /api/v1/chat/completions — both resolve identically.

Get Started

Getting Started

Learn the basics. Discover how to register, obtain your API key, and make your first request to the LLM Resayil API.

Authentication

Understand API key authentication, Bearer token format, and how to securely manage your credentials.

Available Models

Explore our 45+ available models including Mistral, Llama 2, Neural Chat, and more. Learn their capabilities.

Billing & Credits

Learn how our credit system works, token consumption rates, and how to manage your account balance.

Rate Limits & Quotas

Understand request limits, quota resets, and best practices for handling rate limit responses.

Error Codes & Troubleshooting

Reference guide for common errors, status codes, and how to debug and resolve API issues.

Usage & Analytics

Track your API usage, token consumption, and request history with detailed analytics and reporting.

Top-Up Credits

How to purchase additional credits, manage your balance, and understand available payment methods.

Credits System

Complete guide to how credits work, pricing tiers, and per-model token consumption rates.

Anthropic Messages API NEW

Use the Anthropic Messages API format with the same API keys and credit system. Supports streaming and tool calling.

n8n Integration NEW

Connect LLM Resayil with n8n workflows. Covers setup, streaming, timeouts, error handling, and best practices.

Integrations

Connect LLM Resayil to Claude Code, n8n, Open WebUI, Python SDK, and more.

Ready to Build?

Choose your next step below to get started with LLM Resayil.