Skip to content

Conversation

@Binkcn
Copy link

@Binkcn Binkcn commented Sep 9, 2025

The latest version of ComfyUI (see: https://github.com/comfyanonymous/ComfyUI/releases/tag/v0.3.57) supports calling external closed-source model APIs. In my project, I used Google's Gemini 2.5 Flash model, but invoking closed-source models requires logging into a ComfyUI account and using account credits for payment.

The latest ComfyUI version supports attaching an extra_data parameter when submitting a prompt to include api_key_comfy_org (see: https://docs.comfy.org/development/comfyui-server/api-key-integration#python-example).

The current agent implementation only passes client-submitted data as the prompt, unable to include a valid extra_data parameter. Therefore, following the native ComfyUI /prompt interface, the entire client-submitted data is passed as the payload to ComfyUI for processing.

Warning: This change will alter the parameter structure of the existing interface, potentially causing business functionality to break!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant