catio-apps
/
cog-photoaistudio-generate-v2-pro
https://api.catioapps.com. Take a picture of your face and instantly get any profile picture you want. Only 1 photo, no training needed.
- Public
- 46.3K runs
- License
Run catio-apps/cog-photoaistudio-generate-v2-pro 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 |
---|---|---|---|
face_image |
string
|
The input image, for example a photo of your face.
|
|
face_image2 |
string
|
The input image, for example a photo of your face. (optional)
|
|
face_image3 |
string
|
The input image, for example a photo of your face. (optional)
|
|
face_image4 |
string
|
The input image, for example a photo of your face. (optional)
|
|
gender |
string
(enum)
|
male
Options: male, female |
The gender to use
|
prompt |
string
|
A photo of a person img
|
Prompt. Example: 'a photo of a man/woman img'. The phrase 'img' is the trigger word.
|
style_name |
string
(enum)
|
(No style)
Options: (No style), Cinematic, Disney Charactor, Digital Art, Photographic, Fantasy art, Neonpunk, Enhance, Comic book, Lowpoly, Line art |
Style template. The style template will add a style-specific prompt and negative prompt to the user's prompt.
|
negative_prompt |
string
|
nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
|
Negative Prompt. The negative prompt should NOT contain the trigger word.
|
num_steps |
integer
|
20
Min: 1 Max: 100 |
Number of sample steps
|
style_strength_ratio |
number
|
25
Max: 100 |
Style strength (%)
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of output images
|
guidance_scale |
number
|
5
Min: 1 Max: 10 |
Guidance scale. A guidance scale of 1 corresponds to doing no classifier free guidance.
|
scheduler |
string
(enum)
|
DPM++ SDE Karras
Options: DPM++ SDE Karras, DPM++ 2M SDE Karras, UniPC, Heun, DDIM, DPM2 a, DPM2 a Karras, DPM SDE, DDPM, DPM++ SDE, LMS, LMS Karras, Euler a, Euler, PNDM, DPM2, DPM2 Karras, DEIS, DPM++ 2M, DPM++ 2M Karras, DPM++ 2M SDE |
The scheduler to use
|
enable_fix_face |
boolean
|
True
|
Enable enable_fix_face
|
width |
integer
|
768
|
Width
|
height |
integer
|
1152
|
Height
|
seed |
integer
|
Max: 9223372036854776000 |
Seed. Leave blank to use a random number
|
slider_add_detail |
number
|
2
Min: -4 Max: 4 |
Slider add detail
|
slider_viewer |
number
|
5
Min: -4 Max: 5 |
Slider viewer
|
slider_hands |
number
|
0.5
Min: -4 Max: 4 |
Slider hands
|
slider_lighting |
number
|
2
Min: -4 Max: 4 |
Slider lighting
|
slider_zoom |
number
|
0.5
Min: -4 Max: 4 |
Slider zoom
|
{
"type": "object",
"title": "Input",
"required": [
"face_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 9223372036854776000,
"minimum": 0,
"x-order": 16,
"description": "Seed. Leave blank to use a random number"
},
"width": {
"type": "integer",
"title": "Width",
"default": 768,
"x-order": 14,
"description": "Width"
},
"gender": {
"enum": [
"male",
"female"
],
"type": "string",
"title": "gender",
"description": "The gender to use",
"default": "male",
"x-order": 4
},
"height": {
"type": "integer",
"title": "Height",
"default": 1152,
"x-order": 15,
"description": "Height"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A photo of a person img",
"x-order": 5,
"description": "Prompt. Example: 'a photo of a man/woman img'. The phrase 'img' is the trigger word."
},
"num_steps": {
"type": "integer",
"title": "Num Steps",
"default": 20,
"maximum": 100,
"minimum": 1,
"x-order": 8,
"description": "Number of sample steps"
},
"scheduler": {
"enum": [
"DPM++ SDE Karras",
"DPM++ 2M SDE Karras",
"UniPC",
"Heun",
"DDIM",
"DPM2 a",
"DPM2 a Karras",
"DPM SDE",
"DDPM",
"DPM++ SDE",
"LMS",
"LMS Karras",
"Euler a",
"Euler",
"PNDM",
"DPM2",
"DPM2 Karras",
"DEIS",
"DPM++ 2M",
"DPM++ 2M Karras",
"DPM++ 2M SDE"
],
"type": "string",
"title": "scheduler",
"description": "The scheduler to use",
"default": "DPM++ SDE Karras",
"x-order": 12
},
"face_image": {
"type": "string",
"title": "Face Image",
"format": "uri",
"x-order": 0,
"description": "The input image, for example a photo of your face."
},
"style_name": {
"enum": [
"(No style)",
"Cinematic",
"Disney Charactor",
"Digital Art",
"Photographic",
"Fantasy art",
"Neonpunk",
"Enhance",
"Comic book",
"Lowpoly",
"Line art"
],
"type": "string",
"title": "style_name",
"description": "Style template. The style template will add a style-specific prompt and negative prompt to the user's prompt.",
"default": "(No style)",
"x-order": 6
},
"face_image2": {
"type": "string",
"title": "Face Image2",
"format": "uri",
"x-order": 1,
"description": "The input image, for example a photo of your face. (optional)"
},
"face_image3": {
"type": "string",
"title": "Face Image3",
"format": "uri",
"x-order": 2,
"description": "The input image, for example a photo of your face. (optional)"
},
"face_image4": {
"type": "string",
"title": "Face Image4",
"format": "uri",
"x-order": 3,
"description": "The input image, for example a photo of your face. (optional)"
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 10,
"description": "Number of output images"
},
"slider_zoom": {
"type": "number",
"title": "Slider Zoom",
"default": 0.5,
"maximum": 4,
"minimum": -4,
"x-order": 21,
"description": "Slider zoom"
},
"slider_hands": {
"type": "number",
"title": "Slider Hands",
"default": 0.5,
"maximum": 4,
"minimum": -4,
"x-order": 19,
"description": "Slider hands"
},
"slider_viewer": {
"type": "number",
"title": "Slider Viewer",
"default": 5,
"maximum": 5,
"minimum": -4,
"x-order": 18,
"description": "Slider viewer"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 5,
"maximum": 10,
"minimum": 1,
"x-order": 11,
"description": "Guidance scale. A guidance scale of 1 corresponds to doing no classifier free guidance."
},
"enable_fix_face": {
"type": "boolean",
"title": "Enable Fix Face",
"default": true,
"x-order": 13,
"description": "Enable enable_fix_face"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry",
"x-order": 7,
"description": "Negative Prompt. The negative prompt should NOT contain the trigger word."
},
"slider_lighting": {
"type": "number",
"title": "Slider Lighting",
"default": 2,
"maximum": 4,
"minimum": -4,
"x-order": 20,
"description": "Slider lighting"
},
"slider_add_detail": {
"type": "number",
"title": "Slider Add Detail",
"default": 2,
"maximum": 4,
"minimum": -4,
"x-order": 17,
"description": "Slider add detail"
},
"style_strength_ratio": {
"type": "number",
"title": "Style Strength Ratio",
"default": 25,
"maximum": 100,
"minimum": 0,
"x-order": 9,
"description": "Style strength (%)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}