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
Design generation
Makes new designs and patterns from your words, reference images or a moodboard. 2 tasks
Image editing
Changes one thing in an image you send — its background, frame, face, pose, fabric, views or finish — and keeps the rest. 9 tasks
Photoshoots
Turns product photos into shoot photos: on a model, on a ghost mannequin or on a mannequin. 3 tasks
Video
Turns an image into a short video. 1 tasks
Production prep
Takes what production needs from an image: its materials, colours or print, a larger copy, or a vector file. 5 tasks
Records & libraries
Makes the records and library items other tasks take: moodboards, brand kits, range plans, fabrics, poses and backgrounds. 7 tasks
All tasks
| Task | Category | Description |
|---|---|---|
image.generate | Design generation | Create 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.generate | Design generation | Create 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_materials | Production prep | Read 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_colours | Production prep | Read 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_print | Production prep | Lift the print of a garment out of its image as a flat, reusable swatch. Delivered as one image file. |
moodboard.create | Records & libraries | Analyse 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.create | Records & libraries | Turn 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_colour | Records & libraries | Render 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.create | Records & libraries | Create 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.create | Records & libraries | Plan 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_texture | Image editing | Change 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_background | Image editing | Put 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.expand | Image editing | Grow 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_fix | Image editing | Redo 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.glam | Image editing | Change 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.repose | Image editing | Put 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.generate | Video | Turn 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_sketch | Image editing | Turn 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_views | Image editing | Turn 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.upscale | Production prep | Enlarge 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_svg | Production prep | Convert a technical drawing into a layered SVG vector file, ready for tech packs and cutting. Delivered as one SVG file. |
pose.create | Records & libraries | Turn 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.create | Records & libraries | Turn a photo of a place, or of a studio backdrop, into a background in your library: background:<id>. |
photoshoot.create | Photoshoots | 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. |
ghost_photoshoot.create | Photoshoots | 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. |
mannequin_photoshoot.create | Photoshoots | 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. |
image.polish | Image editing | Correct the light and colour of finished images of one of your shoots, keeping everything else. One polished file per image. |