A guide to free AI APIs for text, image and code: which free options exist, how to check their limits, and how to make a first call safely. Limits verified against provider docs in October 2026.
Many providers let you try a model without paying up front: a free tier, a trial key, or a model where each user pays their own usage. This article shows how to check the limits yourself, and lists what I verified against provider documentation in October 2026.
Free AI APIs help in four ways:
Providers that fit this include the Gemini API free tier (limits), OpenRouter free models (limits), Cohere trial keys (limits), and Puter.js, where end users cover their own usage and you need no API key (User-Pays model).
"Free" always has conditions: rate limits, usage caps, data-use terms and commercial-use rules. Free offers also change or end, so plan for that.
Below are the options I checked against their own documentation in October 2026. Model names and limits change often, so confirm in the linked docs before you build.
Text APIs can draft copy, summarize documents and classify text. Use them for first drafts and triage, and have a person approve anything that is published.
For marketing work, text APIs suit first drafts, summaries of reviews or search-term lists, and tagging. Treat the output as a draft until a person has checked it.
Image APIs can create visuals from text descriptions for mockups and concepts.
Before you use generated images in ads, check the model license and the ad platform's rules on AI-generated content.
For code help and chatbots, most teams use a hosted chat model from the providers above, or an open model they run themselves.
Open-model names change within months, so I do not recommend specific models here. On the Hugging Face model hub, filter by task and license, then read the model card for size, languages and intended use. Test two candidates on your own prompts before choosing.
A chatbot or agent that talks to customers needs more than a model: human handoff, logging, and a clear rule for what it may promise. Start internal, for example on support-ticket triage, before you put one in front of customers. For more tools, see AI tools for performance marketers.
When providers offer ai free api access, "free" almost always comes with limits to manage server load and prevent abuse. Think of it as a free trial.
The full library of AdLume skills: paid ads, landing pages, B2B leads, GTM tracking, e-commerce.
The bundle goes straight to your inbox, then one email a week. Unsubscribe in one click. We never share your address.
Free AI APIs typically include usage limits, rate limits, token restrictions, and monthly quotas. Rate limits control how many requests you can make per minute, while token limits restrict the amount of text. Whichever you reach first stops you.
Here is what I verified in provider documentation in October 2026. Limits change, so treat it as a snapshot and use the linked page as the source of truth:
Provider | Free access (as documented) | Limit I verified, October 2026 |
|---|---|---|
Google Gemini API | Free usage tier | Varies by model and project. See your limits in AI Studio. Limits are not guaranteed (docs) |
OpenRouter | Models tagged free | 20 requests per minute. 50 requests per day, or 1,000 per day if you hold at least $10 in credits (docs) |
Cohere | Trial key, for evaluation | 1,000 API calls per month and 20 chat requests per minute (docs) |
Mistral | Free mode (the default) | Lowest limits, meant for evaluation and prototyping (shown on your Limits page) (help article) |
Groq | Limits published per model | Read the table for the model you pick (docs) |
Hugging Face | No included Inference Providers credits for free users | PRO accounts get $2 per month in credits (pricing) |
Puter.js | Free monthly allowance per end user | Free accounts: 30 AI requests per 10 seconds and 3 concurrent (docs) |
Beyond the numbers, watch for these drawbacks:
Use free tiers to prototype, and add a paid-usage line to the plan from day one. If your project works, you will probably outgrow the free limits.
Here is a first call you can run in about ten minutes.
First, a browser example with Puter.js. Test mode returns a sample image and uses no credits. It follows the pattern in the Puter docs.
<script src="https://js.puter.com/v2/"></script>
<script>
// true = test mode: returns a sample image and uses no credits
puter.ai.txt2img("A picture of a cat.", true).then((image) => {
document.body.appendChild(image);
});
</script>When you drop the test-mode flag, call it with an options object to choose a model from the docs list. In browsers the result is an image element you can append to the page.
Now a text example in Python. It uses environment variables, so you can point it at any provider that has an OpenAI-compatible chat endpoint, such as OpenRouter. Other providers, including Gemini and Cohere, use their own request formats, so follow their quickstarts.
import os
import requests
# Any provider with an OpenAI-compatible chat endpoint works, for example OpenRouter.
BASE_URL = os.environ.get("LLM_BASE_URL", "https://openrouter.ai/api/v1")
API_KEY = os.environ["LLM_API_KEY"] # never hard-code keys
MODEL = os.environ["LLM_MODEL"] # copy a model id from the provider's model list
payload = {
"model": MODEL,
"messages": [
{"role": "user", "content": "Write a one-sentence tagline for a project management tool."}
],
"max_tokens": 100,
}
resp = requests.post(
f"{BASE_URL}/chat/completions",
headers={"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"},
json=payload,
timeout=30,
)
print(resp.status_code, "retry-after:", resp.headers.get("retry-after"))
resp.raise_for_status()
print(resp.json()["choices"][0]["message"]["content"].strip())If a call returns a parameter error, check the provider's model page for the exact request fields that model accepts.
To stay within limits and keep costs predictable:
Free AI APIs are a cheap way to prototype, compare models and learn how these services work. The details change quickly, so check the provider's current limits page before you rely on an offer.
Keep keys secret, set spend limits, read the data and commercial-use terms, and have a fallback if a free service ends. Start with one small task, measure the result, and only then decide whether to pay.
For more tools to compare, see AI tools for performance marketers.
It depends on the provider and the plan. Some free or trial keys are for evaluation only. Cohere, for example, describes its trial keys as evaluation keys with a monthly call cap. Read the terms for each service before you build a product on it. For open-source models, the license decides: permissive licenses such as MIT or Apache 2.0 generally allow commercial use, while others add conditions. If in doubt, ask the provider or a lawyer.
A free tier is hosted by the provider. You only need a key, the provider runs the infrastructure, and you work within its limits and rules. An open-source model is free to download, but you pay for the hardware or hosting that runs it. In exchange you get more control and can usually fine-tune it, subject to the license. A free tier is a test drive, and a self-hosted model is closer to owning the car.
Define the task first: text, image, code or chat. Then compare three things in the provider docs: the model you need, the free limits (requests per minute, tokens per minute, daily or monthly caps), and the data and commercial-use terms. Run the same ten prompts on two providers and compare quality, speed and cost. Choose the one that meets your needs with room to spare under the limits.
Access can be free within limits. Providers cap requests, tokens, or monthly calls, and a free service can end, as GitHub Models did on July 30, 2026. Self-hosted open-source models also carry cloud or hardware cost, so budget for paid usage if your project works.
There is no single best choice. Compare the Gemini API free tier, OpenRouter free models, Cohere trial keys and Mistral free mode on your own prompts, and check each provider's current limits page. Pick based on the quality you need, the limits you can live with, and whether commercial use is allowed.
Choose a provider, create a key and store it in an environment variable, read the quickstart for the endpoint and model id, then send one short request and print the status code. The article above includes a Puter.js test-mode example and a Python example for OpenAI-compatible endpoints.
Tymon Sosnowski & Kacper Czapski
Incubation Program Coordinators
Innovations Hub Foundation
“AdLume's support, both in strategy and in running the ads, played an important part in our record recruitment. We would gladly work with AdLume again.”