Pollinations AI Free API
pollinations.aiText and image generation with no key and no signup.
Opens Pollinations AI’s official key page. You create and own the key — FreeLLMKeys never sees or stores it.
Quick facts
https://text.pollinations.ai/openaiAbout Pollinations AI’s free API
Pollinations is a fully open, anonymous API: no key, no account, no billing. You just call the endpoint and get text or images back.
The text route is OpenAI-compatible and the image route generates pictures from a URL. Because it is free and shared, treat it as perfect for demos, prototypes and hobby projects rather than production.
How to get a free Pollinations AI API key
- 1Go to the official key page: https://pollinations.ai/
- 2Create a free account — no credit card needed.
- 3Open the API keys section and generate a new key. Copy it somewhere safe.
- 4In your code, set the base URL to
https://text.pollinations.ai/openaiand paste your key. - 5Call a model such as
openaiusing the examples below.
Code examples
Replace YOUR_POLLINATIONS_KEY with the key you created.
from openai import OpenAI
client = OpenAI(
base_url="https://text.pollinations.ai/openai",
api_key="YOUR_POLLINATIONS_KEY"
)
resp = client.chat.completions.create(
model="openai",
messages=[{"role": "user", "content": "Hello!"}]
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://text.pollinations.ai/openai",
apiKey: process.env.API_KEY, // your free Pollinations AI key
});
const resp = await client.chat.completions.create({
model: "openai",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);curl https://text.pollinations.ai/openai/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"model": "openai",
"messages": [{"role":"user","content":"Hello!"}]
}'Pros & cons
Pros
- No key, no signup at all
- Text + image in one API
- OpenAI-compatible text route
- Great for demos
Cons
- Shared public limits
- No uptime guarantees
Pollinations AI free API — FAQ
Is the Pollinations AI API really free?+
Yes. Pollinations AI offers no key needed access: Completely free and anonymous — no API key or account needed. No credit card is required to start.
How do I get a free Pollinations AI API key?+
Create a free account at https://pollinations.ai/, open the API keys section, generate a key, then set your base URL to https://text.pollinations.ai/openai in your OpenAI-compatible code.
Which models does Pollinations AI offer for free?+
openai (text), mistral, llama, FLUX image model, Turbo image model.
What are the Pollinations AI free-tier rate limits?+
Shared public rate limits; best for light / hobby use.
Is Pollinations AI OpenAI-compatible?+
Yes. Pollinations AI exposes an OpenAI Chat Completions compatible endpoint, so you can reuse your existing OpenAI SDK code and only change the base URL and API key.
Popular free models on Pollinations AI
Related free LLM APIs
Together AI
Free signup credit plus a free Llama endpoint.
Hugging Face
Monthly free inference credits across many providers.
Google AI Studio (Gemini)
The most generous permanent free tier for a frontier model.