Moqapi

Build with Free.ai - one Bearer token, 477 AI tools.

Chat, setšoantšo, video, moqoqo, puo, OCR, fetolela - tsohle ka e mong OpenAI-ka lumellanang leqepheng la ho qetela.

30,000 tokens / letsatsi mahala. Cards ha ho hlokahale ho qala.

Sebopeho sa sehlooho

URL e le 'ngoe e sebetsana le moralo oa puisano ka mong. URL e le 'ngoe bakeng sa moralo oa setšoantšo ka mong. Khetha moralo ka lentsoe leng. Ha ho na ho phutha ka SDK ea mofani ka mong.

Ho lefa ka ho hlaka, ho lefa ka ho hlaka

Li-models tse sebete tse hohelang li-billing ka theko e thata. Li-models tsa Premium li eketsa markup e hlakileng e thehiloeng ha u theha. Likarabo tsohle li bonts'a theko e nepahetseng ea token.

Li-languages tse 99 kantle ho sekoahelo

Chat, fetolela, TTS, STT - kamehla modality e kholo e ka 99 lipuo le ha ho na extra config. Pass a code ya puo le e sebetsa.

60-second quickstart

API e tšoanang, lipuo tse tharo. Tlosa konopo ea hau ea sk-free-...'me u e phethe.

curl https://api.free.ai/v1/chat/ \
  -H "Authorization: Bearer sk-free-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen2.5-7b",
    "messages": [{"role":"user","content":"Hello!"}]
  }'
import requests

r = requests.post(
    "https://api.free.ai/v1/chat/",
    headers={"Authorization": "Bearer sk-free-YOUR-KEY"},
    json={
        "model": "qwen2.5-7b",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(r.json()["choices"][0]["message"]["content"])
const r = await fetch("https://api.free.ai/v1/chat/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk-free-YOUR-KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "qwen2.5-7b",
    messages: [{role: "user", content: "Hello!"}],
  }),
});
const data = await r.json();
console.log(data.choices[0].message.content);
package main

import (
  "bytes"; "fmt"; "io"; "net/http"
)

func main() {
  body := []byte(`{"model":"qwen2.5-7b","messages":[{"role":"user","content":"Hello!"}]}`)
  req, _ := http.NewRequest("POST", "https://api.free.ai/v1/chat/", bytes.NewBuffer(body))
  req.Header.Set("Authorization", "Bearer sk-free-YOUR-KEY")
  req.Header.Set("Content-Type", "application/json")
  resp, _ := http.DefaultClient.Do(req)
  defer resp.Body.Close()
  out, _ := io.ReadAll(resp.Body)
  fmt.Println(string(out))
}
require "net/http"
require "json"

uri = URI("https://api.free.ai/v1/chat/")
req = Net::HTTP::Post.new(uri, {
  "Authorization" => "Bearer sk-free-YOUR-KEY",
  "Content-Type"  => "application/json",
})
req.body = {
  model: "qwen2.5-7b",
  messages: [{role: "user", content: "Hello!"}],
}.to_json

res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }
puts JSON.parse(res.body)["choices"][0]["message"]["content"]

Litheko - litheko li tla ka ho toba

Li-models tse nang le li-hosted li sebetsa ka hohle kamoo ho ka khonehang ka 30,000-token ea hau ea letsatsi le letsatsi, ebe li lefa ka theko e boima. Li-models tsa Premium li lefa-joalo ka ha u lefa; li-markup li oela ka ho sebelisa letsatsi la 30.

Setsi se secha sa li-free pool
30,000 / day
Webo feela - e kenyelletsa li-models tse sebete
Pay-as-you-go
1.50×
< $500 / 30 matsatsi
Boholo
1.30×
≥ $500 / 30 letsatsi
Mokhatlo
1.15×
≥ $2,000 / khoeli

Ho theola theko ka ho feletseng →

Litlhophiso tsa ho kopa API

Litlhophiso tsa hau li tlama ka ho toba ho hlokahalla ha likopo tsa li-keys ka khoeli - ha ho hlokahale likopo tse ncha. Ho lefa token ka kopo ha ho fetohe.

Likarolo Theko Lipotso / khoeli Lipalo
E le mahala $0 1,000 60
Sehlooho $5/month 10,000 120
Pro $19/mo 100,000 300
Bo_rakhoebo $49/mo 1,000,000 600

Khetha merero →

Ho romella li-AI tse nang le li-features kahare ho sehlahisoa sa hau sa hau? Bona Platform API bakeng sa litaelo tsa khoebo le ho lefa ka boholo.

Seo u ka se etsang

Ho kenya @handle ea hau e le motsamaisi oa puisano

Ho ruta AI persona ka boiphihlelo ba hau, ho tlosa tag ea script ea lebokose leng ho leqepheng lefe kapa lefe. Baeti ba bua ka AI ea hau; ak'haonte ea hau e nka theko.

Ho kenya @yourhandle

Webhooks

Qwalasela ho khutlisa ho ngolisoa ka ho ngolisoa bakeng sa mesebetsi e tsamaeang ka nako e telele (video gen, batch transcription, share-link creation, low-credit alerts). HMAC-SHA256 signature in X-Free-Signature.

Ho kenya webhooks →

