Test version. Sandbox only: no real orders are printed, shipped or charged.

Home / File specs

File specs

Print file specs

Code first: every product has a machine-readable print spec. The PNG, SVG and PDF templates are pictures of the same spec, made for people.

Every product has a machine-readable print spec at GET /v1/products/{product_id}/print-spec, and all of them are in https://api.madely.ai/print-specs.json. A spec gives the canvas size in pixels, dpi, bleed, safe zone, print zones, color mode, accepted formats and a prompt suffix for an image model. Each spec says whether its size is measured or still to be verified.

What artwork file does Madely need?

Madely needs at least one artwork file per item, as a public https URL, with the placement and the declared width_px and height_px. Check it first with POST /v1/print-spec/validate (POST /v1/files/check is the same check). In this test version the checker does not download the file. Product print sizes are in the spec for each product: 14 are measured and the rest come from Madely product specs or are marked to verify.

Examples

ProductIDCanvasSizeSourceSpec and templates
Mug 11ozK042550 × 1155 px8.5 × 3.85 in at 300 dpimeasuredjson png svg pdf
Mug Deluxe 15oz.K142550 × 1278 px8.5 × 4.26 in at 300 dpimeasuredjson png svg pdf
Bella Canvas Unisex Tee 3001 (DTF)A293600 × 4800 px12 × 16 in at 300 dpimeasuredjson png svg pdf
DTF Unisex Crew Neck Sweatshirt Gildan 18000A274200 × 4800 px14 × 16 in at 300 dpimeasuredjson png svg pdf
Tote Bag HeavyA113075 × 2325 px10.25 × 7.75 in at 300 dpimeasuredjson png svg pdf

How much to trust a spec

14 specs are measured (read from a template file or equal to our production size). 178 come from Madely product specs and 1 is an industry-standard size marked to verify. 131 products have no spec yet because no source has a print area. Only the canvas size is tied to a source; bleed, safe zone, color mode, accepted formats and the file-size cap are defaults, labelled in each spec’s field_sources.

Accepted files (test-version defaults, to verify)

PNG, JPG, PDF or SVG, sRGB, up to 50 MB, as a public https URL. Transparent PNG for DTF products; full-bleed artwork for sublimation. Each spec lists the exact rule for its product.

Validate before you order

curl -s https://api.madely.ai/v1/print-spec/validate -H 'Content-Type: application/json' \
  -d '{"product_id":"K04","width_px":2550,"height_px":1155,"format":"png","preview":true}'

Returns pass, warn or fail for each check with a fix, a suggested fit, and an optional placement preview. Schema: /schemas/print-spec.schema.json. All specs: /print-specs.json.