aifree.dev

How to Run an AI Agent for $0 in 2026: Models, Search and Vector DB

A tool-calling AI agent on free tiers only: which free LLM APIs accept tools, free web search and vector databases, a free host, and a config to copy.

Phần này hiện bằng tiếng Anh.

Thời gian
30 minutes
Bạn cần
An account and API key with each provider; none of the offers in this guide asks for a card for the free part · Python 3 with the openai package (or any OpenAI-compatible client) · Optional: pip install "litellm[proxy]" to put every model behind one endpoint with fallbacks
Kiểm tra lần cuối

An agent is a loop: the model reads the task, asks for a tool (search the web, look something up in your notes, call an API), your code runs the tool and sends the result back, and the model decides the next step until it can answer. Every piece of that loop has a free tier: an LLM API that accepts tools, a search API, a vector database for memory, and a host. The tool-calling agent stack picks one of each from our catalog and exports a ready-to-run config; this guide explains the choices and the limits you will hit.

Every number below comes from the linked offer page; OpenRouter's model list was re-checked on 2026-10-26.

The free agent stack at a glance

PieceFree pickFree partCard
LLM with tool callingOpenRouter :free models20 requests a minute, 50 a day (1,000 a day after you have bought 10 credits)No
Second LLM (fallback)Requesty free models200 requests a day on 13 models priced at $0No
Web searchExa$10 credit every month (about 2,500 Lite searches)No
Memory (vectors)Qdrant Cloud1 cluster: 1 GB RAM, 4 GB disk, about 1M vectors at 768 dimensionsNo
HostCloudflare Workers100,000 requests a dayNo

1. A free LLM that accepts tools

The model has to support tool calling (also called function calling): you send a list of tools with a JSON schema each, and it answers with a tool name and arguments instead of text. How that works: how does it call a function it can't run?

OfferTool-calling modelsLimitsNote
OpenRouter16 of its 17 :free chat models accept tools on 2026-10-26 (all but the content-safety classifier), e.g. nvidia/nemotron-3-super-120b-a12b:free20 requests a minute; 50 a day, or 1,000 a day once you have bought 10 creditsSome free endpoints may train on your prompts
RequestyNemotron, Gemma 4 and other models at $0200 requests a dayOpenAI-compatible router
Routeway:free models such as deepseek-v4-flash:free200 requests a day, 20 a minute, one request at a timeShared low-priority queue
NVIDIA NIMCatalog models tagged "Free Endpoint", e.g. deepseek-v4.1-flashNVIDIA's forums report 40 requests a minutePrototyping only

Count model calls, not tasks. Each step of the loop is one request: a task that searches twice, reads a page and answers is about 4 or 5 calls. At OpenRouter's 50 requests a day that is roughly 10 such tasks; with Requesty and Routeway as fallbacks (200 a day each) about 90 (our arithmetic). Every limit you hit comes back as a 429: why does the free tier say 429?

Minimal agent loop with the OpenAI SDK against OpenRouter:

# pip install openai
import json, os
from openai import OpenAI