Lipotso tse ka etsahalang

Ho ngolisa mahala ho /signup/ le ho netefatsa imeile ea hau - e leng ho bula 30,000-token letsatsi le letsatsi pool mahala. Buka /account/?tab=api le tobetsa ho theha. Li-keys ke Bearer tokens ea sebopeho sk-free-... le qala ho sebetsa kapele. Ha ho na kopo, ha ho na lethathamo la ho e-ba le.

Mofuta oa 30,000-token o sa lefelloeng o kajeno o ka koahela li-models tse sebete tse sebete ka marang-rang le API. Kantle ho eona, li-models tse sebete li lefa palo ea token e tala; li-models tsa kantle li eketsa 50% ea thekiso ea thekiso ka ho tlosoa. Ha u sebelisa $ 500 ka 30-day window, markup e theoha ho 30%; ka $ 2,000 + u ka ba motsoalle'me markup e theoha ho 15%. Li-models tsa kantle tsa Premium li lula li lefa li-token tse rekiloeng; li-token top-ups li qala ho $ 1.

Lipotso tsa API li tsamaisoa ke phaello ea hau e rekiloeng le ho koaloa ha letsatsi le letsatsi la letsatsi leng leng le hokahaneng le qeto ea hau: li-calls tsa 1,000 tse mahala, 10,000 Basic, 100,000 Pro, 1M Business. Ha ho na throttle ea metsotsoana e le 'ngoe ka holimo - haeba konopo ea hau e na le li-tokens' me u ka tlase ho li-cap tsa letsatsi le letsatsi, kopo e sebetsa.

Ea. E-na le stream:true ho /v1/chat/ ho fumana liketsahalo tse romelloang ke Server. Foromo ea wire e bonts'a OpenAI stream convention ka hona SDK ea client e teng e sebetsa ntle le ho fetoloa.

Ee - sebaka sa ho qetela sa puisano se amohela li-tools array ka ho latela OpenAI tool-calling scheme. Li-models tse tšehetsang ho sebelisa li-tool tse tloaelehileng (Qwen 2.5 family + li-models tse ngata tsa premium) li tla khutlisa tool_calls; li-models tse se nang tšehetso e tloaelehileng li tla khutlela ho lebisa ho lebisa ka mokhoa oa JSON.

Standard JSON: {error:{message, type, code}}. HTTP 402 means out of credits (response includes shortfall + an upgrade URL). HTTP 429 means daily pool exhausted on a non-API call. HTTP 400 covers validation errors with a human-readable message.

We publish freeai-code on npm + PyPI for the Coder IDE wrapper. For the raw API, the OpenAI SDKs work - point base_url at https://api.free.ai/v1 and pass your sk-free-... key. Same for Vercel AI SDK, LangChain, llamaindex, etc.

Sebe URL ea hau ea sebaka sa ho qetela ka /account/?tab=developer. Re tlatsa ka HMAC-SHA256 - ho tlatsa ho na le ka X-Free-Signature header. Webhook liketsahalo li hlasela bakeng sa: ho qetela ho sebetsa ho tsamaeang, ho arolelana-ho hokahanya ho hlahisoang, ho ba le li-alerts tse tlase-credit, le ho amohela ho ingolisa ka sehlopha.

Re eketsa theko ea upstream ka li-token ka ho eketsa ho theohau (1.50 × thekiso, 1.30 × bulk, 1.15 × motsoalle). Li-models tse nang le li-hosted ha li na markup - u lefa palo ea token e sa pheleng. Lebokose la ho tlosa ka karabo e ngoe le e ngoe le bonts'a theko ea token e nepahetseng ka hona ha ho na ho nahana.

Li-models tse mahala li sebetsa ka GPU ea rona e nang le GPU (Qwen 2.5, FLUX, Whisper, Kokoro, jj.)'me li koaheloa ke pool ea hau ea letsatsi le letsatsi. Li-models tse lefalitsoeng li tsamaea ho bafani ba kantle ba nang le boiphihlelo - ba hloka ho reka licredits'me ba ke ke ba lefa ho tloha pool ea letsatsi le letsatsi. Bothata bo na le /v1/chat/ endpoint e ts'oanang; model:premium/ ho khetha ho ea ka moralo o lefalitsoeng.

Ha ho joalo - mofuta o mong le o mong o nang le sehlooho sa Free.ai o butsoe ka molao ka litokelo tsa molao (Apache 2.0, MIT). ID tsa mofuta o rekisoang li lumellana le ID tsa HuggingFace tse ka holimo,'me gpu_api repo ea rona e teng. Haeba u batla ho etsa hore re be le li-orchestration ho hardware ea hau, bua le rona ka ho kenya lesela la hau la botho.

Ho tla hamorao. BYOK e u lumella ho fana ka konopo ea hau ea API ea mofani oa kantle ka hona o rera ho lefa ho tsoa akhaonteng ea hau - o ka qeta markup ea rona ka ho feletseng ho li-models tsena. Ho fihlela joale, li-tiers tsa bulk + tsa mokhatlo li tlosa markup ho bareki ba boholo bo phahameng.

U rata Free.ai? Reka ho ba lelapa la hao!

Litlhaku tsa leqephe lena