ComfyUI Node
Gemini Structured Output
A ComfyUI node in π€ Gemini with 20 inputs and 4 outputs.
Gemini Structured Output
- image
- structured_output
- raw_json
- debug_request_sent
- debug_response_received
βpromptββΊ
βapi_keyβΊ
βmodelgemini-2.0-flashβΊ
βoutput_modejson_schemaβΊ
βschema_json{
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"},
"email": {"type": "string"}
},
"required": ["name", "age"]
}βΊ
βtemperature0.70βΊ
βmax_output_tokens1024βΊ
βseed0βΊ
βsystem_instructionsβΊ
βenum_options["option1", "option2", "option3"]βΊ
βtop_p0.95βΊ
βtop_k64βΊ
βproperty_orderingβΊ
βstop_sequencesβΊ
βpresence_penalty0.0βΊ
βfrequency_penalty0.0βΊ
βresponse_logprobsfalseβΊ
βlogprobs0βΊ
βuse_json_schemafalseβΊ
Categoryπ€ Gemini
Inputs (20)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | β | |
| api_key | STRING | β | |
| model | STRING | gemini-2.0-flash | β |
| output_mode | COMBO | json_schema | 2 options: json_schema, enum |
| schema_json | STRING | { "type": "object", "properties": { "name": {"type": "string"}, "age": {"type": "integer"}, "email": {"type": "string"} }, "required": ["name", "age"] } | β |
| temperature | FLOAT | 0.700β1 | β |
| max_output_tokens | INT | 102464β8192 | β |
| seed | INT | 00β2147483647 | β |
| system_instructionsopt | STRING | β | |
| imageopt | IMAGE | β | |
| enum_optionsopt | STRING | ["option1", "option2", "option3"] | β |
| top_popt | FLOAT | 0.950β1 | β |
| top_kopt | INT | 641β100 | β |
| property_orderingopt | STRING | β | |
| stop_sequencesopt | STRING | β | |
| presence_penaltyopt | FLOAT | 0.0-2β2 | β |
| frequency_penaltyopt | FLOAT | 0.0-2β2 | β |
| response_logprobsopt | BOOLEAN | false | β |
| logprobsopt | INT | 00β10 | β |
| use_json_schemaopt | BOOLEAN | false | β |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| structured_output | STRING | β |
| raw_json | STRING | β |
| debug_request_sent | STRING | β |
| debug_response_received | STRING | β |