SDK & MCP

Garment creation,
inside your product.

What a person does in Studio, an assistant or your code does too: open the library, make a design, see it on our own models, export the print files. One protocol, the same names.

Developer preview. The MCP server is hosted at mcp.beforewear.com and is allowed in Studio, under Connect; the Python SDK is shared on request, and its tokens are made there too.

Ask for SDK access ↗

For AI agents

MCP

Add Beforewear to Claude, ChatGPT or any assistant that speaks MCP. It asks you in Studio before it can do anything, and acts for your organization.

https://mcp.beforewear.com/
Connect an assistant ↗

For application code

Python SDK

The same tools as typed calls, with a personal token made in Studio. Offline, it answers from a stand-in, so your tests run without the network.

from beforewear import Client

bw = Client("vbl_pat_...")
Explore the Python SDK ↗

Both use one protocol: garments, designs and their layers, presets, mockups, print files and your balance. Studio uses it too, so a design made from code opens there as it is.

An example

A library garment.
Your design on it.

Pick a garment and a size, put your logo and lettering on it, see it on our own models, and take the print files. The design keeps every layer, so you or Studio can change it later.

Walk through it ↗
Python / dress a library garmentSDK preview
from beforewear import Client

bw = Client("vbl_pat_...")  # a personal token, made in Studio
hoodie = bw.garments.get("vb-py-aop-hood")

design = bw.designs.create(
    hoodie.id, "L", "Club hoodie", base_colour="navy"
)
design = bw.designs.place(
    design.id, "front", artwork="logo.png", width_cm=24
)
shots = bw.mockups.render(design.id, views=["front", "back"])
files = bw.designs.export(design.id)  # print files

The design opens in Studio as it is. The mockups are the garment's own models wearing it; the print files are a PNG per piece at 150 dpi.

What you can do / 01

A library garment, your design.

For merch, POD and product catalogs. Every design is the one Studio keeps: it opens there as it is.

Read how ↗

Starting input

A garment and a size + your artwork

  1. design.create with a base colour or a pattern preset
  2. design.place your logo and lettering on named areas
  3. design.export the print files

What you can do / 02

Words to a design.

The design generator draws for the garment's print areas. It costs a generated design's price, from your balance.

Read how ↗

Starting input

A design + what to draw

  1. design.generate with your words, or a mural preset's
  2. design.get_generation until it is drawn
  3. The drawing lands on every piece as a layer

What you can do / 03

Mockups on our models.

Male for men's garments, female for women's, both for unisex. Made in seconds, free.

Read how ↗

Starting input

A design

  1. mockup.render: front, side, back, torso
  2. The garment's own models, as it was built at that size
  3. The mockups come back in the answer

Builds Coming soon

Builds from your own patterns.

Send your sewing pattern or a 3D model, from Studio, an assistant or code; Beforewear's engine builds the garment at every size you ask, checks each stage, and it becomes your garment. Charged for its computer's time and its AI's work, against a cap you set.

Read about builds ↗

Studio is open

Bring your next
garment idea.

Start designing

Design on library garments today, free to start.
For a garment of your own or custom work, tell us what you want to create.