CoolFace
Datasetpublic

nickyni/free-litellm-compatible-api-100-models-nexaapi

Free LiteLLM-Compatible API — 100+ Models, No Credit Card Required If you're using LiteLLM to manage your AI model calls, you know the pain: every provider needs its own API key, billing setup, and rate limit management. And the costs add up fast. What if you could get 100+ models through one LiteLLM-compatible endpoint — for free to start, no credit card required? That's exactly what NexaAPI offers. What is LiteLLM? LiteLLM is a popular Python library that… See the full description on the dataset page: https://huggingface.co/datasets/nickyni/free-litellm-compatible-api-100-models-nexaapi.

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes10downloads
Dataset Card

Free LiteLLM-Compatible API — 100+ Models, No Credit Card Required

If you're using LiteLLM to manage your AI model calls, you know the pain: every provider needs its own API key, billing setup, and rate limit management. And the costs add up fast.

What if you could get 100+ models through one LiteLLM-compatible endpoint — for free to start, no credit card required?

That's exactly what NexaAPI offers.


What is LiteLLM?

LiteLLM is a popular Python library that provides a unified interface to 100+ LLM providers. You write one piece of code, and LiteLLM handles routing to OpenAI, Anthropic, Cohere, and more.

The problem? You still need to pay each provider separately. And most providers require a credit card just to start.


NexaAPI: The Best LiteLLM Backend

NexaAPI is a unified AI inference API that:

  • Supports 77+ models (LLMs, image generation, video, TTS, speech-to-text)
  • Is OpenAI-compatible — works as a drop-in LiteLLM backend
  • Offers $5 free credits — no credit card required
  • Is 5× cheaper than official API prices
  • Has credits that never expire

Install the SDK:

bash
pip install nexaapi
# or
npm install nexaapi

Using NexaAPI as a LiteLLM Backend

Since NexaAPI is OpenAI-compatible, you can use it directly with LiteLLM:

bash
pip install litellm nexaapi
python
import litellm
import os

# Set NexaAPI as your OpenAI-compatible backend
os.environ["OPENAI_API_KEY"] = "YOUR_NEXAAPI_KEY"
os.environ["OPENAI_API_BASE"] = "https://api.nexa-api.com/v1"

# Now use LiteLLM as normal — it routes through NexaAPI
response = litellm.completion(
    model="openai/claude-sonnet-4-5",  # NexaAPI model
    messages=[{"role": "user", "content": "Hello! What can you do?"}]
)

print(response.choices[0].message.content)
# Cost: ~5× cheaper than going direct to Anthropic

Python Code Example: Direct NexaAPI Usage

python
from nexaapi import NexaAPI

# Initialize with your API key ($5 free credits, no credit card)
client = NexaAPI(api_key='YOUR_API_KEY')

# Text generation
chat_response = client.chat.completions.create(
    model='claude-sonnet-4-5',
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Explain LiteLLM in one paragraph."}
    ]
)
print(chat_response.choices[0].message.content)

# Image generation — $0.003/image
image_response = client.image.generate(
    model='flux-schnell',
    prompt='A developer working on a laptop in a modern office',
    width=1024,
    height=1024
)
print(f"Image: {image_response.image_url}")
print(f"Cost: ${image_response.cost}")

# List all available models
models = client.models.list()
for model in models.data[:10]:
    print(f"{model.name} ({model.category}) — ${model.pricing_per_unit}/unit")

JavaScript Code Example: NexaAPI in Node.js

javascript
// npm install nexaapi
import NexaAPI from 'nexaapi';

const client = new NexaAPI({ apiKey: 'YOUR_API_KEY' });

// Text generation
async function chat(message) {
  const response = await client.chat.completions.create({
    model: 'claude-sonnet-4-5',
    messages: [{ role: 'user', content: message }]
  });
  return response.choices[0].message.content;
}

// Image generation
async function generateImage(prompt) {
  const response = await client.image.generate({
    model: 'flux-schnell',  // $0.003/image
    prompt,
    width: 1024,
    height: 1024
  });
  console.log(`Image URL: ${response.imageUrl}`);
  console.log(`Cost: $${response.cost}`);
}

// Run examples
chat('What is LiteLLM?').then(console.log);
generateImage('A futuristic AI data center');

Available Models on NexaAPI (Selected)

CategoryModelsStarting Price
Image GenerationFlux Schnell, Flux 2 Pro, SDXL, SD3$0.003/image
Video GenerationVeo 3, Sora, Kling V3 Pro~$0.80/video
LLMsClaude, GPT-4o, Llama 3.1, Gemini~$0.60/1M tokens
TTSElevenLabs-compatible~$0.01/1K chars
Speech-to-TextWhisper~$0.006/min

77+ models total, all accessible with one API key.


Free Tier Details

NexaAPI's free tier includes:

  • $5 free credits — no credit card required
  • Access to all 77+ models
  • No time limit on free credits
  • Full API access (no feature restrictions)

That's enough for:

  • ~1,600 image generations at $0.003/image
  • ~8 million LLM tokens
  • ~500 minutes of speech-to-text

Why Developers Are Switching from LiteLLM Multi-Provider to NexaAPI

Pain PointLiteLLM Multi-ProviderNexaAPI
API keys to manage5-10 keys1 key
Billing accountsMultipleOne
Rate limit headachesPer providerUnified
CostFull official prices5× cheaper
Free tierVaries$5, no CC

Get Started in 60 Seconds

bash
# 1. Install
pip install nexaapi

# 2. Get your free API key at nexa-api.com (no credit card)

# 3. Generate your first image
python3 -c "
from nexaapi import NexaAPI
client = NexaAPI(api_key='YOUR_KEY')
r = client.image.generate(model='flux-schnell', prompt='Hello world', width=512, height=512)
print(r.image_url)
"

Sign up free: https://nexa-api.com — $5 credits, no credit card required.

RapidAPI: https://rapidapi.com/user/nexaquency


Resources

  • 🌐 NexaAPI: https://nexa-api.com
  • 📦 Python SDK: https://pypi.org/project/nexaapi
  • 📦 Node.js SDK: https://npmjs.com/package/nexaapi
  • 🚀 RapidAPI: https://rapidapi.com/user/nexaquency
  • 🔧 atulya-litellm: https://pypi.org/project/atulya-litellm/

Pricing data from nexa-api.com/pricing. Retrieved March 2026.