gpt-4o-mini — Free API

Created by OpenAI ⭐ Score: 47
llm7-io/gpt-4o-mini
🛠️ Function Calling JSON Mode chat

What is gpt-4o-mini?

GPT-4o Mini is OpenAI's cost-efficient small model, available free through LLM7.io's community proxy with OpenAI-compatible API. A lighter, faster alternative to full GPT-4o, suitable for simple chat, classification, and content generation where the latest flagship capability is not required. As a shared community proxy, rate limits and uptime are not guaranteed.

Model ID
gpt-4o-mini
Base URL
https://api.llm7.io/v1

gpt-4o-mini API Code Example

Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llm7.io/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.llm7.io/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "gpt-4o-mini",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://api.llm7.io/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from LLM7.io

More About LLM7.io

How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up LLM7.io as a free LLM API backend.

View LLM7.io full guide →