Avvio rapido tra 60 secondi.
API chat compatibile con OpenAI. Un token Bearer, strumenti 477. Eseguire questo ricciolo, quindi leggere.
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!"}]}'
Cosa vuoi costruire?
Avvio rapido
Chat
POST /v1/chat/
{
"model": "qwen2.5-7b",
"messages": [
{"role": "user", "content": "Hello!"}
]
}
Generazione di immagini
POST /v1/image/generate/
{
"model": "flux",
"prompt": "a quiet cabin at dusk",
"width": 1024,
"height": 1024
}
Modifica immagine
POST /v1/image/edit/
multipart:
image: <file>
prompt: "remove the chair"
operation: "edit"
Testo al discorso
POST /v1/tts/
{
"model": "kokoro",
"voice": "af_heart",
"text": "Hello there!"
}
Discorso al testo
POST /v1/stt/
multipart:
audio: <file>
model: "whisper-large-v3"
language: "auto"
Traduci
POST /v1/translate/
{
"text": "Hello",
"target_lang": "es"
}
SDK
pip install freeai-code
Nodenpm i freeai-code
Vai (in arrivo)
Ruby (in arrivo)
Oppure utilizzare il punto base_url di OpenAI SDK a api.free.ai/v1