Ìṣàfilọ́lẹ̀ àìpẹ̀ nínú àwọn ìṣísẹ̀ 60.
API àgbègbè àìdájú OpenAI. Àwọn àtòjọ-ẹ̀yàn àwọn ààtò, àwọn ààtò 477. Rọ́ọ̀nù yìí, ki o si ka nípa.
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!"}]}'
Àwòrán
Àwọn Ìṣàmúlò-ètò Àìpẹ̀
Chat
POST /v1/chat/
{
"model": "qwen2.5-7b",
"messages": [
{"role": "user", "content": "Hello!"}
]
}
Àwòrán
POST /v1/image/generate/
{
"model": "flux",
"prompt": "a quiet cabin at dusk",
"width": 1024,
"height": 1024
}
Àwọn Àwòrán
POST /v1/image/edit/
multipart:
image: <file>
prompt: "remove the chair"
operation: "edit"
Àkọlé sí àkọlé
POST /v1/tts/
{
"model": "kokoro",
"voice": "af_heart",
"text": "Hello there!"
}
Àwọn àkọlé
POST /v1/stt/
multipart:
audio: <file>
model: "whisper-large-v3"
language: "auto"
Ṣàfikún
POST /v1/translate/
{
"text": "Hello",
"target_lang": "es"
}
Àwọn SDK
pip install freeai-code
Nodenpm i freeai-code
Lọ
Ruby (ǹyìn)
Àwọn àwọn àwọn ààyè-iṣẹ́ ààyè-iṣẹ́ ààyè-iṣẹ́