Free.ai എപിഐ
ഒരു API കീ, എല്ലാ AI ഉപകരണവും, ലളിതമായ ഒരു അടയാളം.
അത് എങ്ങനെ പ്രവർത്തിക്കുന്നു?
API കീ എടുക്കുക
ഗ്നോറ്റ് ചിഹ്നങ്ങള്, പിന്നെ നിങ്ങളുടെ സ്ക്- ഫ്രീ- കീ നിര്മ്മിക്കുക
ഏതു് അവസാനം വരെയെങ്കിലും വിളിക്കുക
Chat, images, TTS, STT, music, translation: all one API
ടോക്കൻസിൽ പണം
ഒരു സമനില, എല്ലാ ഉപകരണത്തിനും ഒരു ലക്ഷണമുണ്ട്.
പെട്ടെന്നു് തുടങ്ങുക
# Chat with AI
curl -X POST https://api.free.ai/v1/chat/ \
-H "Authorization: Bearer sk-free-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [{"role": "user", "content": "Hello!"}],
"model": "qwen7b"
}'
# Generate an image — self-hosted (free within daily allowance)
curl -X POST https://api.free.ai/v1/image/generate/ \
-H "Authorization: Bearer sk-free-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "A sunset over mountains", "model": "sdxl"}'
# Generate with a premium model (paid tokens only — FLUX Kontext, Seedream,
# Ideogram, Nano Banana, Gemini 3 Pro, etc.). Full list at /v1/providers.
curl -X POST https://api.free.ai/v1/image/generate/ \
-H "Authorization: Bearer sk-free-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "A sunset over mountains", "model": "premium/flux-pro/kontext"}'
# Generate a video (premium)
curl -X POST https://api.free.ai/v1/video/generate/ \
-H "Authorization: Bearer sk-free-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "A cat running in slow motion", "duration": 5, "model": "premium/kling-video/v2.6/pro/text-to-video"}'
# Text to speech
curl -X POST https://api.free.ai/v1/tts/ \
-H "Authorization: Bearer sk-free-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "voice": "default", "model": "kokoro"}'
# Translate text
curl -X POST https://api.free.ai/v1/translate/ \
-H "Authorization: Bearer sk-free-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "target": "es"}'
import requests
API_KEY = "sk-free-YOUR_KEY"
BASE = "https://api.free.ai"
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
# Chat
r = requests.post(f"{BASE}/v1/chat/", headers=HEADERS, json={
"messages": [{"role": "user", "content": "Hello!"}],
"model": "qwen7b" # or "openai/gpt-4o", "anthropic/claude-sonnet-4", etc.
})
print(r.json()["choices"][0]["message"]["content"])
# Generate image — self-hosted (free within daily allowance)
r = requests.post(f"{BASE}/v1/image/generate/", headers=HEADERS, json={
"prompt": "A sunset over mountains",
"model": "sdxl", # or "premium/flux-pro/kontext" for paid tier
"aspect_ratio": "16:9"
})
print(r.json()["image_url"])
# Generate video (premium — see /v1/providers for the full list)
r = requests.post(f"{BASE}/v1/video/generate/", headers=HEADERS, json={
"prompt": "A cat running in slow motion",
"duration": 5,
"model": "premium/kling-video/v2.6/pro/text-to-video"
})
print(r.json()["video_url"])
# Text to speech
r = requests.post(f"{BASE}/v1/tts/", headers=HEADERS, json={
"text": "Hello world",
"model": "kokoro",
"voice": "af_heart"
})
print(r.json()["audio_url"])
# Transcribe audio
r = requests.post(f"{BASE}/v1/stt/transcribe/", headers=HEADERS, json={
"url": "https://example.com/audio.mp3",
"model": "whisper"
})
print(r.json()["text"])
const API_KEY = "sk-free-YOUR_KEY";
const BASE = "https://api.free.ai";
// Chat
const chat = await fetch(`${BASE}/v1/chat/`, {
method: "POST",
headers: { "Authorization": `Bearer ${API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
messages: [{ role: "user", content: "Hello!" }],
model: "qwen7b"
})
});
const data = await chat.json();
console.log(data.choices[0].message.content);
// Generate image — self-hosted (free within daily allowance)
const img = await fetch(`${BASE}/v1/image/generate/`, {
method: "POST",
headers: { "Authorization": `Bearer ${API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ prompt: "A sunset over mountains", model: "sdxl" })
});
// Premium image model (paid tokens) — full list at /v1/providers
const imgPro = await fetch(`${BASE}/v1/image/generate/`, {
method: "POST",
headers: { "Authorization": `Bearer ${API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ prompt: "A sunset over mountains", model: "premium/flux-pro/kontext" })
});
console.log((await img.json()).image_url);
ടോക്കന് പ്രിക്കിങ്
എല്ലാത്തിനും സൂചനകള് ഉണ്ട്. എല്ലാ ഉപകരണങ്ങളും ഒരു സമനില. നിങ്ങള് API അല്ലെങ്കില് വെബ്സൈറ്റും ഉപയോഗിക്കുന്നത് ഒരേ പോലെ.
| മോഡ് | തരം | ടോക്കണ് വില | അനുമതി |
|---|---|---|---|
| Qwen 3.6 35B | Chat/ രേഖ/Code | ഉപയോഗിച്ചിട്ടുള്ള യഥാര്ത്ഥ അടയാളങ്ങള് (input+output) | Apache 2.0 |
| FLUX.2 ക്ലിൻ | ചിത്രത്തിന്റെ ഉല്പ്പന്നം | 5,000 അടയാളം/വിജയം | Apache 2.0 |
| Kokoro | സംസാരത്തിനുള്ള പദാവലി | 4 അക്ഷരങ്ങളില് 1 അടയാളം | Apache 2.0 |
| faster-whisper | വാചകത്തോടു് സംസാരം | 4 അടയാളം/ഒബ്ലിയുഎം ഓഡിയോ | എംഐടിName |
| AudioLDM 2 | സംഗീത നിർമ്മാണം | 2000 ചിഹ്നങ്ങള്/തട്ടല് | Apache 2.0 |
| MadLAD-400 | പരിഭാഷ (450+ആംഗ്ലീഷുകള്) | ഉപയോഗിച്ചിരിക്കുന്ന യഥാര്ത്ഥ അടയാളങ്ങള് | Apache 2.0 |
| Real-ESRGAN | ചിത്രം അപ്ലോഡ് ചെയ്യുന്നു | 500 ചിഹ്നങ്ങള്/ഛായ | ബി.എസ്.ഡി |
| റിംബി | പശ്ചാത്തലം നീക്കം ചെയ്യുക | 500 ചിഹ്നങ്ങള്/ഛായ | Apache 2.0 |
| CogVideoX | വീഡിയോ നിർമ്മാണം | 30,000 അടയാളം/വിഡിയോ | Apache 2.0 |
| Stem Separator (Mel-Band RoFormer + SCNet) | വോള്ട്ടിക് വേര്ഷന് | 500 ചിഹ്നങ്ങള്/തട്ടുക | MIT + Apache-2.0 |
Access GPT-6, Claude, Gemini, Llama, DeepSeek and the rest of the 575 models. Token cost is based on provider pricing converted to our tokens.
| മോഡ് | ദാതാവ് | ഓരോ സന്ദേശത്തിനും ~a കൌണ്ടുകള് (500, 300 ഔട്ട്) |
|---|---|---|
| GPT-4o-mini | OpenAI | ~286 |
| Mistral Nemo | Mistral | ~100 |
| Llama 3.3 70B Instruct | Meta | ~639 |
| Qwen2.5 72B Instruct | Qwen | ~337 |
| DeepSeek V3 | DeepSeek | ~493 |
| GPT-4o | OpenAI | ~4,781 |
Full list of 575 models at /models/. All use the same /v1/chat/ endpoint: just change the model parameter.
സ്വയം ചേര്ത്തിരിക്കുന്ന മോഡലുകള്: ഉപയോഗിച്ചിരിക്കുന്ന ക്യാപ് ചിഹ്നങ്ങള് നിങ്ങള്ക്ക് നല്കുന്നു. മാര്ക്കപ്പ് ലഭ്യമല്ല.
പുറമേയുള്ള മോഡലുകള്: our_tokens = provider_usd_cost × 750,000 × 1.5
Example: GPT-4o costs $0.0025 per 1,000 prompt tokens, so 1,000 prompt tokens cost $0.0025 x 750,000 x 1.5 = 2,812 tokens from your balance.
The 1.5 markup is the standard rate. Accounts with a high monthly spend pay a lower one.
എല്ലാ അവസാനബിന്ദു
POST /v1/chat/ | Chat ഏതു് മോഡലിനോടും (സ്വയം ഹോസ്റ്റ് ചെയ്തോ പുറത്തോ). സ്ട്രീമിങ് പിന്തുണയുണ്ടു്. |
POST /v1/image/generate/ | ഇമേജ് FLUX, SDXL-ലേക്ക് ടെക്സ്റ്റ് (FLUX) |
POST /v1/image/edit/ | ബാറ്ററി, പോപ്പറ്റ്, ശൈലി മാറ്റല് |
POST /v1/image/enhance/ | മുകളിലെ സ്കോട്ട്രോം 2x/ 4x (Real-ESRGAN) |
POST /v1/image/remove-bg/ | പശ്ചാത്തലം നീക്കം ചെയ്യുക (BRA RMBG) |
POST /v1/video/generate/ | പദാവലി/വീഡിയോയില് നിന്നും (CogVideoX) |
POST /v1/tts/ | സംസാരം നിര്മ്മിയ്ക്കുക (Kokoro, Piper, MeloTTS, Chatterbox) |
POST /v1/tts/stream/ | TTS സ്ട്രീം ചെയ്യുന്നു (യഥാര്ത്ഥ സമയം ഓഡിയോ ഭാഗങ്ങള്) |
POST /v1/stt/transcribe/ | Transcribe audio/video (faster-whisper, 99 languages) |
POST /v1/music/generate/ | വാചകവിവരത്തില് നിന്നും സംഗീതം തയ്യാറാക്കുക |
POST /v1/music/separate/ | വ്യത്യസ്തമായ വോക്കല്/സ്റ്റെം (Mel-Band RoFormer + SCNet) |
POST /v1/write/ | ഉള്ളടക്കങ്ങള് സൃഷ്ടിക്കുക (സെസ്ക്, ഇമെയില്, കഥ, തുടങ്ങിയവ.) |
POST /v1/code/generate/ | ഏതെങ്കിലും ഭാഷയില് കോഡ് ഉണ്ടാക്കുക |
POST /v1/summarize/ | ക്വോട്ടൈന്ഡ് പദാവലി |
POST /v1/humanize/ | AI ടെക്സ് ഫോര്ണുക്ക് |
POST /v1/detect/ | തിരിച്ചറിയല് AI-SLesson ഉള്ളടക്കം |
POST /v1/embeddings/ | Text embeddings: BGE-M3 by default, or "model": "embeddinggemma-2" for EmbeddingGemma 2 (768 dims, dimensions 128 to 768, input_type query or document) |
POST /v1/translate/ | വാചകം MadLAD-400, 450+ ഭാഷകള് പരിഭാഷപ്പെടുത്തുക (iple+ts) |
POST /v1/ocr/ | ചിത്രങ്ങളില് നിന്നും പദാവലി തുറന്നിടുക |
GET /v1/models | List all available models (self-hosted + external) |
GET /v1/status/{job_id}/ | ഒരു പൊരുത്തമുള്ള ജോലിയുടെ അവസ്ഥ പരിശോധിക്കുക |
GET /health | എപിഐ ആരോഗ്യ പരിശോധന |
ആധികാരകത ഉറപ്പുവരുത്തല്
നിങ്ങളുടെ PI കീ ഉള്പ്പെടുത്തുക Auctioniative ഹെഡറില്:
Authorization: Bearer sk-free-YOUR_API_KEY
എല്ലാ മറുപടികളും ഫ്രീ_ i_usa_ puse_ ബ്ലോക്ക് ആണ്. ഇതു് ഉപയോഗിക്കുന്ന അടയാളങ്ങള് കാണിക്കുന്നതിനുള്ള സൂചനകള്:
{
"choices": [...],
"free_ai_usage": {
"tokens_used": 142, // actual tokens processed
"tokens_charged": 142, // tokens deducted from your balance
"source": "self_hosted", // or "external"
"model": "qwen7b"
}
}
പരിധികളും പദ്ധതികളും
അതേ അടയാളം വെബ്സൈറ്റിലും API- ലും ഉള്ളതാണ്. വേറെ ഒരു ആപ്സിങ്ങും ഇല്ല.
| പദ്ധതി | ടോക്കന്സ് | API ആവശ്യങ്ങള്/മാസം | API അഭ്യാസം/മൈന് | വില |
|---|---|---|---|---|
| ഫ്രീ | 30,000 a day (free pool) | 1,000 | 60 | $0 |
| അടിസ്ഥാനം | 250,000 | 10,000 | 120 | $5 a month |
| പ്രൊഫൈല് | 1,250,000 | 100,000 | 300 | $19 a month |
| വ്യാപാരം | 6,250,000 | 1,000,000 | 600 | $49 a month |
| ഇന്റര്നാഷണല് | യഥേഷ്ടം | 1,000,000 സഹജമായി, അപേക്ഷയിലായി ഉയര്ത്തിയിരിക്കുന്നു | 600 സഹജമായി, അപേക്ഷയിലായി ഉയര്ത്തിയിരിക്കുന്നു | വിലാസം |
ലഭ്യമായ ടോക്കണ് പാക്ക്: 200K/$5, 1M/1$15, 5M/$40. ടോക്കന്സ് ഒരിക്കലും അവസാനിക്കുകയില്ല.
Python SDK & CLI
പൈത്തണ് എസ്ഡികെComment
നിങ്ങളുടെ പൈത്തണ് കോഡ്-യില് നിന്നും എല്ലാ ഐഐ ഉപകരണങ്ങളും ലഭ്യമാക്കുക.
pip install free-dot-ai
from freeai import FreeAI
ai = FreeAI(api_key="sk-free-xxx")
# Chat
response = ai.chat("What is Python?")
print(response.text)
# Image generation
image = ai.image("A sunset over mountains")
image.save("sunset.png")
# Text to speech
audio = ai.tts("Hello world", voice="af_heart")
audio.save("hello.mp3")
# Translation
result = ai.translate("Hello", to="es")
print(result.text) # "Hola"
PyPI
പിപിഐ
CLI കൊഡിങ്ങ് സഹായി
Free, open-source alternative to Claude Code, Cursor, and GitHub Copilot.
# macOS / Linux
curl -fsSL https://free.ai/install.sh | sh
# Windows (PowerShell)
irm https://free.ai/install.ps1 | iex
# Start a coding session
cd your-project/
free-code
# Ask about your codebase
free-code ask "How does auth work?"
# Execute a task
free-code run "Add unit tests for User model"
30K free tokens/day. BYOK supported. 575 models. Session sync with Web IDE.
PyPI ഇന്സ്റ്റോള് ചെയ്യലും സജ്ജീകരണവും Web IDEബൈക്ക് (നിങ്ങളുടെ സ്വന്തം കീ കൊണ്ടുവരുക)
ഏതെങ്കിലും ദാതാവില് നിന്നും നിങ്ങളുടെ സ്വന്തം API കീകള് ഉപയോഗിക്കുക. സെറോ മാര്ക്കസ്, പൂജ്യ ഫീസ്. Free.ai ആ അപേക്ഷയെ അംഗീകരിക്കുന്നു.
| ദാതാവ് | കീ ഫോര്മാറ്റ് | മാതൃകകള് | മാര്ക്കാപ്പ് |
|---|---|---|---|
| ഓപ്പണ്AIName | sk-proj-xxx | GPT-4o, GPT-4o Mini, o1, o3, etc. | $0 |
| ആന്ട്രോപിക് | sk-ant-xxx | Claude Sonnet 4, ഓകൂസ് 4, ഹൈകു എന്നിവ. | $0 |
| ഗൂഗിള്Query | AIzaSyxxx | Gemini 2.5 Pro, Flash, etc. | $0 |
| മറ്റു ദാതാവുകള് | sk-or-xxx etc. | 575 models from all providers | $0 |
# Python SDK with BYOK
from freeai import FreeAI
ai = FreeAI(provider="openai", api_key="sk-proj-xxx")
response = ai.chat("Hello", model="gpt-4o")
# CLI with BYOK
# free-code config set provider openai
# free-code config set api_key sk-proj-xxx
നിങ്ങളുടെ താക്കോൽ, നിങ്ങളുടെ ഉപയോഗം, ബില്ൽ, ലോക്ക് ചെയ്യല്, ഒരു സൂചനയും ഇല്ല നിങ്ങളുടെ Free.ai തൂക്കത്തില് നിന്നും വിലയിടുന്ന ഒരു സൂചനയുമില്ല.
എപിപിഎക്സി
"model": "openai/gpt-4o" or "model": "anthropic/claude-sonnet-4". Full list at /models/ or GET /v1/models."stream": true in your chat request. Responses are delivered via Server-Sent Events (SSE).free_ai_usage.tokens_charged field in each API response.pip install free-dot-ai. It wraps every endpoint with typed responses. For coding assistance, install pip install freeai-code. The API also follows OpenAI's format, so you can use the openai Python/Node SDK with our base URL. API docs