AI Workflows | Free.ai
Chain AI tools together. Automate multi-step processes with AI.
Ka whakapā atu ngā utauta AI ki roto i ngā pūtau whakamātautau
Ka whakaaetia e ngā rerenga mahi kia hono atu ki ngā utauta AI maha. Ka noho te huaputa o tētahi hipanga hei tāuru o te whai ake. Ka whakamātautau ngā tukanga hipanga maha e roa ana te wā hei mahi i te ringa.
Hei tauira, he rerenga mahi
He pūwhitinga tānga tānga
Mā te tautoko ā-waehere
Pipe me ngā ihirangi whitiāhua
Ka taea te whakataki i te pūkenga
He pēhea te hanga i tētahi rerenga mahi
- Ka tīmata ki tētahi utauta — Hiku tētahi utauta AI hei wāhi tīmatanga (Pāpāho, Pikitia, TTS, etc.).
- Kohia te huaputa — Ka whakamahia te hua hei tāuru mō te utauta e whai ake nei. Hei tauira, ka mau te kupu i hangaia e AI, ka kai ki roto i te kupu-ki-te-kōrero.
- Whakahauhau me te API — Ko ngā whakarongo API mekameka e hono ana i roto i tētahi tuhituhi mō ngā pūtautau whakamātautau katoa. Tirohia tātau Ka taea te whakataki i te papatono.
- Ka whakamahia a Zapier — Connect Free.ai to 5,000+ apps for no-code automation. See our Zapier integration.
Hei tauira, he rerenga mahi API
E rua nga whakarongo API — hanga i te kupu kātahi ka tahuri ki te kōrero:
import requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
# Step 1: Generate text
resp = requests.post("https://api.free.ai/v1/chat/completions", headers=HEADERS,
json={"model": "qwen2.5-72b", "messages": [{"role": "user", "content": "Write a 2-sentence product description for wireless earbuds"}]})
text = resp.json()["choices"][0]["message"]["content"]
# Step 2: Convert to speech
resp = requests.post("https://api.free.ai/v1/tts", headers=HEADERS,
json={"text": text, "voice": "af_heart"})
with open("output.mp3", "wb") as f:
f.write(resp.content)