Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions development/samples/overview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
title: "Demo Apps"
description: "Start from a working demo app built on the Comfy API."
mode: "wide"
hideFooterPagination: true
---

Start from a working demo app, then adapt the workflow and interface for your own project. Choose Comfy Cloud for the fastest path, or Deploy Your Own when you need your own models or nodes.

<div className="sample-card-grid">
<div className="sample-card" data-sample-card="true">
<div className="sample-card-inner">
<div className="sample-card-face sample-card-front" data-sample-front="true">
<img src="/images/samples/img2img-web-app.svg" alt="Preview of the image-to-image web app" className="sample-card-preview" />
<div className="sample-card-body">
<h2>Image-to-image web app</h2>
<p>Upload an image, run a Comfy workflow, and show the result in a Next.js app.</p>
<div className="sample-card-actions">
<button type="button" data-sample-open="api">Use Comfy Cloud</button>
<button type="button" data-sample-open="endpoint">Deploy Your Own</button>
</div>
<div className="sample-card-links">
<a href="https://github.com/Comfy-Org/comfy-examples/blob/main/img2img-web-app/workflows/workflow_api.json?raw=1">Download workflow ↗</a><span>·</span><a href="https://github.com/Comfy-Org/comfy-examples/tree/main/img2img-web-app">View source ↗</a>
Comment thread
stale2000 marked this conversation as resolved.
</div>
</div>
</div>
<div className="sample-card-face sample-card-back" data-sample-path="api" aria-hidden="true" inert="true">
<div className="sample-path-body">
<button type="button" data-sample-back="true">← Back to demo app</button>
<p className="sample-path-eyebrow">Comfy Cloud</p><h2>Use Image-to-image web app with Comfy Cloud</h2>
<p>Use Comfy Cloud as the managed endpoint. Create an API key, then deploy a copy of the app.</p>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
<div className="sample-path-steps">
<div className="sample-path-step"><span className="sample-path-number">1</span><div className="sample-path-copy"><strong>Create API key</strong><span>Create and save a Comfy API key. An eligible Comfy Cloud subscription is also required.</span></div><a href="https://platform.comfy.org/profile/api-keys">Create API key ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">2</span><div className="sample-path-copy"><strong>Deploy app to Vercel</strong><span>The provider creates a copy of this sample in your account.</span></div><a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FComfy-Org%2Fcomfy-examples%2Ftree%2Fmain%2Fimg2img-web-app&env=COMFY_BASE_URL%2CCOMFY_API_KEY&envDefaults=%7B%22COMFY_BASE_URL%22%3A%22https%3A%2F%2Fcloud.comfy.org%22%7D">Deploy app ↗</a></div>

Check warning on line 34 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L34

Did you really mean 'Vercel'?
</div>
</div>
</div>
<div className="sample-card-face sample-card-back" data-sample-path="endpoint" aria-hidden="true" inert="true">
<div className="sample-path-body">
<button type="button" data-sample-back="true">← Back to demo app</button>
<p className="sample-path-eyebrow">Deploy Your Own</p><h2>Deploy your own endpoint for Image-to-image web app</h2>
<p>Create a Comfy API serverless endpoint when you need your own models or custom nodes.</p>

Check warning on line 42 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L42

Did you really mean 'serverless'?
<div className="sample-path-steps">
<div className="sample-path-step"><span className="sample-path-number">1</span><div className="sample-path-copy"><strong>Download workflow</strong><span>Use this API-format workflow in the dedicated deployment flow.</span></div><a href="https://github.com/Comfy-Org/comfy-examples/blob/main/img2img-web-app/workflows/workflow_api.json?raw=1">Download workflow ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">2</span><div className="sample-path-copy"><strong>Create API key</strong><span>Create and save the key your deployed app will use.</span></div><a href="https://platform.comfy.org/profile/api-keys">Create API key ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">3</span><div className="sample-path-copy"><strong>Paste Workflow and Deploy</strong><span>In Builds, paste the workflow, configure the endpoint, and wait for its URL.</span></div><a href="https://platform.comfy.org/profile/builds">Open builds ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">4</span><div className="sample-path-copy"><strong>Paste endpoint URL and API key</strong><span>Set COMFY_BASE_URL and COMFY_API_KEY during app deployment.</span></div><a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FComfy-Org%2Fcomfy-examples%2Ftree%2Fmain%2Fimg2img-web-app&env=COMFY_BASE_URL%2CCOMFY_API_KEY">Deploy app ↗</a></div>
</div>
</div>
</div>
</div>
</div>

