Quickstart in 60 seconds.
OpenAI-compatible chat API. One Bearer token, 481 tools. Run this curl, then read on.
curl https://api.free.ai/v1/chat/ \
-H "Authorization: Bearer sk-free-YOUR-KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen7b","messages":[{"role":"user","content":"Hello!"}]}'
What do you want to build?
Quickstarts
Chat
POST /v1/chat/
{
"model": "qwen7b",
"messages": [
{"role": "user", "content": "Hello!"}
]
}
Image generation
POST /v1/image/generate/
{
"model": "sdxl",
"prompt": "a quiet cabin at dusk",
"width": 1024,
"height": 1024
}
Image edit
POST /v1/image/edit/
multipart:
image: <file>
prompt: "remove the chair"
operation: "edit"
Text to speech
POST /v1/tts/
{
"model": "kokoro",
"voice": "af_heart",
"text": "Hello there!"
}
Speech to text
POST /v1/stt/
multipart:
audio: <file>
model: "whisper"
language: "auto"
Translate
POST /v1/translate/
{
"text": "Hello",
"target_lang": "es"
}
SDKs
pip install freeai-code
Nodenpm i freeai-code
Coding agent CLIcurl -fsSL https://free.ai/install.sh | sh
Go (coming)
Ruby (coming)
Or use the OpenAI SDK, point base_url at api.free.ai/v1