What it’s good at
- Reads Turkmen in Latin letters
- Numbers spelled out for you
Details
| Makes | Voice |
| Speed | A few seconds |
| Licence | CC-BY-NC 4.0 (non-commercial) |
| Made by | Meta |
| Reach it | kind "voice", voice "tk_mms" |
| Status | On now |
Start a creation, then check it with its id (or pass a webhook). Keys: API keys. Full reference: Docs.
curl -X POST https://phantasia.pics/api/v1/creations \
-H "Authorization: Bearer $PHANTASIA_KEY" -H "Content-Type: application/json" \
-d '{"kind":"voice","prompt":"Salam! Ertir sagat 10-da kitaphanada duşuşarys.","options":{"voice":"tk_mms"}}'const res = await fetch("https://phantasia.pics/api/v1/creations", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PHANTASIA_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"kind": "voice",
"prompt": "Salam! Ertir sagat 10-da kitaphanada duşuşarys.",
"options": {
"voice": "tk_mms"
}
}),
});
let creation = await res.json();
while (!["done", "failed", "blocked"].includes(creation.status)) {
await new Promise((r) => setTimeout(r, 3000));
creation = await (await fetch(`https://phantasia.pics/api/v1/creations/${creation.id}`, {
headers: { Authorization: `Bearer ${process.env.PHANTASIA_KEY}` },
})).json();
}
console.log(creation.url);import os, time, requests
key = {"Authorization": f"Bearer {os.environ['PHANTASIA_KEY']}"}
creation = requests.post("https://phantasia.pics/api/v1/creations", headers=key, json={
"kind": "voice",
"prompt": "Salam! Ertir sagat 10-da kitaphanada duşuşarys.",
"options": {
"voice": "tk_mms"
}
}).json()
while creation.get("status") not in ("done", "failed", "blocked"):
time.sleep(3)
creation = requests.get(f"https://phantasia.pics/api/v1/creations/{creation['id']}", headers=key).json()
print(creation["url"])kind "voice", voice "tk_mms"
Ask your agent: “Read this bedtime story in a warm voice: {story}”