Turn a photo into a puzzle
puzzle_from_photoConverts a user-provided photo into a paint-by-number puzzle without AI restyling. Accepts either image_base64 or a public HTTPS image_url, plus optional immersive 2.5D depth, finish_style, and preset ('standard', 'kids_easy', 'large_print'). Spends PaintLoom credits matching app pricing. Returns immediately with status 'generating', a puzzle id, and paint_url; poll get_puzzle until 'ready'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "puzzle_from_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How many regions to paint. Default medium. 'detailed' costs 1 more credit. | |
| preset | No | Accessibility complexity preset: 'standard' (default), 'kids_easy' (8 colors, large bold shapes), or 'large_print' (10 colors, large readable numbers for seniors/therapy). | |
| style_id | No | A style id from list_styles. Default botanical_painterly. | |
| image_url | No | A public HTTPS URL to a JPEG, PNG or WebP photo (up to 10 MB). Provide either image_base64 or image_url. | |
| immersive | No | When true, also builds a 2.5D Walk-in Immersive depth version at no extra credit cost (scenes without depth succeed cleanly in Flat mode). | |
| mime_type | No | Default image/jpeg (only needed with image_base64). | |
| finish_style | No | Optional material finish (e.g. flat, impasto, watercolor, stained_glass, mosaic, embroidery, cloisonne, woodblock, papercut, diamond, photo). Default flat. | |
| image_base64 | No | The photo, base64-encoded (JPEG, PNG or WebP, up to 10 MB). |