questions/Free APIs

Is there a free LLM API?

Sign in, grab an sk-aig-... key, and add a card — it never charges you and puts $1 of credit on your account, spendable across a curated trial catalog of 15 models: zai-org/glm-5.2, moonshot/kimi-k2.7-code (frontier open-weight, 256K context, vision + tool calling), gpt-oss-120b, BGE-M3 for embeddings, FLUX for image, Moondream vision, Aura 2 TTS, Whisper Turbo STT and more. A payment method is required to call the API. The $1 expires 30 days after you add the card.

How it works

Claim the key + $1 free credit

Visit aigateway.sh and sign in with GitHub or Google. No phone verification, no invite codes. A payment method is required to call the API — adding a card is free and never charges you, and grants $1 in credit across a curated trial catalog of 15 models: zai-org/glm-5.2, moonshot/kimi-k2.7-code (frontier open-weight, 256K context, vision, native tool calling), BGE-M3 embeddings, FLUX-2 Klein image, Moondream vision, Aura 2 TTS, Whisper Turbo STT and more. The $1 expires 30 days after you add the card.

Write your first call

Install pip install aigateway-py openai, point the OpenAI SDK at https://api.aigateway.sh/v1, set model="zai-org/glm-5.2", and you're making production-grade LLM calls. Your $1 card credit covers GLM-5.2, model="moonshot/kimi-k2.7-code" and the rest of the curated trial catalog. Standard PAYG rate limits apply.

Top up to unlock the full catalog

Top up $5 (or more) for pay-as-you-go. No subscription, no auto-renew. That unlocks the full catalog — Claude Opus 4.7, GPT-5.4, Gemini 3.1 Pro, the image and video models, everything. Your code stays the same.

Code example

Python
# pip install aigateway-py openai
# aigateway-py: sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK: chat/embeddings/images/audio — drop-in compat per our SDK's own guidance.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

r = client.chat.completions.create(
    model="moonshot/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(r.choices[0].message.content)
Node / TypeScript
// npm i aigateway-js openai
// aigateway-js: sub-accounts, evals, replays, jobs, webhook verify.
// openai SDK: chat/embeddings/images/audio — drop-in compat.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.aigateway.sh/v1",
  apiKey: process.env.AIGATEWAY_KEY,
});

const r = await client.chat.completions.create({
  model: "moonshot/kimi-k2.7-code",
  messages: [{ role: "user", content: "Explain vector databases in two sentences." }],
});
console.log(r.choices[0].message.content);

Related

FAQ

Is AIgateway really free to start?

A payment method is required to call the API — but adding a card is free and never charges you, and it grants $1 in credit across a curated trial catalog of 15 models led by GLM-5.2 (chat, code, image, voice, embeddings, vision). The $1 expires 30 days after you add the card.

What's the catch?

No catch. The $1 card credit exists because we believe developers should try the platform end-to-end before paying — the card is a signup gate, not a charge. Most teams upgrade once they've shipped a prototype on the credit; the paid tier starts at a $5 minimum top-up with no subscription.

Is Kimi K2.7 Code actually usable for production?

Yes — Kimi K2.7 Code is a 1T-parameter open-weight model benchmarked at SWE-Bench 68.2 and HumanEval 92.7. It's competitive with Claude Opus 4.7 on agentic coding at ~10x the price-per-token once you're paying.

Can I build a real app on the trial credit?

For prototyping and personal projects, yes. For production traffic, the $1 and the curated catalog are the bottleneck — a $5 top-up unlocks higher throughput across the full catalog at pass-through pricing with no recurring charge.

TRY IT NOW

One key, every model. $1 free to start.

Get an AIgateway keyOpen the playground