{"openapi":"3.1.0","info":{"title":"Photo2Vector","description":"AI Photo to Vector Converter","version":"1.0.0"},"paths":{"/api/process/stream":{"post":{"tags":["process"],"summary":"Process Stream","description":"Stream processing results step by step using SSE.\n\nNew 8-step pipeline:\n1. YOLO detection → auto crop (optional)\n2. Mask generation (rembg + postprocess)\n3. Normalize (enhanced)\n4. Lineart (ControlNet or Replicate)\n5. Apply mask\n6. Advanced cleanup\n7. Compose\n8. Export\n\n`style` other than \"lineart\" adds a `style` step (silhouette, outline,\nstencil, halftone, trace, color; see app/services/styles.py) as soon as\nits inputs exist: for trace and color, right after `start`.\n`style_params` is a JSON object of that style's parameters. The line art\nsteps and ezcad_ready.svg are produced either way.\nThe `start` message carries the job id and what the upload was judged to\nbe (see start_message()).\n`exp`: the browser's arm of the AI preview experiment (pro_events), kept\non the upload event so the report can split uploads by it.","operationId":"process_stream_api_process_stream_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_stream_api_process_stream_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/mask":{"post":{"tags":["process"],"summary":"Rerun Mask","description":"Re-run mask generation step for existing job.","operationId":"rerun_mask_api_process_rerun__job_id__mask_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_mask_api_process_rerun__job_id__mask_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/normalized":{"post":{"tags":["process"],"summary":"Rerun Normalized","description":"Re-run normalize step for existing job with custom parameters.","operationId":"rerun_normalized_api_process_rerun__job_id__normalized_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_normalized_api_process_rerun__job_id__normalized_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/lineart":{"post":{"tags":["process"],"summary":"Rerun Lineart","description":"Re-run lineart step for existing job.","operationId":"rerun_lineart_api_process_rerun__job_id__lineart_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_lineart_api_process_rerun__job_id__lineart_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/applymask":{"post":{"tags":["process"],"summary":"Rerun Applymask","description":"Re-run apply mask step for existing job.","operationId":"rerun_applymask_api_process_rerun__job_id__applymask_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_applymask_api_process_rerun__job_id__applymask_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/clean":{"post":{"tags":["process"],"summary":"Rerun Clean","description":"Re-run CLEAN step for existing job.","operationId":"rerun_clean_api_process_rerun__job_id__clean_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_clean_api_process_rerun__job_id__clean_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/add-outline/{job_id}":{"post":{"tags":["process"],"summary":"Add Outline","description":"Generate outline from mask contour.","operationId":"add_outline_api_process_add_outline__job_id__post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_outline_api_process_add_outline__job_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/clean-region/{job_id}":{"post":{"tags":["process"],"summary":"Clean Region","description":"Clean a specific region of an image using backend pipeline.","operationId":"clean_region_api_process_clean_region__job_id__post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_clean_region_api_process_clean_region__job_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/vectorize":{"post":{"tags":["process"],"summary":"Rerun Vectorize","description":"Re-run vectorize step for existing job.","operationId":"rerun_vectorize_api_process_rerun__job_id__vectorize_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_vectorize_api_process_rerun__job_id__vectorize_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/style":{"post":{"tags":["process"],"summary":"Rerun Style","description":"Render an output style for an existing job, or switch the job back to line art.\n\nStyles are built from files the job already has, so this takes a fraction\nof a second. `style_params` is a JSON object; missing or out-of-range\nvalues fall back to defaults or are clamped (see styles.PARAM_SPECS).\nReturns 409 while the pipeline has not yet written the style's inputs.\nTrace and color need only the upload, so they work before the mask exists.\n\nAsking again for a style that is already rendered with the same params\nre-renders nothing; it only records the style as the job's current one,\nwhich is what a shared /job/ link opens with.","operationId":"rerun_style_api_process_rerun__job_id__style_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_style_api_process_rerun__job_id__style_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/compose":{"post":{"tags":["process"],"summary":"Rerun Compose","description":"Re-run compose step for existing job.","operationId":"rerun_compose_api_process_rerun__job_id__compose_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/rerun/{job_id}/export":{"post":{"tags":["process"],"summary":"Rerun Export","description":"Re-run export step for existing job.","operationId":"rerun_export_api_process_rerun__job_id__export_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_rerun_export_api_process_rerun__job_id__export_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process":{"post":{"tags":["process"],"summary":"Process Full Pipeline","description":"Full processing pipeline (non-streaming).\n\n`stop_after=\"clean\"` returns as soon as the cleaned lineart exists, without\nvectorizing. Callers that only need a preview (etches shows the lineart in\nthe product's engraving zone) save ~1s and a vector-service round trip; the\nSVG is not lost, it is produced later on demand by\nPOST /api/process/rerun/{job_id}/vectorize, which reads 06_cleaned off disk.","operationId":"process_full_pipeline_api_process_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_full_pipeline_api_process_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/results/{job_id}/{filename}":{"get":{"tags":["process"],"summary":"Get Result File","description":"Download a result file.\n\nThe site's download buttons add `?download=1`, which records the download\nin the audit log: previews load the same files, so a plain request says\nnothing about what visitors actually take away.\n\n`06_cleaned.bmp` and `08_<style>.bmp` (any style but color) are built from\nthe PNG of the same name on first request, and again whenever that PNG has\nbeen re-rendered.","operationId":"get_result_file_api_process_results__job_id___filename__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/fetch-image":{"post":{"tags":["process"],"summary":"Fetch Image From Url","description":"Fetch an image from URL (proxy to avoid CORS issues).\nUsed for drag & drop from internet and paste URL.","operationId":"fetch_image_from_url_api_process_fetch_image_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process/save-edited/{job_id}/{stage}":{"post":{"tags":["process"],"summary":"Save Edited Image","description":"Save an edited image for a specific stage.\n\nArgs:\n    job_id: Job ID\n    stage: Stage name (e.g., 'cleaned')\n    file: The edited image file\n\nReturns:\n    URL to the saved file","operationId":"save_edited_image_api_process_save_edited__job_id___stage__post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"stage","in":"path","required":true,"schema":{"type":"string","title":"Stage"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_save_edited_image_api_process_save_edited__job_id___stage__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manual/save":{"post":{"tags":["manual"],"summary":"Save Manual Edit","description":"Save manual edits from web canvas.\n\nExpects base64-encoded PNG from canvas.","operationId":"save_manual_edit_api_manual_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manual/export":{"post":{"tags":["manual"],"summary":"Export After Edit","description":"Export edited image for EZCAD.\n\nLooks for 'edited.png' in job folder, applies compose, exports.","operationId":"export_after_edit_api_manual_export_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manual/jobs":{"get":{"tags":["manual"],"summary":"List Jobs","description":"List all processing jobs.","operationId":"list_jobs_api_manual_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/manual/jobs/{job_id}":{"delete":{"tags":["manual"],"summary":"Delete Job","description":"Delete a job and all its files.","operationId":"delete_job_api_manual_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/panel":{"get":{"tags":["pro"],"summary":"Panel","description":"The panel, the hint under the free styles and the dialogs, which pro.js\nplaces into the page once there is a photo to draw from. They stay out of\nthe pages' HTML so search engines and AI crawlers read the free converter,\nnot prices and dialogs; /api/ is disallowed in robots.txt as well.","operationId":"panel_api_pro_panel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pro/warmup":{"post":{"tags":["pro"],"summary":"Warmup","description":"Wake the GPU worker. The page calls this when the AI tab is opened (the\nreason says how: the tab itself, the hint under a free style, the button\nof the preview card on the first result screen, or the return from\npaying) and then as a keep-alive while the panel stays open. `exp` is the\nbrowser's arm of the first-screen experiment.\n\nA logo or a drawing with nothing drawn yet is not drawn by itself, so\nopening the tab on one leaves the worker asleep: a visitor who draws it\nanyway waits for the cold start.\n\nWhile the home GPU is away, a visitor with paid access wakes the Modal\nworker in its place, and anyone else is told \"offline\".\n\nreason \"inline\" only asks, for arm \"b\" of the experiment, whether a\npreview may be drawn by itself on the first result screen: the answer\nsays whether the photo looks like a logo (`graphic`) and whether a worker\nis up (`worker` \"warm\"). It wakes nothing and counts no tab opening.","operationId":"warmup_api_pro_warmup_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_warmup_api_pro_warmup_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/state":{"get":{"tags":["pro"],"summary":"State","description":"Credits, whether the photo is unlocked, previews left today, the photo's renders, and whether it looks like a logo.","operationId":"state_api_pro_state_get","parameters":[{"name":"job_id","in":"query","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/generate":{"post":{"tags":["pro"],"summary":"Generate","description":"Render the next variant of a photo in a style, as Server-Sent Events:\n`status` (stage: starting, queued or drawing, with an estimate: `ahead`,\nthe renders before it, and `eta_s`, seconds to its picture), then\n`result` or `error`.\n\nThe stage is honest about the worker: \"starting\" when no request has\nreached it within the last minute, so the page can say the first render\ntakes longer. A new `status` follows whenever the render's place in the\nhome GPU's queue changes, or it is handed out to be drawn. A render the\nhome GPU drops half-way and Modal draws again gets a `status` too. `auto`\nmarks the first preview the page draws by itself, when the tab opens or,\nwith `via` \"inline\", on the first result screen (the experiment, `exp`\nthe browser's arm): that one waits behind every other render at home and\nis not queued at all when the home GPU is busy (flux.Priority).\n\nWhile the home GPU is away, a visitor without paid access gets 503\n{\"code\": \"offline\"} at once: no preview is taken, no human check asked\nfor, nothing queued.","operationId":"generate_api_pro_generate_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_generate_api_pro_generate_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/unlock":{"post":{"tags":["pro"],"summary":"Unlock","description":"Spend one credit on a photo. Unlocking it again, or after someone else did, costs nothing.","operationId":"unlock_api_pro_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/checkout":{"post":{"tags":["pro"],"summary":"Checkout","description":"Open a Stripe Checkout Session for a pack and return its URL.\n\nA visitor without a key gets a new one here, before paying: the page keeps\nit, so the credits have somewhere to land even if the buyer never comes\nback from Stripe. A visitor with a key tops it up.\n\nWhile the home GPU is away, only a visitor with paid access, who is drawn\non Modal meanwhile, can buy more: anyone else gets 503 {\"code\": \"offline\"}\nbefore a key is made.","operationId":"checkout_api_pro_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/checkout/{session_id}":{"get":{"tags":["pro"],"summary":"Checkout Status","description":"The page calls this on its return from Stripe: if the session is paid, its\ncredits are added now rather than whenever the webhook arrives.","operationId":"checkout_status_api_pro_checkout__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/webhook":{"post":{"tags":["pro"],"summary":"Stripe Webhook","description":"Stripe's report of a finished checkout: the source of truth for crediting a pack.","operationId":"stripe_webhook_api_pro_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pro/key":{"post":{"tags":["pro"],"summary":"Check Key","description":"Check a key typed in another browser; the page keeps it if it is valid.","operationId":"check_key_api_pro_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/ui":{"post":{"tags":["pro"],"summary":"Ui Event","description":"An event only the page knows of, for the funnel report. It comes from\nnavigator.sendBeacon as text/plain (no preflight), so the JSON is read here.","operationId":"ui_event_api_pro_ui_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pro/file/{job_id}/{name}":{"get":{"tags":["pro"],"summary":"Get File","description":"A render's file. Watermarked previews are public like every result file;\nthe HD PNG, SVG and BMP only once the photo is unlocked. The SVG and BMP\nare made on first request.","operationId":"get_file_api_pro_file__job_id___name__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pro/admin":{"get":{"tags":["pro"],"summary":"Admin","operationId":"admin_api_pro_admin_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Index","description":"Render main page.","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guide":{"get":{"summary":"Guide","description":"Render user guide page.","operationId":"guide_guide_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/about":{"get":{"summary":"About","description":"Render About page (E-E-A-T signal: who runs the site and how it works).","operationId":"about_about_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/contact":{"get":{"summary":"Contact","description":"Render Contact page.","operationId":"contact_contact_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"summary":"Terms","description":"Render Terms of Service page.","operationId":"terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/privacy":{"get":{"summary":"Privacy","description":"Render Privacy Policy page.","operationId":"privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-vector":{"get":{"summary":"Seo Photo To Vector","operationId":"seo_photo_to_vector_photo_to_vector_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-svg":{"get":{"summary":"Seo Photo To Svg","operationId":"seo_photo_to_svg_photo_to_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-lineart":{"get":{"summary":"Seo Photo To Lineart","operationId":"seo_photo_to_lineart_photo_to_lineart_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-silhouette":{"get":{"summary":"Seo Photo To Silhouette","operationId":"seo_photo_to_silhouette_photo_to_silhouette_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-stencil":{"get":{"summary":"Seo Photo To Stencil","operationId":"seo_photo_to_stencil_photo_to_stencil_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-outline":{"get":{"summary":"Seo Photo To Outline","operationId":"seo_photo_to_outline_photo_to_outline_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/photo-to-coloring-page":{"get":{"summary":"Seo Photo To Coloring Page","operationId":"seo_photo_to_coloring_page_photo_to_coloring_page_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/image-to-svg":{"get":{"summary":"Seo Image To Svg","operationId":"seo_image_to_svg_image_to_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/image-to-vector":{"get":{"summary":"Seo Image To Vector","operationId":"seo_image_to_vector_image_to_vector_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/png-to-svg":{"get":{"summary":"Seo Png To Svg","operationId":"seo_png_to_svg_png_to_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/jpg-to-svg":{"get":{"summary":"Seo Jpg To Svg","operationId":"seo_jpg_to_svg_jpg_to_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/laser-engraving":{"get":{"summary":"Seo Laser Engraving","operationId":"seo_laser_engraving_laser_engraving_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/cnc-cutting":{"get":{"summary":"Seo Cnc Cutting","operationId":"seo_cnc_cutting_cnc_cutting_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/cricut":{"get":{"summary":"Seo Cricut","operationId":"seo_cricut_cricut_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tattoo-stencil":{"get":{"summary":"Seo Tattoo Stencil","operationId":"seo_tattoo_stencil_tattoo_stencil_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/screen-printing":{"get":{"summary":"Seo Screen Printing","operationId":"seo_screen_printing_screen_printing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/glowforge":{"get":{"summary":"Seo Glowforge","operationId":"seo_glowforge_glowforge_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/lightburn":{"get":{"summary":"Seo Lightburn","operationId":"seo_lightburn_lightburn_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ezcad":{"get":{"summary":"Seo Ezcad","operationId":"seo_ezcad_ezcad_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/xtool":{"get":{"summary":"Seo Xtool","operationId":"seo_xtool_xtool_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/wood-burning":{"get":{"summary":"Seo Wood Burning","operationId":"seo_wood_burning_wood_burning_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/vinyl-cutting":{"get":{"summary":"Seo Vinyl Cutting","operationId":"seo_vinyl_cutting_vinyl_cutting_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/es/":{"get":{"summary":"Es Home","operationId":"es_home_es__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/es/png-a-svg":{"get":{"summary":"Es Png To Svg","operationId":"es_png_to_svg_es_png_a_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/es/convertir-foto-en-dibujo":{"get":{"summary":"Es Photo To Lineart","operationId":"es_photo_to_lineart_es_convertir_foto_en_dibujo_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pt/":{"get":{"summary":"Pt Home","operationId":"pt_home_pt__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pt/png-para-svg":{"get":{"summary":"Pt Png To Svg","operationId":"pt_png_to_svg_pt_png_para_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pt/transformar-foto-em-desenho":{"get":{"summary":"Pt Photo To Lineart","operationId":"pt_photo_to_lineart_pt_transformar_foto_em_desenho_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pt/foto-para-colorir":{"get":{"summary":"Pt Photo To Coloring Page","operationId":"pt_photo_to_coloring_page_pt_foto_para_colorir_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/es/job/{job_id}":{"get":{"summary":"Es Job","operationId":"es_job_es_job__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pt/job/{job_id}":{"get":{"summary":"Pt Job","operationId":"pt_job_pt_job__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blog":{"get":{"summary":"Blog Index","description":"Blog listing page.","operationId":"blog_index_blog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/{slug}":{"get":{"summary":"Blog Post","description":"Individual blog post page.","operationId":"blog_post_blog__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap","description":"Generate XML sitemap for all pages.","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response"}}}},"/robots.txt":{"get":{"summary":"Robots","description":"Generate robots.txt.\n\n/job/ pages are not disallowed on purpose: they carry `noindex`, and a\ncrawler that may not fetch a page never sees it. Shared job links showed\nup in Google results while they were blocked here (GSC, July 2026).","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response"}}}},"/llms.txt":{"get":{"summary":"Llms Txt","description":"Markdown index of the site for LLMs and AI search crawlers.\n\nGenerated from the same page data as the sitemap, so adding a landing page\nor blog post updates this file automatically.","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response"}}}},"/{key}.txt":{"get":{"summary":"Indexnow Key File","description":"Serve the IndexNow key verification file (Bing/Yandex/Seznam).","operationId":"indexnow_key_file__key__txt_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","description":"Health check endpoint.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/job/{job_id}":{"get":{"summary":"View Job","description":"View a specific job by ID.\n\nAlways returns the HTML page — even if server-side files have been\ncleaned up.  The client-side JS will try IndexedDB first (offline\ncopy) and only then fall back to the server API.","operationId":"view_job_job__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/job/{job_id}":{"get":{"summary":"Get Job Info","description":"Get job files info.","operationId":"get_job_info_api_job__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_add_outline_api_process_add_outline__job_id__post":{"properties":{"thickness":{"type":"integer","title":"Thickness","default":2},"offset":{"type":"integer","title":"Offset","default":0}},"type":"object","title":"Body_add_outline_api_process_add_outline__job_id__post"},"Body_clean_region_api_process_clean_region__job_id__post":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"source":{"type":"string","title":"Source","default":"masked"},"current_image":{"type":"string","contentMediaType":"application/octet-stream","title":"Current Image"},"adaptive_block_size":{"type":"integer","title":"Adaptive Block Size","default":11},"adaptive_c":{"type":"integer","title":"Adaptive C","default":4},"morph_kernel_size":{"type":"integer","title":"Morph Kernel Size","default":2},"morph_close_iterations":{"type":"integer","title":"Morph Close Iterations","default":1},"morph_open_iterations":{"type":"integer","title":"Morph Open Iterations","default":0},"min_component_size":{"type":"integer","title":"Min Component Size","default":60},"thin_iterations":{"type":"integer","title":"Thin Iterations","default":0}},"type":"object","required":["x","y","width","height"],"title":"Body_clean_region_api_process_clean_region__job_id__post"},"Body_generate_api_pro_generate_post":{"properties":{"job_id":{"type":"string","title":"Job Id"},"style":{"type":"string","title":"Style","default":"engrave"},"turnstile":{"type":"string","title":"Turnstile","default":""},"auto":{"type":"boolean","title":"Auto","default":false},"via":{"type":"string","title":"Via","default":""},"exp":{"type":"string","title":"Exp","default":""}},"type":"object","required":["job_id"],"title":"Body_generate_api_pro_generate_post"},"Body_process_full_pipeline_api_process_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mode":{"type":"string","title":"Mode","default":"controlnet"},"output_format":{"type":"string","title":"Output Format","default":"bmp"},"invert":{"type":"boolean","title":"Invert","default":false},"auto_detect":{"type":"boolean","title":"Auto Detect","default":true},"subject_type":{"type":"string","title":"Subject Type","default":"human"},"stop_after":{"type":"string","title":"Stop After","default":""}},"type":"object","required":["file"],"title":"Body_process_full_pipeline_api_process_post"},"Body_process_stream_api_process_stream_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mode":{"type":"string","title":"Mode","default":"controlnet"},"output_format":{"type":"string","title":"Output Format","default":"bmp"},"invert":{"type":"boolean","title":"Invert","default":false},"auto_detect":{"type":"boolean","title":"Auto Detect","default":true},"subject_type":{"type":"string","title":"Subject Type","default":"human"},"style":{"type":"string","title":"Style","default":"lineart"},"style_params":{"type":"string","title":"Style Params","default":""},"source_page":{"type":"string","title":"Source Page","default":""},"crop":{"type":"string","title":"Crop","default":""},"exp":{"type":"string","title":"Exp","default":""}},"type":"object","required":["file"],"title":"Body_process_stream_api_process_stream_post"},"Body_rerun_applymask_api_process_rerun__job_id__applymask_post":{"properties":{"mask_threshold":{"type":"integer","title":"Mask Threshold","default":102}},"type":"object","title":"Body_rerun_applymask_api_process_rerun__job_id__applymask_post"},"Body_rerun_clean_api_process_rerun__job_id__clean_post":{"properties":{"adaptive_block_size":{"type":"integer","title":"Adaptive Block Size","default":11},"adaptive_c":{"type":"integer","title":"Adaptive C","default":4},"morph_kernel_size":{"type":"integer","title":"Morph Kernel Size","default":2},"morph_close_iterations":{"type":"integer","title":"Morph Close Iterations","default":1},"morph_open_iterations":{"type":"integer","title":"Morph Open Iterations","default":0},"min_component_size":{"type":"integer","title":"Min Component Size","default":60},"thin_iterations":{"type":"integer","title":"Thin Iterations","default":0}},"type":"object","title":"Body_rerun_clean_api_process_rerun__job_id__clean_post"},"Body_rerun_export_api_process_rerun__job_id__export_post":{"properties":{"output_format":{"type":"string","title":"Output Format","default":"bmp"},"invert":{"type":"boolean","title":"Invert","default":false}},"type":"object","title":"Body_rerun_export_api_process_rerun__job_id__export_post"},"Body_rerun_lineart_api_process_rerun__job_id__lineart_post":{"properties":{"mode":{"type":"string","title":"Mode","default":"controlnet"},"coarse":{"type":"boolean","title":"Coarse","default":false},"detect_resolution":{"type":"integer","title":"Detect Resolution","default":512}},"type":"object","title":"Body_rerun_lineart_api_process_rerun__job_id__lineart_post"},"Body_rerun_mask_api_process_rerun__job_id__mask_post":{"properties":{"blur_size":{"type":"integer","title":"Blur Size","default":3},"dilate_size":{"type":"integer","title":"Dilate Size","default":10},"closing_size":{"type":"integer","title":"Closing Size","default":5},"edited_mask":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Mask"}},"type":"object","title":"Body_rerun_mask_api_process_rerun__job_id__mask_post"},"Body_rerun_normalized_api_process_rerun__job_id__normalized_post":{"properties":{"denoise_strength":{"type":"number","title":"Denoise Strength","default":0.1},"gamma":{"type":"number","title":"Gamma","default":0.95},"shadows":{"type":"number","title":"Shadows","default":0.15},"contrast":{"type":"number","title":"Contrast","default":0.05},"blur_sigma":{"type":"number","title":"Blur Sigma","default":0.3},"grayscale":{"type":"boolean","title":"Grayscale","default":true}},"type":"object","title":"Body_rerun_normalized_api_process_rerun__job_id__normalized_post"},"Body_rerun_style_api_process_rerun__job_id__style_post":{"properties":{"style":{"type":"string","title":"Style"},"style_params":{"type":"string","title":"Style Params","default":""}},"type":"object","required":["style"],"title":"Body_rerun_style_api_process_rerun__job_id__style_post"},"Body_rerun_vectorize_api_process_rerun__job_id__vectorize_post":{"properties":{"skip_clean":{"type":"boolean","title":"Skip Clean","default":false},"vectorizer":{"type":"string","title":"Vectorizer","default":"vtracer"},"color_count":{"type":"integer","title":"Color Count","default":8},"threshold":{"type":"number","title":"Threshold","default":0.5},"min_area":{"type":"integer","title":"Min Area","default":50},"simplify_tolerance":{"type":"number","title":"Simplify Tolerance","default":2.0},"optimize_svg":{"type":"boolean","title":"Optimize Svg","default":true}},"type":"object","title":"Body_rerun_vectorize_api_process_rerun__job_id__vectorize_post"},"Body_save_edited_image_api_process_save_edited__job_id___stage__post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_save_edited_image_api_process_save_edited__job_id___stage__post"},"Body_warmup_api_pro_warmup_post":{"properties":{"job_id":{"type":"string","title":"Job Id","default":""},"reason":{"type":"string","title":"Reason","default":"tab"},"exp":{"type":"string","title":"Exp","default":""}},"type":"object","title":"Body_warmup_api_pro_warmup_post"},"CheckoutBody":{"properties":{"pack":{"type":"string","title":"Pack"},"job_id":{"type":"string","title":"Job Id","default":""}},"type":"object","required":["pack"],"title":"CheckoutBody"},"EditRequest":{"properties":{"job_id":{"type":"string","title":"Job Id"},"image_data":{"type":"string","title":"Image Data"},"stage":{"type":"string","title":"Stage","default":"edited"}},"type":"object","required":["job_id","image_data"],"title":"EditRequest","description":"Request body for manual edit."},"ExportRequest":{"properties":{"job_id":{"type":"string","title":"Job Id"},"format":{"type":"string","title":"Format","default":"bmp"},"invert":{"type":"boolean","title":"Invert","default":false}},"type":"object","required":["job_id"],"title":"ExportRequest","description":"Request for export after manual edit."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JobBody":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"JobBody"},"KeyBody":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"KeyBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}