Moqapi

Build with Free.ai — one Bearer token, 400+ AI tools.

Chat, setšoantšo, video,'mino, puo, OCR, fetolela - tsohle ka nako e le' ngoe e lumellanang le OpenAI. Li-pool tse ntle tsa mahala, li-markup tse hlakileng, litheko tsa mokhatlo ka boholo.

10,000 tokens mahala ka ho ngolisa. Cards ha ho hlokahale ho qala.

Sebopeho sa sehlooho

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

Ho lefa ka ho hlaka, ho lefa ka ho lefa ka ho lefa

Li-models tse sebete tse bolokiloeng li lefa ka theko e sa sebetseng. Li-models tsa Premium li eketsa markup e hlakileng e tlala ha u theola. Likarabo tsohle li phatlalatsa theko e nepahetseng ea token.

Li-languages tse 99 kantle ho lebokose

Chat, fetolela, TTS, STT - kamehla modality e kholo e kenyelletsa 99 lipuo le ha ho na config khethehileng. Pass a puo ea khoutu 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"]

Pricing - litheko kick ka ho toba

$ 1 = 750,000 tokens. Li-models tse sebete li lefa ka theko e boima. Li-markup tsa model premium li theoha ka letsatsi la 30.

Setsi se secha
30,000 / day
Webo feela — e kenyelletsa li-model tse sebetseng ka bomong
Pay-as-you-go
1.50×
< $500 / 30 matsatsi
Boholo
1.30×
≥ $500 / 30 letsatsi
Mokhatlo
1.15×
≥ $2,000 / khoeli

Ho hlaka ha theko e felletseng →

Seo u ka se etsang

E-ba le @handle ea hau e le motsamaisi oa puisano

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

Sebetsa @yourhandle

Webhooks

Qwalasela ho khutlisa ho ngolisoa ka ho tšoauoa bakeng sa mesebetsi e sebetsang ka nako e telele (ho theha video, ho ngolisa ka palo, ho theha li-link tsa ho arolelana, ho tsebisa ka li-credit tse tlase). Ho ngolisoa ka HMAC-SHA256 ho X-Free-Signature.

Sebetsa webhooks →

Lipotso tse botsoang khafetsa

E-ba le ak'haonte ea mahala ho /signup/ — u tla fumana li-token tse 10,000 ka ho netefatsa. Bula /account/?tab=api'me u tobetse ho theha. Li-keys ke li-token tsa Bearer tsa mofuta oa sk-free-...'me u qala ho sebetsa kapele. Ha ho na kopo, ha ho na lethathamo la ho e-ba le eona.

$ 1 e reka li-tokens tsa 750,000. Li-models tse nang le li-hosted li lefa li-token tse sa sebetseng; 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%; ho $ 2,000 + u ka ba motsoalle'me markup e theoha ho 15%.

Lipotso tsa API li tsamaisoa ke chelete eo u e rekileng le ho fepa ka khoeli ka konopo (ho buloa ka ho feletseng ho 1,000; e phahame ka /account/?tab=api). Ha ho na throttle ea metsotsoana e le 'ngoe ka holimo — haeba konopo ea hau e na le li-token' me u ka tlase ho ho fepa ka khoeli, kopo e sebetsa.

Ee. Lekola stream:true ho /v1/chat/ ho fumana Liketsahalo tse Tloaelehileng ke Motsamaisi. Foromo ea wire e bonts'a konteraka ea OpenAI ea ho arolelana ka hona SDK ea mosebelisi e sebetsang e sebetsa ntle le ho fetoloa.

Ee — sebaka sa ho qetela sa puisano se amohela li-tools array ka schema ea ho rekisoa ha li-tool ea OpenAI. 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 ea native li tla khutlela ho lebisa ho lebisa ho JSON-mode.

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.

Re phatlalatsa freeai-code ka npm + PyPI bakeng sa Coder IDE wrapper. Bakeng sa API e sa phekoloeng, OpenAI SDKs e sebetsa - point base_url ho https://api.free.ai/v1'me u fane ka sk-free-... konopo. E ts'oanang le Vercel AI SDK, LangChain, llamaindex, jj.

Sebetsa URL ea hau ea sebaka sa ho qetela ka tlase ho /account/?tab=developer. Re ngola lengolo la ho kenya ka HMAC-SHA256 - lengolo le le leng le le leng le le ka tlase ho X-Free-Signature. Liketsahalo tsa Webhook li bolaea: ho qetela ha mosebetsi o tsoelang pele, ho theha li-link tsa ho arolelana, li-alerts tsa li-credit tse tlase, le ho amohela ho kopa kopo.

Re eketsa theko ea upstream ka li-token ka ho eketsa li-multiplier tsa hau (1.50 × thekiso, 1.30 × bulk, 1.15 × motsoalle). Li-models tse nang le li-hosted ha li na markup - o lefa palo ea token e sa sebetseng. 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 eona (Qwen 2.5, FLUX, Whisper, Kokoro, jj.)'me li koaheloa ke pool ea hau ea letsatsi le letsatsi. Li-models tse lefisoang li tsamaea ho bafani ba kantle ba nang le boiphihlelo — ba hloka li-credits tse rekiloeng'me ha li ka lefisoa ho tloha pool ea letsatsi le letsatsi. Bothata bo arolelana /v1/chat/ endpoint e ts'oanang; lefa model:premium/ ho khetha ho ea ho model e lefisoang.

E-ea - mofuta o mong le o mong o hlophisitsoeng ka Free.ai o butsoe ka laesense e lumellanang (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 hlophisa ka har'a hardware ea hau, bua le rona ka ho kenya lefatše 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 le metsoalle ea hau!

Ratela leqepheng lena