{"openapi":"3.1.0","info":{"title":"WeenStudio","version":"1.0.0","description":"Halloween costumes from a photo: dress a person up as a vampire, witch, zombie and more, then turn the shot into a video. Pay per call over x402 in USDG on Robinhood Chain. No account, no API key.","x-guidance":"WeenStudio puts the person in a photo into a Halloween costume, keeping their face, and can then animate the result. 1. POST /api/agent/costumes with `photo_url` (an https link to a photo of the person), a `costume` id from GET /api/agent/catalog and/or free-text `details`, and optionally `spook` and `scene`. The response has the costume shot `id` and, once `status` is `ready`, its `url`. 2. POST /api/agent/videos with that id as `source_id` and a `motion` id or a free-text `prompt` for a 5 second clip. Every paid call answers 402 with the price first; pay it over x402 and send the same request again. The wallet that pays owns the result, so pay for a video with the same wallet that paid for the costume shot. Costume shots usually come back `ready` in the paid response. Videos take a minute or two: the response says `running`, then GET `status_url` every few seconds until it is `ready` or `failed`. A failed job can be retried for free with POST /api/agent/generations/{id}/retry. Only send photos of people who agreed to it."},"servers":[{"url":"https://weenstudio.fun"}],"paths":{"/api/agent/costumes":{"post":{"operationId":"createCostume","summary":"Dress a person up in a Halloween costume","description":"Makes a photo of the person in `photo_url` wearing a Halloween costume, keeping their face. Needs a `costume`, `details`, or both.","tags":["Generate"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.15","max":"0.35"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["photo_url"],"properties":{"photo_url":{"type":"string","format":"uri","description":"An https link to a JPEG, PNG or WebP photo of the person, up to 8 MB. A clear, front-facing face works best."},"costume":{"type":"string","enum":["vampire","witch","zombie","werewolf","skeleton","calavera","ghost","mummy","monster","pumpkin-king","devil","reaper","ghost-bride","scarecrow","creepy-clown","alien","plague-doctor","spider-queen"],"description":"A ready-made costume: vampire (Vampire), witch (Witch), zombie (Zombie), werewolf (Werewolf), skeleton (Skeleton), calavera (Calavera), ghost (Ghost), mummy (Mummy), monster (Frankenstein's monster), pumpkin-king (Pumpkin king), devil (Devil), reaper (Grim reaper), ghost-bride (Ghost bride), scarecrow (Scarecrow), creepy-clown (Creepy clown), alien (Alien), plague-doctor (Plague doctor), spider-queen (Spider queen)."},"details":{"type":"string","maxLength":300,"description":"The costume in your own words, or extra touches on top of `costume`."},"spook":{"type":"string","enum":["cute","classic","terrifying"],"description":"How scary it looks: cute (Cute), classic (Classic), terrifying (Terrifying)."},"scene":{"type":"string","enum":["studio","haunted-house","graveyard","pumpkin-patch","forest","trick-or-treat","party","castle"],"description":"Where the shot is set: studio (Dark studio), haunted-house (Haunted house), graveyard (Graveyard), pumpkin-patch (Pumpkin patch), forest (Dark forest), trick-or-treat (Trick or treat), party (Halloween party), castle (Gothic castle)."},"aspect":{"type":"string","enum":["3:4","9:16","1:1","16:9"],"default":"3:4","description":"The shape of the image. Grok Imagine keeps the shape of the photo instead."},"model":{"type":"string","enum":["nano-banana","grok-imagine","gpt-image-2"],"default":"nano-banana","description":"Which model makes it. Price in USD: nano-banana 0.15, grok-imagine 0.15, gpt-image-2 0.35."}}}}}},"responses":{"200":{"description":"Paid and started. `status` is `ready` with a `url`, or `running`: then poll `status_url`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Generation"},{"type":"object","properties":{"payment":{"$ref":"#/components/schemas/Payment"}}}]}}}},"400":{"description":"The request is not valid. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment Required"},"404":{"description":"The photo could not be used. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/videos":{"post":{"operationId":"createVideo","summary":"Make a video of a costume shot","description":"Animates a costume shot into a 5 second clip. Needs a `motion`, a `prompt`, or both. Usually answers `running`: poll `status_url`.","tags":["Generate"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"1.00","max":"2.50"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source_id"],"properties":{"source_id":{"type":"string","format":"uuid","description":"The `id` of a costume shot made by the same paying wallet."},"motion":{"type":"string","enum":["cackle","creep","jumpscare","zombie-dance","spell","float","cape","wink"],"description":"A ready-made motion: cackle (Evil laugh), creep (Creep closer), jumpscare (Jump scare), zombie-dance (Zombie dance), spell (Cast a spell), float (Float), cape (Cape swirl), wink (Spooky wink)."},"prompt":{"type":"string","maxLength":300,"description":"The motion in your own words, e.g. \"turns into a bat and flies off\"."},"model":{"type":"string","enum":["seedance-lite","grok-video","kling-2.6","seedance-2.5"],"default":"seedance-lite","description":"Which model makes it. Price in USD: seedance-lite 1.00, grok-video 1.00, kling-2.6 1.50, seedance-2.5 2.50."}}}}}},"responses":{"200":{"description":"Paid and started. `status` is `ready` with a `url`, or `running`: then poll `status_url`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Generation"},{"type":"object","properties":{"payment":{"$ref":"#/components/schemas/Payment"}}}]}}}},"400":{"description":"The request is not valid. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment Required"},"404":{"description":"The costume shot does not belong to the paying wallet. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/generations/{id}":{"get":{"operationId":"getGeneration","summary":"Check a generation","description":"Free. Returns the current state of a generation; poll it while `status` is `queued` or `running`.","tags":["Status"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The generation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"404":{"description":"No such generation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/generations/{id}/retry":{"post":{"operationId":"retryGeneration","summary":"Retry a failed generation","description":"Free. A generation that failed was already paid for; this runs it again.","tags":["Status"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Started again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"It has not failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such generation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/catalog":{"get":{"operationId":"getCatalog","summary":"List models, costumes, scenes and motions","description":"Free. Every id a request can name, with labels and prices.","tags":["Status"],"security":[],"responses":{"200":{"description":"The catalog.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"Generation":{"type":"object","required":["id","kind","status","status_url"],"properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["costume","video"]},"status":{"type":"string","enum":["queued","running","ready","failed"]},"url":{"type":["string","null"],"format":"uri","description":"The finished file (jpg, png or mp4), once `status` is `ready`."},"status_url":{"type":"string","format":"uri","description":"Where to GET this generation again."},"model":{"type":["string","null"]},"name":{"type":["string","null"],"description":"The costume."},"error":{"type":["string","null"],"description":"Why it failed, when `status` is `failed`."},"created_at":{"type":"integer","description":"Unix time in milliseconds."}}},"Payment":{"type":"object","properties":{"transaction":{"type":"string","description":"The settlement transaction."},"network":{"type":"string","description":"CAIP-2 id of the network it settled on."},"payer":{"type":"string","description":"The wallet that paid, and so owns the generation."},"amount":{"type":"string","description":"What was paid, in USD."}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}}}}}}}}