For AI agents: this page is also available as Markdown at https://docs.refabric.com/task-api-reference.md, and the index of every page is https://docs.refabric.com/llms.txt.

All tasks

Every task you can run, each with its inputSchema and outputSchema.

Tasks by category

All tasks

TaskCategoryDescription
image.generateDesign generationCreate new fashion designs from a prompt, reference images, a moodboard or a brand kit. Each design is delivered as an image file you can edit or reuse.
pattern.generateDesign generationCreate textile repeats from a prompt and optional reference images. Each pattern is delivered as an image file you can reuse as a print.
image.extract_materialsProduction prepRead the fabrics, trims and components a garment is made of from its image, each with a close-up, and the garment's colours. Delivered as one file with the findings in its data.
image.extract_coloursProduction prepRead a garment's colours from its image, with their Pantone matches, largest share first. Delivered as a palette image with the colours in its data.
image.extract_printProduction prepLift the print of a garment out of its image as a flat, reusable swatch. Delivered as one image file.
moodboard.createRecords & librariesAnalyse 10 to 60 images into a moodboard — its palette, fabrics, prints, key items and keywords — delivered as a `moodboard:` record you can read, and pass to generation.
fabric.createRecords & librariesTurn photos of a fabric into a library fabric you can design with, rendered in every extra colour you ask for. The result is the fabric record, fabric:<id>.
fabric.add_colourRecords & librariesRender one more colour of a fabric you made with fabric.create. The result is the same fabric record with the new colour in it.
brand_kit.createRecords & librariesCreate a brand kit from your colours and your looks, fabrics, prints and other images. The kit is ready to read at once; its items are prepared so generation can use them.
range_plan.createRecords & librariesPlan a collection from your moodboards: isolate garments from runway looks, or design new pieces line by line. The plan is delivered as one record whose items are its images.
image.change_textureImage editingChange the texture, print and colour of one garment in a finished image to match a fabric, keeping the person, the pose and the scene. Delivered as one image file.
image.change_backgroundImage editingPut a finished image on a new background — a backdrop from your library, a photo, a scene you describe, or none at all (a transparent PNG) — keeping everything in front of it as it is. Delivered as one image file.
image.expandImage editingGrow a finished image outward by a number of pixels on each side, filling the new space with more of the same scene. Delivered as one image file.
image.face_fixImage editingRedo the face in a finished shoot image so it matches the model it was shot with, leaving the pose, the garment and the background as they are. Delivered as one image file.
image.glamImage editingChange one thing you name in a finished image — the lipstick, a button, an earring — and leave the rest untouched. Delivered as one image file.
image.reposeImage editingPut the same person in the same clothes into new poses — picked from the pose library or described in words. Delivered as one image file per pose, in the order you listed them.
video.generateVideoTurn a finished image into a short video, describing the movement you want while everything keeps the look it already has. Delivered as one `video/mp4` file.
image.to_sketchImage editingTurn a garment image into a technical drawing, in the style you choose, as line art or in colour. Delivered as one image file.
image.rotate_viewsImage editingTurn the subject of an image around: its back, left and right views, keeping its medium and style. Delivered as up to three image files, in that order.
image.upscaleProduction prepEnlarge an image to 4K (3840 px on its long edge) for print and zoom. An image that is already 4K comes back as it is. Delivered as one image file.
image.to_svgProduction prepConvert a technical drawing into a layered SVG vector file, ready for tech packs and cutting. Delivered as one SVG file.
pose.createRecords & librariesTurn a photo of a person posing into a pose in your library, to shoot or re-pose models in. The result is the pose, pose:<id>.
background.createRecords & librariesTurn a photo of a place, or of a studio backdrop, into a background in your library: background:<id>.
photoshoot.createPhotoshootsShoot 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.
ghost_photoshoot.createPhotoshootsShoot 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.
mannequin_photoshoot.createPhotoshootsPut 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.
image.polishImage editingCorrect the light and colour of finished images of one of your shoots, keeping everything else. One polished file per image.

Getting started