For AI agents: this page is also available as Markdown at https://docs.refabric.com/task-api-reference/photoshoots.md, and the index of every page is https://docs.refabric.com/llms.txt.
Photoshoots
Turns product photos into shoot photos: on a model, on a ghost mannequin or on a mannequin.
Tasks
Create a photoshoot
Shoot your garments on AI models: each product on each model in its poses, on one backdrop, with optional product views. Delivered as one record whose items are the images.
Create a ghost photoshoot
Shoot your products with nobody in them: on an invisible mannequin, laid flat or in close-up, one image per view. Delivered as one record whose items are the images.
Create a mannequin photoshoot
Put the garments of mannequin or worn photos on AI models, keeping each photo's pose and framing. Delivered as one record whose items are the images.
Quick start
photoshoot.create
import os
import time
import requests
headers = {"Authorization": f"Key {os.environ['REFABRIC_API_KEY']}"}
job = requests.post(
"https://api.refabric.com/v1/tasks/photoshoot.create",
headers=headers,
json={
"products": [
{
"image": "file:812",
},
],
"models": [
"model:5501",
],
},
).json()
print(job["job_id"])
while True:
status = requests.get(job["status_url"], headers=headers).json()
if status["lifecycle"] == "terminal":
break
time.sleep(5)
print(requests.get(job["result_url"], headers=headers).json())