ComfyUI Node
π± Gemini Portrait
Describes a character. When no image connected, output is crafted by the parameters. If image input is active, prompt is crafted from the image details. If image input is active and reconstruct is true, prompt is crafted from the image details but parameters will override the attributes fetched from the image.
π± Gemini Portrait
- face
- body
- form
- cloth
- makeup
- response
- traits
βtext_promptConstruct a prompt describing a character in detail.βΊ
βidentityFEMININEβΊ
βframingportraitβΊ
βapi_keyβΊ
βmodelgemini-2.5-flashβΊ
βmax_tokens5000βΊ
βtemperature0.7βΊ
βseed0βΊ
βuse_imagefalseβΊ
βreconstructfalseβΊ
βimageβΎβΊ
CategoryArtha/LLM/GEMINI
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| text_prompt | STRING | Construct a prompt describing a character in detail. | β |
| identity | COMBO | FEMININE | 2 options: FEMININE, MASCULINE |
| framing | COMBO | portrait | 5 options: headshot, portrait, medium shot, wide shot, full body shot |
| api_key | STRING | API key will be visible in plain text. Consider adding your api to the api.json located inside this custom node folder. | |
| model | COMBO | gemini-2.5-flash | 5 options: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.0-flash, gemini-2.0-flash-lite |
| max_tokens | INT | 50001β8192 | For Gemini models, a token is equivalent to about 4 characters. 100 tokens is equal to about 60-80 English words. |
| temperature | FLOAT | 0.70β2 | A temperature of 0 means only the most likely tokens are selected, and there's no randomness. Conversely, a high temperature injects a high degree of randomness into the tokens selected by the model, leading to more unexpected, surprising model responses. |
| seed | INT | 00β18446744073709550000 | β |
| use_image | BOOLEAN | false | β |
| reconstruct | BOOLEAN | false | β |
| image | COMBO | 1 options: example.png | |
| faceopt | ARTHAFACE | β | |
| bodyopt | ARTHABODY | β | |
| formopt | ARTHAFORM | β | |
| clothopt | ARTHACLOTH | β | |
| makeupopt | ARTHAMAKEUP | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| response | STRING | β |
| traits | STRING | β |