When to Update API Inputs
You can update inputs if:
You forgot to mark a node as an API input during initial deployment.
You want to modify existing inputs (e.g., add or remove them).
You are not adding new models or custom nodes that were not included during the API's initial deployment.
β
** If the above does not apply you will need to do a new deployment.
Steps to Update API Inputs
Launch Your API's Instance
Go to your API's page and launch the instance associated with it.
Edit Your Workflow
Make the necessary changes to your workflow:
Add or remove API inputs.
Modify input settings or properties.
Enable Developer Mode
Open the ComfyUI settings in the running instance.
Enable the "Developer mode" option.
Export the Updated API JSON
After making your changes, export the updated API JSON from the ComfyUI interface.
Update the API
On the API page, locate the "Update API JSON" field.
Drag and drop the exported API JSON file into this field.
Click on "Update" to apply the changes.
Your API inputs will now reflect the updates you made. This method ensures that changes are applied seamlessly without the need to redeploy or add new resources.