freeaiapi.aiSign Up

Ollama API — one key, up to 30% cheaper

Get free Ollama API key

Call Ollama models through freeaiapi.ai with the same API key and prepaid balance you use for every other model.

Models
11
From
$0.35 /M input
Below official
up to 30%
Prices updated
2026-11-26

Ollama API pricing

Live prices next to the official list price

Ollama: llama-2-70b

−30% vs official

llama-2-70b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$1.40/M input tokens$1.40/M output tokens

Ollama: llama-2-7b

−30% vs official

llama-2-7b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$1.40/M input tokens$1.40/M output tokens

Ollama: llama-3-70b

−30% vs official

llama-3-70b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$2.80/M input tokens$5.60/M output tokens

Ollama: llama-3-8b

−30% vs official

llama-3-8b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$1.40/M input tokens$1.40/M output tokens

Ollama: llama-3.1-405b

−30% vs official

llama-3.1-405b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$4.20/M input tokens$8.40/M output tokens

Ollama: llama-3.1-70b

−30% vs official

llama-3.1-70b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$2.80/M input tokens$5.60/M output tokens

Ollama: llama-3.1-8b

−30% vs official

llama-3.1-8b is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$1.40/M input tokens$1.40/M output tokens

llama-3.2-11b-vision-instruct is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$1.40/M input tokens$1.40/M output tokens

llama-3.2-1b-instruct is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$0.35/M input tokens$0.087/M output tokens

llama-3.2-3b-instruct is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$0.70/M input tokens$0.35/M output tokens

llama-3.2-90b-vision-instruct is a text and chat model from Ollama, available through one freeaiapi.ai API key and billed from your prepaid balance.

by ollama$4.20/M input tokens$12.60/M output tokens

Call Ollama models with the OpenAI SDK

Change the base URL and key — nothing else

curl https://api.freeaiapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $FREEAIAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama-2-70b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Ollama API FAQ

Is this the official Ollama API?

No. freeaiapi.ai is an independent API gateway. You get one OpenAI-compatible key that routes to Ollama and other models, billed from a prepaid balance.

Do I need a credit card to start?

No. Sign up, connect Telegram and join our channel to unlock $1 trial credit. Create an API key and make your first request. Add funds when you want to keep going.

Does it work with the OpenAI SDK?

Yes. Point any OpenAI SDK or OpenAI-compatible tool at https://api.freeaiapi.ai/v1 and use your freeaiapi.ai key. No code changes beyond the base URL and key.

Other model APIs

Get your free Ollama API key

No card required. One key for every model, up to 30% below official pricing.

Get free API key

Not affiliated with Ollama. Ollama is a trademark of Ollama.