Introducing Foglare: free AI inference
An inference gateway that speaks OpenAI and Anthropic, serves a catalog of models at no charge, and picks live capacity for every request.
· 4 min read
Endpoints
POST /v1/chat/completionsPOST /v1/messagesGET /api/models
Base URL
https://api.foglare.com/v1
Wire formats
OpenAI chat completions · Anthropic messages. Both stream.
What Foglare is
Foglare is a gateway, not a model lab. You send requests to
https://api.foglare.com/v1 in a wire format your client already
knows, and the gateway forwards them to live provider capacity and streams the answer back:
POST /v1/chat/completions— the OpenAI chat completions format.POST /v1/messages— the Anthropic messages format.
Both endpoints respond with server-sent event streams. Point an OpenAI or Anthropic SDK at the
base URL with a sk-fog- API key from the
dashboard
and it works — each key gets its own usage stats. Signing in with GitHub or Discord sets a
session cookie your browser sends automatically. Inference requires one of the two;
anonymous calls are rejected.
A first request — curl
curl -N https://api.foglare.com/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"auto:fast","stream":true,"messages":[{"role":"user","content":"Hello"}]}' The same call — Python, openai SDK
from openai import OpenAI
# No API key is required. Without a browser session the call uses the shared pool.
client = OpenAI(base_url="https://api.foglare.com/v1", api_key="unused")
stream = client.chat.completions.create(
model="auto:fast",
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="", flush=True)
The catalog is free to browse and free to call. Every served model, its live status and its
provider codenames are on the models page
and from the public GET /api/models endpoint.
Routing tiers
In the model field you can name a model by its public id, or send
a routing tier and let the gateway choose. Tiers are resolved against live capacity on every
request, so you pick a size or a speed, never a vendor:
auto:fast- Lowest time to first token across all sizes. The default for anything a person waits on.
auto:S- Small. Short completions, classification, extraction.
auto:M- Medium. Everyday chat and summarization.
auto:L- Large. Multi-step reasoning and longer code.
auto:XL- Extra large. The deepest reasoning tier.
We wrote up how the resolution, pinning and failover behind these aliases actually work in How routing tiers work.
Why it is free
There is no charge and no paid tier. The gateway runs on two kinds of capacity: a first-party shared pool that Foglare operates, and capacity users bring themselves. Link your own Logfare account from the dashboard and it becomes a provider you can pin, served from your own quota — it is your capacity, not shared with other users, and it never routes automatically. That is the whole economics: our pool, plus whatever you choose to add.
The service is free because logging is the trade: every prompt and response is stored unredacted and may be sold or shared, without notification. Upstream provider limits still apply — when capacity is exhausted the gateway tells you so and when to retry, rather than queueing you behind a paywall. If you want your requests on capacity you control, read Bring your own Logfare capacity.
Where your prompts go
A gateway forwards; it does not make your prompts private. Your prompts and the model responses are sent to upstream AI providers, who may process and retain them under their own policies. Providers are identified by codename only. Check the relevant provider's policy before sending sensitive data.
Foglare logs the full content of every request: prompts and responses are stored unredacted, alongside the model id, provider codename, status, latency and timestamp that power the uptime figures on the models page. Retention is indefinite. We may sell or share this data, and we are not obligated to notify you when we do. The full details are in the privacy policy.
Where to start
The API documentation
has copyable examples in curl, Python and JavaScript for both wire formats, plus streaming,
pinning and error handling. The models page
shows what is live right now. Send auto:fast and see what comes back.