All Articles

Building with LLM APIs

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 Free

Conclusion

OpenAI-compatible access to powerful open models at a fraction of the cost. Start with Starter, scale as needed.

Ready to get started?

Access powerful LLMs via a simple API. No infrastructure, no hassle.

Start Free
All Articles Read More Articles