๐ Free AI API
No signup. No key. No catch.
OpenAI-compatible. Chat with GPT-5, Claude, Gemini, Grok & DeepSeek. Generate images with GPT Image, DALL-E & Grok. Drop-in replacement for any OpenAI SDK.
๐ฎ Playground
๐ฌ Chat
Response will appear hereโฆ
๐จ Image
Image will appear hereโฆ
๐ค Available models
gpt-5-nanoOpenAI ยท reasoning
claude-sonnet-4-5Anthropic
gemini-2.5-flash-liteGoogle ยท fastest
grok-4-1-fastxAI
deepseek-chatDeepSeek
gpt-image-1-miniOpenAI ยท images
gpt-image-1OpenAI ยท images
gpt-image-1.5OpenAI ยท images
gpt-image-2OpenAI ยท images ยท best
dall-e-3OpenAI ยท images
nano-bananaGemini 2.5 Flash ยท images
nano-banana-proGemini 3 Pro ยท images
grok-2-imagexAI ยท images
๐ป Use from your code
cURL
# Chat completion
curl -X POST https://fai-api.masud.app/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"claude-sonnet-4-5","messages":[{"role":"user","content":"Hello!"}]}'
# Image generation
curl -X POST https://fai-api.masud.app/v1/images/generations \
-H "Content-Type: application/json" \
-d '{"prompt":"A red apple","model":"gpt-image-1-mini","size":"1024x1024"}' \
| jq -r .data[0].b64_json | base64 -d > apple.png
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(
base_url="https://fai-api.masud.app/v1",
api_key="not-needed", # auth is optional & open
)
# Chat
resp = client.chat.completions.create(
model="claude-sonnet-4-5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
# Image
img = client.images.generate(
model="gpt-image-1-mini",
prompt="A red apple on a table",
size="1024x1024",
)
print(img.data[0].b64_json[:80] + "...")
OpenAI Node SDK
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://fai-api.masud.app/v1',
apiKey: 'not-needed',
});
const resp = await client.chat.completions.create({
model: 'gpt-5-nano',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);