ComfyUI Node

GPT 5.2

GPT 5.2 OpenAPI Specification json { "type": "function", "function": { "name": "web_search" } } json { "id": "chatcmpl-example-123", "object": "chat.completion", "created": 1741569952, "model": "gpt-5-2", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "hello,can i help you?", "refusal": null, "annotations": [] }, "logprobs": null, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 10, "completion_tokens": 50, "total_tokens": 60 } }

By felipederosilva·Created 24 days ago·Updated about 11 hours ago· 0
GPT 5.2
  • images
  • text
  • raw_json
  • credits_consumed
  • usage_json
  • credits_left
◄prompt►
◄system_prompt►
◄streamfalse►
◄tools_json[]►
◄history_json[]►
◄reasoning_efforthigh►
◄web_searchfalse►
◄expert_override_json{}►
CategoryKIE Next/LLM/OpenAI/GPT

Inputs (9)

NameTypeDefaultDescription
promptSTRINGUser prompt / message.
system_promptoptSTRING—
streamoptBOOLEANfalse—
tools_jsonoptSTRING[]Optional function/tool definitions supported by this model endpoint.
history_jsonoptSTRING[]Optional prior message/input array as JSON.
imagesoptIMAGE—
reasoning_effortoptCOMBOhigh4 options: low, medium, high, xhigh
web_searchoptBOOLEANfalseUse KIE's web-search tool where this endpoint supports it.
expert_override_jsonoptSTRING{}Expert-only request overrides. Normal use does not require this.

Outputs (5)

NameTypeDescription
textSTRING—
raw_jsonSTRING—
credits_consumedFLOAT—
usage_jsonSTRING—
credits_leftFLOAT—