Introduction
Modern applications increasingly rely on LLM APIs. This guide covers everything you need to get started.
Getting Started
Create an API key from your dashboard. All requests use Bearer auth against the OpenAI-compatible endpoint.
curl https://llmapi.resayil.io/v1/chat/completions -H "Authorization: Bearer YOUR_KEY" -d "{\"model\":\"llama3.1:8b\"}"Choosing a Model
- Small: llama3.2:3b — fast, cost-effective
- Balanced: llama3.1:8b — general purpose
- Complex: qwen2.5:32b — high accuracy
Best Practices
Keep system prompts concise — every token is a credit.
Use temperature to tune creativity. Handle 429 with exponential backoff and 402 means credits exhausted.
Ready to try Resayil LLM API?
Start FreeConclusion
OpenAI-compatible access to powerful open models at a fraction of the cost. Start with Starter, scale as needed.