zust-ai
/
photoshift
- Public
- 10.6K runs
Run zust-ai/photoshift with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
is_heartbeat |
boolean
|
False
|
Check if Server Alive
|
with_detail |
boolean
|
False
|
Detailed Output
|
pipe_type |
string
|
photoshift
|
photoshift, upscale, retouch
|
pikeya |
string
|
|
Request Type
|
is_premium |
boolean
|
False
|
Is this a pro user?
|
seed |
integer
|
-1
|
Seed
|
photoshift_cleanup_background |
boolean
|
True
|
PhotoShift (Clean source image subject)
|
photoshift_scene |
string
|
{"image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_scene.png"}
|
Photoshift scene image
|
photoshift_scene_subject |
string
|
[{"left": 0, "top": 0, "scale": 0.0009765625, "image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_mask.png"}]
|
Photoshift scene subject(s) image
|
photoshift_elements |
string
|
[{"left": 0, "top": 0, "scale": 0.0009765625, "image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_elem.png"}]
|
Photoshift elements
|
photoshift_elements_erode |
integer
|
10
|
Erode element mask
|
photoshift_subject |
string
|
[{"left": 0, "top": 0, "scale": 0.0009765625, "image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_sub.png"}]
|
Photoshift subject(s) image
|
photoshift_prompt |
string
|
|
Photoshift prompt
|
photoshift_noise |
number
|
0.65
|
Add noise to masked area
|
photoshift_num_outputs |
integer
|
1
|
Number of generated images
|
photoshift_reference |
number
|
0.5
|
IP-Adapter reference scale
|
photoshift_prompt_strength |
number
|
5
|
BLIP Caption strength
|
photoshift_resize |
boolean
|
True
|
PhotoShift (If resize the scene image)
|
upscale_url |
string
|
{"image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/perfume_scene2.png"}
|
Upscale the Image
|
upscale_by |
integer
|
2
|
Upscaling factor
|
sam_url |
string
|
{"image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/perfume_scene2.png"}
|
Get SAM Embeddings
|
enhance_scene |
string
|
{"image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_ps_scene.png"}
|
Enhanxe scene image
|
enhance_subject |
string
|
[{"top": 0, "left": 0, "scale": 0.0009765625, "image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_ps_sub.png"}]
|
Subject image (for overlay)
|
enhance_subject_mask |
string
|
{"image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_ps_mask.png"}
|
Enhance subject mask (for SAM, binary image)
|
enhance_mask |
string
|
{"top": 0, "left": 0, "scale": 0.0009765625, "image_url": "https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_mask.png"}
|
Mask image (for inpaint)
|
enhance_noise |
number
|
0.65
|
Noise for img2img
|
enhance_prompt |
string
|
|
Enhance prompt
|
enhance_prompt_strength |
number
|
5
|
Enhance prompt strength
|
enhance_reference |
number
|
0.35
|
IP-Adapter reference
|
enhance_use_full_canny |
boolean
|
True
|
Use full canny or not?
|
enhance_num_outputs |
integer
|
1
|
Number of generated images
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 5,
"description": "Seed"
},
"pikeya": {
"type": "string",
"title": "Pikeya",
"default": "",
"x-order": 3,
"description": "Request Type"
},
"sam_url": {
"type": "string",
"title": "Sam Url",
"default": "{\"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/perfume_scene2.png\"}",
"x-order": 20,
"description": "Get SAM Embeddings"
},
"pipe_type": {
"type": "string",
"title": "Pipe Type",
"default": "photoshift",
"x-order": 2,
"description": "photoshift, upscale, retouch"
},
"is_premium": {
"type": "boolean",
"title": "Is Premium",
"default": false,
"x-order": 4,
"description": "Is this a pro user?"
},
"upscale_by": {
"type": "integer",
"title": "Upscale By",
"default": 2,
"x-order": 19,
"description": "Upscaling factor"
},
"upscale_url": {
"type": "string",
"title": "Upscale Url",
"default": "{\"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/perfume_scene2.png\"}",
"x-order": 18,
"description": "Upscale the Image"
},
"with_detail": {
"type": "boolean",
"title": "With Detail",
"default": false,
"x-order": 1,
"description": "Detailed Output"
},
"enhance_mask": {
"type": "string",
"title": "Enhance Mask",
"default": "{\"top\": 0, \"left\": 0, \"scale\": 0.0009765625, \"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_mask.png\"}",
"x-order": 24,
"description": "Mask image (for inpaint)"
},
"is_heartbeat": {
"type": "boolean",
"title": "Is Heartbeat",
"default": false,
"x-order": 0,
"description": "Check if Server Alive"
},
"enhance_noise": {
"type": "number",
"title": "Enhance Noise",
"default": 0.65,
"x-order": 25,
"description": "Noise for img2img"
},
"enhance_scene": {
"type": "string",
"title": "Enhance Scene",
"default": "{\"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_ps_scene.png\"}",
"x-order": 21,
"description": "Enhanxe scene image"
},
"enhance_prompt": {
"type": "string",
"title": "Enhance Prompt",
"default": "",
"x-order": 26,
"description": "Enhance prompt"
},
"enhance_subject": {
"type": "string",
"title": "Enhance Subject",
"default": "[{\"top\": 0, \"left\": 0, \"scale\": 0.0009765625, \"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_ps_sub.png\"}]",
"x-order": 22,
"description": "Subject image (for overlay)"
},
"photoshift_noise": {
"type": "number",
"title": "Photoshift Noise",
"default": 0.65,
"x-order": 13,
"description": "Add noise to masked area"
},
"photoshift_scene": {
"type": "string",
"title": "Photoshift Scene",
"default": "{\"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_scene.png\"}",
"x-order": 7,
"description": "Photoshift scene image"
},
"enhance_reference": {
"type": "number",
"title": "Enhance Reference",
"default": 0.35,
"x-order": 28,
"description": "IP-Adapter reference"
},
"photoshift_prompt": {
"type": "string",
"title": "Photoshift Prompt",
"default": "",
"x-order": 12,
"description": "Photoshift prompt"
},
"photoshift_resize": {
"type": "boolean",
"title": "Photoshift Resize",
"default": true,
"x-order": 17,
"description": "PhotoShift (If resize the scene image)"
},
"photoshift_subject": {
"type": "string",
"title": "Photoshift Subject",
"default": "[{\"left\": 0, \"top\": 0, \"scale\": 0.0009765625, \"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_sub.png\"}]",
"x-order": 11,
"description": "Photoshift subject(s) image"
},
"enhance_num_outputs": {
"type": "integer",
"title": "Enhance Num Outputs",
"default": 1,
"x-order": 30,
"description": "Number of generated images"
},
"photoshift_elements": {
"type": "string",
"title": "Photoshift Elements",
"default": "[{\"left\": 0, \"top\": 0, \"scale\": 0.0009765625, \"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_elem.png\"}]",
"x-order": 9,
"description": "Photoshift elements"
},
"enhance_subject_mask": {
"type": "string",
"title": "Enhance Subject Mask",
"default": "{\"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/enhance_ps_mask.png\"}",
"x-order": 23,
"description": "Enhance subject mask (for SAM, binary image)"
},
"photoshift_reference": {
"type": "number",
"title": "Photoshift Reference",
"default": 0.5,
"x-order": 15,
"description": "IP-Adapter reference scale"
},
"enhance_use_full_canny": {
"type": "boolean",
"title": "Enhance Use Full Canny",
"default": true,
"x-order": 29,
"description": "Use full canny or not?"
},
"photoshift_num_outputs": {
"type": "integer",
"title": "Photoshift Num Outputs",
"default": 1,
"x-order": 14,
"description": "Number of generated images"
},
"enhance_prompt_strength": {
"type": "number",
"title": "Enhance Prompt Strength",
"default": 5,
"x-order": 27,
"description": "Enhance prompt strength"
},
"photoshift_scene_subject": {
"type": "string",
"title": "Photoshift Scene Subject",
"default": "[{\"left\": 0, \"top\": 0, \"scale\": 0.0009765625, \"image_url\": \"https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/ps/elem/ps_elem_mask.png\"}]",
"x-order": 8,
"description": "Photoshift scene subject(s) image"
},
"photoshift_elements_erode": {
"type": "integer",
"title": "Photoshift Elements Erode",
"default": 10,
"x-order": 10,
"description": "Erode element mask"
},
"photoshift_prompt_strength": {
"type": "number",
"title": "Photoshift Prompt Strength",
"default": 5,
"x-order": 16,
"description": "BLIP Caption strength"
},
"photoshift_cleanup_background": {
"type": "boolean",
"title": "Photoshift Cleanup Background",
"default": true,
"x-order": 6,
"description": "PhotoShift (Clean source image subject)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}