<div className="sample-card" data-sample-card="true">
<div className="sample-card-inner">
<div className="sample-card-face sample-card-front" data-sample-front="true">
<img src="/images/samples/sketch-to-image.svg" alt="Preview of the sketch-to-image app" className="sample-card-preview" />
<div className="sample-card-body">
<h2>Sketch to image</h2><p>Draw or import a guide, then generate an image from the guide and a prompt.</p>
<div className="sample-card-actions"><button type="button" data-sample-open="api">Use Comfy Cloud</button><button type="button" data-sample-open="endpoint">Deploy Your Own</button></div>
<div className="sample-card-links"><a href="https://github.com/Comfy-Org/comfy-examples/blob/main/sketch-to-image/workflows/workflow_api.json?raw=1">Download workflow ↗</a><span>·</span><a href="https://github.com/Comfy-Org/comfy-examples/tree/main/sketch-to-image">View source ↗</a></div>
</div>
</div>
<div className="sample-card-face sample-card-back" data-sample-path="api" aria-hidden="true" inert="true">
<div className="sample-path-body">
<button type="button" data-sample-back="true">← Back to demo app</button>
<p className="sample-path-eyebrow">Comfy Cloud</p>
<h2>Use Sketch to image with Comfy Cloud</h2>
<p>Use Comfy Cloud as the managed endpoint. Create an API key, then deploy a copy of the app.</p>
<div className="sample-path-steps">
<div className="sample-path-step"><span className="sample-path-number">1</span><div className="sample-path-copy"><strong>Create API key</strong><span>Create and save a Comfy API key. An eligible Comfy Cloud subscription is also required.</span></div><a href="https://platform.comfy.org/profile/api-keys">Create API key ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">2</span><div className="sample-path-copy"><strong>Deploy app to Vercel</strong><span>The provider creates a copy of this sample in your account.</span></div><a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FComfy-Org%2Fcomfy-examples%2Ftree%2Fmain%2Fsketch-to-image&env=COMFY_BASE_URL%2CCOMFY_API_KEY&envDefaults=%7B%22COMFY_BASE_URL%22%3A%22https%3A%2F%2Fcloud.comfy.org%22%7D">Deploy app ↗</a></div>

Check warning on line 72 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L72

Did you really mean 'Vercel'?
</div></div>
</div>
<div className="sample-card-face sample-card-back" data-sample-path="endpoint" aria-hidden="true" inert="true">
<div className="sample-path-body">
<button type="button" data-sample-back="true">← Back to demo app</button>
<p className="sample-path-eyebrow">Deploy Your Own</p>
<h2>Deploy your own endpoint for Sketch to image</h2>
<p>Create a Comfy API serverless endpoint when you need your own models or custom nodes.</p>

Check warning on line 80 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L80

Did you really mean 'serverless'?
<div className="sample-path-steps">
<div className="sample-path-step"><span className="sample-path-number">1</span><div className="sample-path-copy"><strong>Download workflow</strong><span>Use this API-format workflow in the dedicated deployment flow.</span></div><a href="https://github.com/Comfy-Org/comfy-examples/blob/main/sketch-to-image/workflows/workflow_api.json?raw=1">Download workflow ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">2</span><div className="sample-path-copy"><strong>Create API key</strong><span>Create and save the key your deployed app will use.</span></div><a href="https://platform.comfy.org/profile/api-keys">Create API key ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">3</span><div className="sample-path-copy"><strong>Paste Workflow and Deploy</strong><span>In Builds, paste the workflow, configure the endpoint, and wait for its URL.</span></div><a href="https://platform.comfy.org/profile/builds">Open builds ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">4</span><div className="sample-path-copy"><strong>Paste endpoint URL and API key</strong><span>Set COMFY_BASE_URL and COMFY_API_KEY during app deployment.</span></div><a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FComfy-Org%2Fcomfy-examples%2Ftree%2Fmain%2Fsketch-to-image&env=COMFY_BASE_URL%2CCOMFY_API_KEY">Deploy app ↗</a></div>
</div></div>
</div>
</div>
</div>