client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
MODEL = "nvidia/nemotron-3-super-120b-a12b:free"
tools = [{"type": "function", "function": {
    "name": "search", "description": "Search the web",
    "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}}]

def search(query):
    return "results for " + query  # call Exa, Firecrawl or Serper here

messages = [{"role": "user", "content": "What changed in the latest Python release?"}]
for _ in range(5):  # cap the steps: every step is a request
    reply = client.chat.completions.create(model=MODEL, messages=messages, tools=tools).choices[0].message
    messages.append(reply)
    if not reply.tool_calls:
        print(reply.content)
        break
    for call in reply.tool_calls:
        result = search(**json.loads(call.function.arguments))
        messages.append({"role": "tool", "tool_call_id": call.id, "content": result})
OfferFree partWhat it buysResets
Exa$10 credit a month plus a one-time $10 onboarding bonusAbout 2,500 Lite searches a month ($4 per 1,000)Monthly, on the 1st
Firecrawl1,000 credits a monthAbout 500 searches (2 credits per 10 results), less if you also scrape the pagesMonthly; no roll-over
Serper2,500 Google search queries2,500 searches; only successful responses are chargedNever; one-time
Jina10M tokens per new API key, shared with Jina's other APIsUp to about 1,000 searches (each costs from 10,000 tokens)Never; one-time

A search tool hands the model text it did not write, and a page can contain instructions aimed at your agent. Treat tool results as data, never as orders: why can a web page hijack my AI agent? The free web search API guide compares these in detail.

3. Memory: a free vector database

Long-term memory for an agent is usually a vector store: you save notes or document chunks as embeddings and look up the closest ones before each step (why does it find "car" when I searched "automobile"?).

DatabaseFree capacityRequest limitThe catch
Qdrant Cloud1 cluster: 0.5 vCPU, 1 GB RAM, 4 GB disk; about 1M vectors at 768 dimensionsNo published capSuspended after 1 week unused, deleted after 4 weeks of inactivity
Upstash Vector1 database, 200M vectors x dimensions, 1 GB data10,000 queries and updates a dayMax 1,536 dimensions
Supabase (Postgres + pgvector)2 projects, 500 MB database eachNo published capPaused after 1 week of inactivity

Free embeddings to fill it: Jina (the same 10M tokens, 100 requests a minute on embeddings) or the models in the free embeddings API guide. More databases: free vector databases.

4. A free host

HostFree partThe catch
Cloudflare Workers100,000 requests a day10 ms CPU time per invocation; limits reset at 00:00 UTC
Deno Deploy1M requests and 10 hours of active CPU a month10 active apps, logs kept 1 day

Use the exported config

Open /stack/agent, set your country if you want only offers available there, and replace any pick you don't like. The Use this stack block then gives three files built from the LLM picks that have a public API base URL in our catalog:

  • config.yaml for a LiteLLM proxy: one OpenAI-compatible endpoint at http://localhost:4000; a 429 on the first free tier goes straight to the next one.
  • .env.example with one key per provider.
  • chat.py: the same fallback with the OpenAI SDK and no proxy. Add tools= and the loop above to turn it into an agent.

A pick without a recorded base URL is listed as "no public base URL yet"; use its offer page for the endpoint.

Limits and the catch

  • Free models change. OpenRouter's free list changes every few weeks; keep two providers in your fallback list and check that the model still accepts tools.
  • Small daily caps. 50 requests a day is enough to build and test an agent, not to run it for users. Cap the number of steps per task.
  • Your prompts may be used. Some free endpoints train on what you send; keep secrets and personal data out, and read each offer's data note.
  • Cold storage. Qdrant and Supabase pause idle free projects after a week; a weekly ping or a cron job keeps them awake.
  • What an agent is and isn't: what's an "agent"?

Các ưu đãi trong bài

Thông tin ưu đãi được kiểm chứng và hiển thị bằng tiếng Anh.

  • OpenRouter Free AI Models · 50 requests/day · Không cần thẻ

    Free :free chat, embedding and rerank models at $0 through OpenRouter's API

  • Requesty Free Models · 200 requests/day · Không cần thẻ

    13 free LLMs at $0 with 200 requests a day via Requesty's gateway

  • Routeway Free Models · 200 requests/day · Không cần thẻ

    Free access to select open-weight LLMs at $0.00 per token, 200 requests/day

  • NVIDIA NIM Free Inference Endpoints · Free tier · Không cần thẻ

    Free NVIDIA NIM inference endpoints to test leading AI models

  • Exa Free Credits · $20 · Không cần thẻ

    $10 free API credits on signup + $10 onboarding bonus, $10 monthly reset

  • Firecrawl Free Plan · 1,000 credits/month · Không cần thẻ

    1,000 free web scraping credits a month, no credit card

  • Serper 2,500 Free Google Search Queries · 2,500 requests · Không cần thẻ

    2,500 free Google search API queries on signup, no card

  • Jina AI 10M Free API Tokens · 10,000,000 tokens · Không cần thẻ

    10M free tokens across Jina embeddings, reranker, and reader APIs

  • Qdrant Cloud Free Tier · Free tier · Không cần thẻ

    Free-forever Qdrant vector database cluster, 1 GB RAM, no credit card

  • Upstash Vector Free Tier · 10,000 requests/day · Không cần thẻ

    Free serverless vector database: 10K queries/updates per day, 1 GB data

  • Supabase Free Plan · 0.5 GB · Không cần thẻ

    Free Postgres with pgvector, auth, storage and edge functions on 2 projects

  • Cloudflare Workers Free Plan · 100,000 requests/day · Không cần thẻ

    Free serverless hosting on Cloudflare: 100,000 Worker requests per day

  • Deno Deploy Free Plan · 1,000,000 requests/month · Không cần thẻ

    Free Deno Deploy hosting: 1M requests and 20 GiB egress per month

Câu hỏi thường gặp

Can I run an AI agent for free?
Yes, for building and light use. OpenRouter’s :free models accept tool calls with 20 requests a minute and 50 a day, Exa gives $10 of search a month, Qdrant Cloud a free 1 GB cluster and Cloudflare Workers 100,000 requests a day, all without a card.
Which free LLM API supports tool calling?
On 2026-10-26, 16 of OpenRouter’s 17 free chat models accept tools. Requesty, Routeway and NVIDIA NIM also serve free models with tool calling; the tool-calling agent stack on aifree.dev only picks models that publish tool support.
How many agent tasks do the free limits allow?
Each step of the agent loop is one model request, so a task with a few tool calls costs about 4 or 5. At 50 requests a day that is about 10 tasks; adding fallback providers with 200 requests a day each raises it to about 90.
Where do I get a ready-made config?
On /stack/agent, the Use this stack block exports a LiteLLM config.yaml, a .env.example and a chat.py that falls back to the next free tier on a 429, built from the picks with a known API base URL.

Nguồn

Các bước và giới hạn được đối chiếu với những trang chính thức này.

Bài hướng dẫn khác

Never miss new offers and news

New tools, credits, and AI news are added regularly. Pick how you want to hear about them.

Telegram channel
Join @aifree_dev and get new free AI offers and news right in your Telegram feed.
Browser notifications
Turn on push notifications and get an alert on this device whenever something new is posted. No account needed.
Email newsletter
A weekly digest of new, changed and expiring free AI offers. Double opt-in, one-click unsubscribe. See the latest issue.

Unsubscribe anytime. Privacy

Frequently asked questions

What is aifree.dev?

aifree.dev helps everyone access AI through a curated directory of free AI tools, API credits, free tiers, and startup programs for coding, image, voice, video, and students - verified regularly.

How are offers presented?

Each offer includes its access details, free models when available, and expiration information when provided. Limited-time deals stay visible so they are easy to compare.

Do education and startup programs need verification?

Yes. Providers usually ask students to verify their status with a school email, student ID, or a program like the GitHub Student Pack, and ask startups to verify company details such as age, funding, or website. Check each offer’s claim page for the exact requirements.

What kinds of free AI offers are listed?

Free tiers and free trials from AI providers, free API credits, startup and student programs, and free tools for coding, image generation, voice, and video.

How can I suggest a tool or report a broken link?

Use the submit form: paste the offer page URL and a short note. A person checks every submission before anything is listed. Broken links and changed terms go through the same form.

+

Know a good one?

Tell us about an AI tool worth knowing. Found a broken link? We want to hear that too.

Submit an offer