ComfyUI Node
Gemini Structured Output (JSON)
A ComfyUI node in API Toolkit/Gemini/Text with 7 inputs and 1 output.
Gemini Structured Output (JSON)
- json_output
◄api_key►
◄modelgemini-2.5-flash►
◄custom_model►
◄prompt►
◄json_schema{
"type": "object",
"properties": {
"result": {"type": "string"}
}
}►
◄system_instruction►
◄temperature0.30►
CategoryAPI Toolkit/Gemini/Text
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | Gemini API key. Leave blank to use GEMINI_API_KEY env var. | |
| model | COMBO | gemini-2.5-flash | Gemini model for structured output. |
| custom_model | STRING | Override with a custom model ID. | |
| prompt | STRING | The prompt describing what data to extract/generate. | |
| json_schema | STRING | { "type": "object", "properties": { "result": {"type": "string"} } } | JSON Schema that constrains the model output format. |
| system_instructionopt | STRING | System instruction for the model. | |
| temperatureopt | FLOAT | 0.300–2 | Lower temperature recommended for structured output. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| json_output | STRING | — |