<div className="sample-card" data-sample-card="true">
<div className="sample-card-inner">
<div className="sample-card-face sample-card-front" data-sample-front="true">
<img src="/images/samples/discord-image-bot.svg" alt="Preview of the Discord image bot" className="sample-card-preview" />
<div className="sample-card-body">
<h2>Discord image bot</h2><p>Add an `/imagine` command to a Discord server and run the bundled Comfy workflow.</p>
<div className="sample-card-actions"><button type="button" data-sample-open="api">Use Comfy Cloud</button><button type="button" data-sample-open="endpoint">Deploy Your Own</button></div>
<div className="sample-card-links"><a href="https://github.com/Comfy-Org/comfy-discord-image-bot/blob/main/workflows/workflow_api.json?raw=1">Download workflow ↗</a><span>·</span><a href="https://github.com/Comfy-Org/comfy-discord-image-bot">View source ↗</a></div>
</div>
</div>
<div className="sample-card-face sample-card-back" data-sample-path="api" aria-hidden="true" inert="true">
<div className="sample-path-body">
<button type="button" data-sample-back="true">← Back to demo app</button>
<p className="sample-path-eyebrow">Comfy Cloud</p>
<h2>Use Discord image bot with Comfy Cloud</h2>
<p>Use Comfy Cloud as the managed endpoint. Create an API key, then deploy a copy of the app.</p>
<div className="sample-path-steps">
<div className="sample-path-step"><span className="sample-path-number">1</span><div className="sample-path-copy"><strong>Create API key</strong><span>Create and save a Comfy API key. An eligible Comfy Cloud subscription is also required.</span></div><a href="https://platform.comfy.org/profile/api-keys">Create API key ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">2</span><div className="sample-path-copy"><strong>Deploy app to Render</strong><span>The provider creates a copy of this sample in your account.</span></div><a href="https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2FComfy-Org%2Fcomfy-discord-image-bot">Deploy app ↗</a></div>
</div></div>
</div>
<div className="sample-card-face sample-card-back" data-sample-path="endpoint" aria-hidden="true" inert="true">
<div className="sample-path-body">
<button type="button" data-sample-back="true">← Back to demo app</button>
<p className="sample-path-eyebrow">Deploy Your Own</p>
<h2>Deploy your own endpoint for Discord image bot</h2>
<p>Create a Comfy API serverless endpoint when you need your own models or custom nodes.</p>

Check warning on line 117 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L117

Did you really mean 'serverless'?
<div className="sample-path-steps">
<div className="sample-path-step"><span className="sample-path-number">1</span><div className="sample-path-copy"><strong>Download workflow</strong><span>Use this API-format workflow in the dedicated deployment flow.</span></div><a href="https://github.com/Comfy-Org/comfy-discord-image-bot/blob/main/workflows/workflow_api.json?raw=1">Download workflow ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">2</span><div className="sample-path-copy"><strong>Create API key</strong><span>Create and save the key your deployed app will use.</span></div><a href="https://platform.comfy.org/profile/api-keys">Create API key ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">3</span><div className="sample-path-copy"><strong>Paste Workflow and Deploy</strong><span>In Builds, paste the workflow, configure the endpoint, and wait for its URL.</span></div><a href="https://platform.comfy.org/profile/builds">Open builds ↗</a></div>
<div className="sample-path-step"><span className="sample-path-number">4</span><div className="sample-path-copy"><strong>Paste endpoint URL and API key</strong><span>Set COMFY_BASE_URL and COMFY_API_KEY during app deployment.</span></div><a href="https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2FComfy-Org%2Fcomfy-discord-image-bot">Deploy app ↗</a></div>
</div></div>
</div>
</div>
</div>
</div>

<Note>
Both paths need a [Comfy API key](https://platform.comfy.org/profile/api-keys). For Deploy Your Own, download the workflow, use Builds to paste it and configure the serverless endpoint, wait for its URL, then paste that URL and the API key into your Vercel or Render deployment.

Check warning on line 130 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L130

Did you really mean 'serverless'?

Check warning on line 130 in development/samples/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dripart) - vale-spellcheck

development/samples/overview.mdx#L130

Did you really mean 'Vercel'?
</Note>

Want to add a demo app? See the [examples repository](https://github.com/Comfy-Org/comfy-examples).
8 changes: 7 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3028,6 +3028,12 @@
}
]
},
{
"group": "Demo Apps",
"pages": [
"development/samples/overview"
]
},
{
"group": "Comfy Router",
"pages": [
Expand Down Expand Up @@ -13897,4 +13903,4 @@
"destination": "/tutorials/partner-nodes/wan/wan3-0"
}
]
}
}
21 changes: 21 additions & 0 deletions images/samples/discord-image-bot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions images/samples/img2img-web-app.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading