AI Photo Studio
Endpoints
Photo Studio 7
What is the AI Photo Studio API?
Generative visual AI studio: background removal, clothes segmentation, outpainting, portrait expressions, and hairstyles.
AI Photo Studio API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet — no separate account or contract with the provider.
AI Photo Studio API endpoints
- POST
/v1/remove-bg$0.01 / callRemove Background
Isolate subjects and automatically remove background from an image.
- POST
/v1/restore-image$0.01 / callRestore Image
High-definition image quality restoration and denoising.
- POST
/v1/outpaint$0.01 / callAI Outpainting
Expand canvas boundaries beyond the original frame using generative AI. Exlusive field *oneOf*: - `expand_ratio`: Expands the image canvas uniformly on all sides using a single ratio value. - `free_expand_ratio`: Expands the image canvas independently on each side using per-side ratio values. Use this when the subject is off-center or asymmetric padding is required. - `free_expand_pixel`: Expands the image canvas by an absolute pixel count on each side. Use this when you need precise control over the output image dimensions.
- POST
/v1/segment-clothes$0.01 / callSegment Clothing & Apparel
Detect, isolate, and extract apparel categories and segmentation masks.
- POST
/v1/expression$0.01 / callGenerate Facial Expression
Modify portrait expressions with natural smiles, laughs, and dimple effects.
- POST
/v1/hairstyle$0.01 / callHairstyle Transformation
Apply virtual haircuts, colors, and styling variations to portrait photos. List `hair_type`: [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '17', '5-2', '5-3', '5-7', '5-19', '5-21', '13-3', '13-4', '13-5', '6-1', '7-4', '7-5', '8-1', '8-19', '8-21', '9-3', '9-4', '9-6', '9-7', '9-11', '9-12', '9-13', '9-17', '9-22', '9-25', '15-17', '15-18', '20-11', '20-12', '20-13', 'mail_0', 'mail_1', 'mail_2', 'mail_3', 'mail_4', 'mail_5', 'mail_6', '1_II', '2_II', '5_II', '6_II', '7_II', '10_II', '11_II', '13_II', '15_II', '17_II', '0_II', '3_II', '4_II', '8_II', '9_II', '12_II', '14_II', '21_II', '22_II', '23_II', '24_II', '25_II', '26_II', '27_II', '28_II', '29_II', '30_II', 'mail_0_II', 'mail_1_II', 'mail_2_II', 'mail_3_II', 'mail_4_II', 'mail_5_II', 'mail_6_II' ]
- GET
/v1/taskGet Task Status
Query processing status and download media for an asynchronous task. Free of charge.
Frequently asked questions about AI Photo Studio API
How does synchronous vs asynchronous task execution work?
Send sync_timeout (e.g. 30 seconds) to wait for the completed image. For longer pipelines, pass sync_timeout: -1 to receive an immediate task_id and poll /v1/task.
Does polling /v1/task consume my plan quota?
No. The /v1/task status endpoint is configured at 0 edits and is completely free to poll.
What apparel categories can clothes segmentation isolate?
It detects tops, dresses, coats, pants, skirts, shoes, bags, accessories, hair, face, and generates clean individual alpha masks.
How do outpainting expansion modes work?
You can specify a uniform expansion ratio (e.g. 0.5 for 200% canvas size), independent per-side ratios, or exact pixel padding counts.
How are failed requests billed?
Any failed or invalid request returning 4xx or 5xx bills 0 edits. Units are only deducted for successful 200 responses.