Media editor: build vs buy in the age of AI
Polotno

PRINT ON DEMAND

Teemill Print API + Polotno: sustainable apparel design

Embed Polotno's design editor so users can create on-demand ethical apparel, then send artwork to Teemill for circular-model printing and fulfillment.

Polotno + Teemill pairs Polotno's embedded design editor SDK with Teemill's Print-on-Demand API. Your users design apparel inside your app, your app sends the artwork to Teemill and gets back a product page where it can be bought, and Teemill prints on their organic, circular supply chain and ships worldwide.

Try it below. Design the front of the shirt, then press Send to Teemill: the editor exports the design and Teemill's API turns it into a real product page you can open. Nothing is ordered.

The full code, editor and server, is on GitHub: polotno-teemill-demo. It runs on Polotno SDK, so it needs a Polotno API key. To compare it with the other print APIs, see the print on demand API comparison.

The problem Teemill doesn't solve

Teemill's sustainability story is the best in the category: organic cotton, renewable-powered UK facility, garments designed for return and re-manufacture. Their API turns an image into a buyable product. What it doesn't give you is the place where that image gets designed.

Teams on Teemill without a real design layer usually:

  • Offer "upload your logo" as the whole design experience
  • Lose bleed and print-zone checks until the order reaches production
  • Skip multi-garment collections because recomposing per product is expensive

Polotno goes in front of Teemill with a real layered editor plus garment-color preview and multi-product mockups, turning Teemill's sustainable supply chain into a credible creator-brand platform.

How to create Teemill products with the API

  • Design: User picks a Teemill garment (T-shirt, hoodie, tote) and a base color. Polotno loads the canvas with DTG bleed and placement overlays.
  • Edit: User layers text, images, and brand assets. Garment color preview updates live.
  • Export: Your app exports a PNG of the design via store.toDataURL .
  • Create: Your app sends it to Teemill's Custom Product endpoint, which returns the URL of a product page where the customer can buy it.
  • Fulfill: Teemill prints on organic stock and ships.

For products you already set up in the Teemill dashboard, the Orders API places orders from your own checkout instead.

What a request looks like

js
// 1. Export the design as a PNG (a base64 data URL).
const image = await store.toDataURL({ mimeType: "image/png", pixelRatio: 4 })

// 2. Send it to Teemill's Custom Product endpoint with your public key.
//    Only image_url is required. For the product types and colours, see
//    https://teemill.com/omnis/v3/product/options/
const product = await fetch("https://teemill.com/omnis/v3/product/create", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${TEEMILL_PUBLIC_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    image_url: image,
    item_code: "RNA1",
    colours: "White",
    name: "Custom tee",
    price: 20.0,
  }),
}).then((r) => r.json())

// 3. Send the customer to the product page Teemill created.
window.location.href = product.url

// Selling products already set up in your Teemill dashboard from your own
// checkout? Use the Orders API: POST https://api.teemill.com/v1/orders?project=…
// with your private key in Authorization and a variantRef per item, then
// POST /v1/orders/{id}/confirm. See https://teemill.com/api-docs/orders/

What Polotno handles vs. what Teemill handles

Polotno (in your app)

  • Garment templates (T-shirts, hoodies, totes)
  • Embedded editor UI with live color preview
  • Layered design with text + image composition
  • Multi-garment collection mockups via cloud rendering
  • 300dpi PNG export with print-zone bleed

Teemill (backend)

  • Organic garment catalog
  • Printing on demand
  • UK-based, renewable-powered production
  • Circular supply chain (return + re-manufacture)
  • Global fulfillment
  • Order status through the Orders API

Technical details

  • Export: PNG via store.toDataURL , sent as a base64 data URL in image_url .
  • Auth: the Custom Product endpoint takes your public key as a Bearer token. The Orders API takes your private key in Authorization plus a project query parameter.
  • Bleed: DTG-safe bleed enforced in the template.
  • Color: RGB (Teemill's DTG workflow).
  • Multi-garment: One design rendered across many garments, collection preview in a single canvas.
  • Rendering modes: Client-side for preview; cloud for deterministic export .

What you can build

Any garment in Teemill's catalog:

  • T-shirts (short and long sleeve)
  • Hoodies and sweatshirts
  • Tote bags
  • Other accessories (Teemill-catalog-dependent)

FAQ

Do I need a Teemill account?

Yes. Sign up for API access on Teemill; your public and private keys and your project name are in the developer settings.

What file format does Polotno export?

A PNG, sent to Teemill as a base64 data URL.

Can I preview designs on different garment colors?

Yes. The integration renders the garment behind the artwork and updates it as the color changes; Polotno supplies the live design.

Does this support collection mockups?

Yes. One design can be rendered across multiple garments using the Cloud Render API for landing-page-ready collection views.

Start building

The code for the demo above is on GitHub: polotno-teemill-demo. Clone it, add a Polotno API key (a trial key from your Polotno dashboard works) and your Teemill API key, and the editor-to-order flow runs locally.

Skip the build, cut dev costs, launch faster

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai