What it’s good at
- Fast, 4-step pictures
- Illustration, scenery, objects
- Square, portrait or landscape
Details
| Makes | Image |
| Speed | A few seconds |
| Licence | CreativeML OpenRAIL++-M |
| Made by | ByteDance |
| Reach it | kind "image" · make_picture |
| 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":"image","prompt":"A cosy cabin in a snowy forest at dusk, warm window light","options":{"aspect":"landscape"}}'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": "image",
"prompt": "A cosy cabin in a snowy forest at dusk, warm window light",
"options": {
"aspect": "landscape"
}
}),
});
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": "image",
"prompt": "A cosy cabin in a snowy forest at dusk, warm window light",
"options": {
"aspect": "landscape"
}
}).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 "image" · make_picture
Ask your agent: “Make a square cover picture for my playlist "{name}"”Prompts to start from
- A cosy cabin in a snowy forest at dusk, warm window lightUse
- Album cover art, a lone lighthouse under a violet aurora, grainy film texture, bold minimal composition, squareUse
- Children’s storybook illustration, a fox and a rabbit sharing tea under a giant mushroom, soft watercolour, warm lightUse
- Studio product photo of a ceramic coffee mug on a pale sage background, soft shadow, crisp detail, landscapeUse
