Generate custom print
generate_custom_printGenerates a custom t-shirt print from a text prompt or preserves your own uploaded image, after confirming product, placement, cost, and credit balance.
Instructions
Generate a CUSTOM t-shirt print from a text prompt (AI, takes 2-10 min). SPENDS THE ACCOUNT OWNER'S STUDIO CREDITS: tell them the cost and their balance and get a yes BEFORE calling this — never spend silently, and never spend to 'try something' on your own initiative. Credits are earned (20 free on signup, 20 with every tee bought), so a wasted one is a real loss to them. Free exception: preserve=true prints their own image as-is and costs nothing. IMPORTANT: first call get_studio_options and ask the human to pick placement + product (and optionally background); do NOT silently use defaults. Args: prompt (design description), product? (one of ['kids_basic_tshirt_boy', 'kids_basic_tshirt_girl', 'kids_oversize_tshirt_boy', 'kids_oversize_tshirt_girl', 'mens_basic_tshirt', 'mens_oversize_tshirt', 'womens_basic_tshirt', 'womens_oversize_tshirt']), background? (t-shirt background, one of ['washed-beige', 'washed-black', 'washed-blue', 'washed-brown', 'washed-gray', 'washed-green', 'washed-orange', 'washed-pink', 'washed-red', 'washed-yellow', 'watercolor-beige', 'watercolor-blue', 'watercolor-sky']), placement? (print size/position, one of ['portrait_extended', 'square_center', 'chest_small']), model? (nb2 default | gpt-image-2 — both 1 credit, different styles), image_url? (https link to the user's OWN image — used as style/subject reference), preserve? (true = print the user's image exactly as-is, no AI redraw — kids' drawings, own art; FREE, no credits; requires image_url). Returns print_id — poll get_studio_status until done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Generation engine: nb2 (default) or gpt-image-2 — both 1 credit. | |
| prompt | Yes | Text description of the design to generate. | |
| product | No | Studio product base from get_studio_options (default mens_oversize_tshirt). | |
| preserve | No | true = print the image exactly as-is, no AI redraw (free); requires image_url. | |
| image_url | No | https link to the user's OWN image, used as style/subject reference. | |
| placement | No | Print size/position: portrait_extended (default), square_center or chest_small. | |
| background | No | T-shirt background choice (see get_studio_options backgrounds). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | e.g. not enough Studio credits, daily limit reached, invalid product. | |
| detail | No | ||
| status | No | ||
| print_id | No | Generation id — poll get_studio_status with it. | |
| tell_user | No | Say this to the account owner — what was spent from their balance and what is left. | |
| topup_url | No | Where the user can buy credits (present on 'not enough credits'). | |
| cost_credits | No | Credits spent on this generation. | |
| signup_bonus | No | ||
| balance_after | No | Credits left after this generation. | |
| balance_before | No | ||
| studio_account_created | No | Present when a Studio account was auto-created for the user. |