API for the model openai at Pollinations, free and keyless, median response 231 ms. curl, Python and JavaScript samples, live testing.
Keyless text access, rate limits not guaranteed.
- Type
- Model
- Provider
- Pollinations
- Model ID
openai- Pricing
- Free
- Keyless access
- Yes
- Base URL (OpenAI-compatible)
https://text.pollinations.ai/openai- Inputs
- Text
- Response time
- Median 231 ms · p95 39425 ms · first token 231 ms · success 100% over 27 test(s) · last 2026-12-04T23:12:24.446Z
- Developer rating
- Not rated yet
- Documentation
- https://pollinations.ai
- Last check
- 2026-12-04T23:12:24.446Z
Code samples
cURL
curl https://text.pollinations.ai/openai \
-H "Content-Type: application/json" \
-d '{"model":"openai","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'Python
import requests
r = requests.post("https://text.pollinations.ai/openai", json={
"model": "openai",
"messages": [{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
}, timeout=60)
print(r.json()["choices"][0]["message"]["content"])JavaScript
const r = await fetch('https://text.pollinations.ai/openai', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ model: 'openai', messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }] }),
})
console.log((await r.json()).choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the Pollinations · openai API free?
Yes: Pollinations · openai can be used for free and without an API key, within the provider’s rate limits.
How do I call Pollinations · openai from my code?
Pollinations · openai exposes an OpenAI-compatible API at https://text.pollinations.ai/openai: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: openai. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
How fast is Pollinations · openai?
Measured by TensaHub: median response time 231 ms, first token after 231 ms, 100 % success over the last 27 checks.