Every AI API.
Live-tested. Free tiers first.
The only AI API directory that checks if APIs are actually working today and shows you how to use them in one click.
All APIs
Sorted by free tier, then popularity
Ultra-fast LLM inference using LPU hardware. Supports Llama 3, Mixtral, and Gemma.
from groq import Groq
client = Groq(api_key="YOUR_KEY")
res = client.chat.completions.create(
model="llama3-8b-8192",
messages=[{"role": "user", "content": "Hello"}]
)
print(res.choices[0].message.content)European open-weight LLMs with no daily request cap on the free tier.
from mistralai import Mistral
client = Mistral(api_key="YOUR_KEY")
res = client.chat.complete(
model="mistral-small-latest",
messages=[{"role": "user", "content": "Hello"}]
)
print(res.choices[0].message.content)Access thousands of open-source models via a single OpenAI-compatible API. Free with a Hugging Face token.
from huggingface_hub import InferenceClient
client = InferenceClient(api_key="YOUR_HF_TOKEN")
res = client.chat.completions.create(
model="meta-llama/Meta-Llama-3-8B-Instruct",
messages=[{"role": "user", "content": "Hello"}],
max_tokens=500
)
print(res.choices[0].message.content)Run 50+ open-source models. Competitive pay-as-you-go pricing with a signup credit.
from together import Together
client = Together(api_key="YOUR_KEY")
res = client.chat.completions.create(
model="meta-llama/Llama-3-8b-chat-hf",
messages=[{"role": "user", "content": "Hello"}]
)
print(res.choices[0].message.content)Claude model family. Best-in-class reasoning and 200k token context window.
import anthropic
client = anthropic.Anthropic(api_key="YOUR_KEY")
msg = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}]
)
print(msg.content[0].text)GPT-4o and o-series models. Industry standard with the widest ecosystem support.
from openai import OpenAI
client = OpenAI(api_key="YOUR_KEY")
res = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello"}]
)
print(res.choices[0].message.content)Enterprise RAG and embeddings. Best-in-class reranking and multilingual support.
import cohere
co = cohere.Client("YOUR_KEY")
res = co.embed(
texts=["Hello world"],
model="embed-english-v3.0",
input_type="search_document"
)
print(res.embeddings[0][:5])State-of-the-art embedding models. Used by Anthropic for RAG use cases.
import voyageai
vo = voyageai.Client(api_key="YOUR_KEY")
result = vo.embed(
["Hello world"],
model="voyage-3",
input_type="document"
)
print(result.embeddings[0][:5])Stable Diffusion and SDXL image generation with high quality customizable outputs.
import requests, base64
res = requests.post(
"https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"text_prompts": [{"text": "a cat in space"}], "samples": 1}
)
with open("out.png", "wb") as f:
f.write(base64.b64decode(res.json()["artifacts"][0]["base64"]))Run any open-source AI model via API. Covers image, video, audio, and language models.
import replicate
output = replicate.run(
"black-forest-labs/flux-schnell",
input={"prompt": "a cat in space"}
)
print(output)Gemini 1.5 Pro and Flash models. 1M token context, vision, audio, and code support.
import google.generativeai as genai
genai.configure(api_key="YOUR_KEY")
model = genai.GenerativeModel("gemini-1.5-flash")
res = model.generate_content("Hello")
print(res.text)High performance open-source models at very low cost. Strong on coding and math.
from openai import OpenAI
client = OpenAI(api_key="YOUR_KEY", base_url="https://api.deepseek.com")
res = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello"}]
)
print(res.choices[0].message.content)