mirror of
https://github.com/Comfy-Org/comfy-python-sdk.git
synced 2026-11-04 23:37:47 +00:00
[PR #9] [MERGED] feat: api_key on submit/run for partner (API) node auth #18
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
effort:medium
effort:small
effort:small
effort:trivial
priority:nice-to-have
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-python-sdk#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-python-sdk/pull/9
Author: @wei-hai
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @wei-hai
Base:
main← Head:feat/extra-data-api-key📝 Commits (1)
c258bd8feat: api_key on submit/run for partner (API) node auth📊 Changes
11 files changed (+1393 additions, -17 deletions)
View changed files
➕
.github/CODEOWNERS(+4 -0)📝
README.md(+18 -0)📝
scripts/check_public_repo_hygiene.py(+21 -3)📝
spec/openapi.yaml(+12 -0)📝
src/comfy_low/transport.py(+19 -3)📝
src/comfy_sdk/_core.py(+14 -0)📝
src/comfy_sdk/client.py(+48 -11)📝
tests/conftest.py(+4 -0)📝
tests/test_async.py(+17 -0)📝
tests/test_jobs.py(+40 -0)➕
uv.lock(+1196 -0)📄 Description
What
Workflows that use partner/API nodes (Gemini, etc.) authenticate with a single Comfy API key carried in the
POST /api/v2/jobsbody asextra_data.api_key_comfy_org. This adds an optionalapi_key=parameter tosubmit()/run()(both syncComfyand asyncAsyncComfy) that packs the key into a typed, closedextra_dataobject sent alongside the workflow.api_keyand noextra_datais sent (never an empty object).api_key(which authenticates you to the server); the two are often the same key but conceptually distinct.Tests
New sync + async tests prove
extra_data.api_key_comfy_orgappears as a sibling ofworkflowwhen a key is given, is absent when not, and thatrun()forwards it through.pytest— 34 passed;ruff check,ruff format --check,mypyclean.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.