Skip to content

Add a runnable first Workflow API example - #1678

Closed
stale2000 wants to merge 1 commit into
mainfrom
codex/api-first-result
Closed

stale2000 wants to merge 1 commit into
mainfrom
codex/api-first-result

Conversation

@stale2000

@stale2000 stale2000 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a focused Workflow API quickstart with a bundled model-free workflow.
  • Add runnable Python and TypeScript clients that submit the workflow and save its output.
  • Add the quickstart to the Run Workflows navigation.

Validation

  • mint validate
  • mint broken-links
  • JSON, Python, and Node syntax checks
  • git diff --check

No live Comfy Cloud request was made; remote execution and downloads were mocked.

@mintlify

mintlify Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
comfy 🟢 Ready View Preview Sep 14, 2026, 11:40 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

github-actions Bot commented Sep 14, 2026

Copy link
Copy Markdown

🌐 i18n translation sync reminder

@comfyui-wiki English documentation was updated in this PR. Please complete or schedule translation updates for the following files:

Japanese (ja)

  • ja/development/api-development/quickstart.mdx
  • ja/development/api-development/quickstart.mdx

Simplified Chinese (zh)

  • zh/development/api-development/quickstart.mdx
  • zh/development/api-development/quickstart.mdx

Korean (ko)

  • ko/development/api-development/quickstart.mdx
  • ko/development/api-development/quickstart.mdx

Local sync: npm run translate (see README — Automated translation)

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Warning

Review limit reached

  • Run on-demand review

On-demand reviews are free for the next 24 days. After that, they cost $0.25 per reviewed file.

Or wait 17 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: e111f27e-a977-4854-bc0b-6ee8a52f3d93

📥 Commits

Reviewing files that changed from the base of the PR and between ba377f6 and b03d4e5.

📒 Files selected for processing (1)
  • docs.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 6e719ce5-cf83-40c9-9381-903052bd7c9b

📥 Commits

Reviewing files that changed from the base of the PR and between 0b33a79 and ba377f6.

📒 Files selected for processing (7)
  • development/api-development/getting-an-api-key.mdx
  • development/api-development/quickstart.mdx
  • development/overview.mdx
  • docs.json
  • files/api-first-result/first_workflow.mts
  • files/api-first-result/first_workflow.py
  • files/api-first-result/workflow_api.json

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The PR updates API onboarding content, adds a Workflow API quickstart, registers it in navigation, and provides Python and TypeScript examples with a bundled workflow.

Changes

Workflow API onboarding

Layer / File(s) Summary
API access and key setup
development/overview.mdx, development/api-development/getting-an-api-key.mdx
The documentation distinguishes Comfy Router from the Workflow API. It adds API key setup, security guidance, prerequisites, and quickstart links.
First-workflow quickstart
development/api-development/quickstart.mdx, docs.json
The new guide covers prerequisites, SDK setup, workflow execution, output download, troubleshooting, and custom workflows. Navigation includes the guide under “Run Workflows.”
Runnable workflow examples
files/api-first-result/workflow_api.json, files/api-first-result/first_workflow.py, files/api-first-result/first_workflow.mts
The examples load a bundled EmptyImage and SaveImage workflow, require COMFY_API_KEY, execute it through the SDK, and save the output image.

Suggested reviewers: lin-bot23

Sequence Diagram(s)

sequenceDiagram
  participant Developer
  participant Quickstart
  participant ComfySDK
  participant WorkflowAPI
  participant OutputFile
  Developer->>Quickstart: Follow setup instructions
  Quickstart->>ComfySDK: Configure with COMFY_API_KEY
  ComfySDK->>WorkflowAPI: Submit workflow_api.json
  WorkflowAPI-->>ComfySDK: Return SaveImage output
  ComfySDK-->>OutputFile: Save first-result.png
Loading

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to ba377

The new onboarding links and documented SDK base-URL guidance are consistent, with no actionable merge risk identified.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/api-first-result
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch codex/api-first-result

Comment @coderabbitai help to get the list of available commands.

Publish a model-free API-format workflow with Python and TypeScript clients so developers can verify authentication, execution, and output download without finding a compatible community workflow first.

Constraint: The first workflow must not depend on model availability or custom nodes.

Rejected: Rewrite the developer landing page | PR #1686 owns that information architecture.

Rejected: Add a second quickstart hub to the API-key page | the dedicated quickstarts already provide the next steps.

Confidence: high

Scope-risk: narrow

Tested: Link and anchor validation; SDK workflow parsing and mocked downloads; strict TypeScript and Node syntax checks.

Not-tested: Live Comfy Cloud execution.
@stale2000
stale2000 force-pushed the codex/api-first-result branch from ba377f6 to b03d4e5 Compare September 16, 2026 00:10
@stale2000 stale2000 changed the title Guide Router and workflow API users to their first result Add a runnable first Workflow API example Sep 16, 2026
@stale2000

Copy link
Copy Markdown
Contributor Author

The focused first-workflow changes were moved into #1686, which now owns the complete developer-onboarding update.

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