Upload Design
Endpoints
Upload Design
Upload design images for use with generation
POST
Upload Design
Upload Design
Upload a design image and receive a URL for use with the/generate endpoint.
This endpoint is free — no tokens required.
Endpoint
Request Formats
Multipart Form Upload
Send the image asmultipart/form-data:
Base64 JSON Upload
Send base64-encoded image data:Constraints
| Constraint | Value |
|---|---|
| Max file size | 10 MB |
| Allowed formats | PNG, JPEG, WebP, GIF |
| Recommended resolution | 2400x3000px or higher |
Response
Unique upload identifier.
Public URL of the uploaded image. Use this with
/generate.Smaller thumbnail version.
File size in bytes.
Detected MIME type.
Example
Response Example
Full Workflow
Upload → Analyze → Generate:Image Preparation Tips
Use PNG for designs with transparency
Use PNG for designs with transparency
PNG preserves alpha channels for transparent backgrounds, essential for printing on colored garments.
High resolution = better prints
High resolution = better prints
Upload at 300 DPI or higher. For a 12” wide print, that’s at least 3600px wide.
sRGB color space
sRGB color space
Ensure images are in sRGB color space for consistent color representation.
Remove excess transparency
Remove excess transparency
Trim transparent borders to get accurate placement calculations.
Errors
| Code | Status | Description |
|---|---|---|
invalid_request | 400 | No file provided or invalid format |
invalid_request | 400 | File too large (max 10MB) |
invalid_request | 400 | Could not read image |