AI Workflows
Chain AI tools together. Automate multi-step processes with AI.
קלײַב אַלץ אױסselect-action
טעקסט פֿאַרבprocess-action
טעקסט פֿאַרבundo-type
בלאָק־אַרײַנשרײַב
װײַז פֿאָרױסװײַז
בילד־אינפֿאָרמאַציע
פֿאַרשײדענע װײַז
טעקסט פֿאַרבundo-type
- טעקסט פֿאַרבtool-preset-action — קלײַב אַלץ אױסChat, בילד, TTS, אױף װײַטער).
- קלײַב אַלץ אױסundo-type — טעקסט פֿאַרבtext-to-speech
- אויטאָמאַטיש מיט API — קײן API־אַרױסרופֿן צוזאַמען אין אַ סקריפּט פֿאַר אַוטאָמאַטישע פּאַפּילינעס. זע אונדזער API דאָקומענטן.
- ניצן Zapier — Connect Free.ai to 5,000+ apps for no-code automation. See our Zapier integration.
API אַרבעט־פֿאַרבײַטונג
קלײַב אַלץ אױסselect-action
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": "qwen7b", "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)