Bulkit
Official Bulkit nodes for ComfyUI: upload AI-generated images and videos and draft, schedule or publish them to 12 social platforms.
ComfyUI-Bulkit
Turn generated images, carousels, and videos into social posts directly from ComfyUI. Upload media to Bulkit, pick connected accounts, and save a draft, schedule a release, or publish when ready.
Supports 12 platform destinations: X, LinkedIn, LinkedIn Page, Instagram, Facebook Page, Threads, TikTok, YouTube, Vimeo, Pinterest, Bluesky, and Reddit. Available media types and publishing options depend on the connected platform and account; use channel capabilities to check requirements.
- Drafts by default, with an explicit
enabledswitch on upload and posting nodes. - Images, batch carousels, native ComfyUI video, VideoHelperSuite output, and disk video files.
- A live channel picker, reconnect warnings, and visible test mode.
- Server-side credentials managed from Settings, without putting secrets into shared workflow files.
- Official
bulkitPython SDK, deterministic post idempotency, and content-based upload caching.
Installation
Use Python 3.10 or newer and the Python environment that runs ComfyUI. Restart ComfyUI after installation.
ComfyUI Manager
Search for ComfyUI-Bulkit in Manager → Install Custom Nodes, install, and restart. Manager and Registry discovery require the package to have been published; use the manual method if it is not listed yet.
Comfy CLI
Once the package is available in the Comfy Registry:
comfy node install bulkit
Manual
From your ComfyUI installation directory:
cd custom_nodes
git clone https://github.com/bulkit-io/ComfyUI-Bulkit.git
cd ComfyUI-Bulkit
python -m pip install -r requirements.txt
For ComfyUI Portable, run pip with its embedded Python executable; for Desktop or a virtual environment, use that installation's interpreter. ComfyUI supplies the image runtime dependencies. VideoHelperSuite is optional and needed only for the VHS example.
Connect securely
- Get an API key from your Bulkit account and connect the social accounts you want to use.
- In ComfyUI, open Settings → Bulkit → Connection → API Key and choose Manage API key.
- Enter the key in the password field, optionally set a custom API base URL, and click Verify & Save. Verification lists channels before saving. The dialog shows the masked key, credential source, and TEST MODE when applicable.
- Add Bulkit Create Post, click Pick Channels..., select accounts, and click Apply. Choose
draftfor your first run.
The extension sends credentials directly to the ComfyUI server. It never writes the raw key into ComfyUI settings or node widgets. The local credentials file defaults to ~/.config/bulkit-comfyui/credentials.json with file permissions 0600. Set BULKIT_COMFY_CONFIG_DIR to use another configuration directory.
For hosted/headless environments, set credentials before launching ComfyUI:
export BULKIT_API_KEY='your-key-here'
# Optional: only when using a custom Bulkit API endpoint
export BULKIT_BASE_URL='https://your-bulkit-api.example'
python main.py
Credential priority is an explicit non-empty API key override, then BULKIT_API_KEY, then the saved credentials file. Environment credentials take precedence over a key saved in Settings. Clear Saved Key removes the file; unset the environment variable separately if needed.
Keys starting with bk_test_ are detected as test mode and labeled in the connection dialog, channel picker, and post results. Follow Bulkit's test mode documentation for API behavior and supported operations.
Never enter a real key in a node widget. ComfyUI can embed widget values into workflow JSON and PNG metadata. The optional Bulkit Client.api_key input exists for controlled headless/serverless overrides; interactive workflows should leave it blank and resolve credentials on the server. If a key has been included in a shared workflow or image, revoke it in Bulkit.
The local routes live under /bulkit/. Credential mutations reject cross-site browser requests, and SDK errors use sanitized messages. Treat a network-accessible ComfyUI instance as access to your Bulkit account: use the host's authentication and access controls. The API key is server-side, while channel IDs and post content remain ordinary workflow data.
Node reference
All six nodes appear in the Bulkit category. Optional client connections let a workflow share a BULKIT_CLIENT configuration; leaving them disconnected uses server credentials.
| Node / class key | Required inputs (widget order) | Optional inputs | Outputs (slot order) |
| --- | --- | --- | --- |
| Bulkit Client / BulkitClient | None | api_key, base_url | 0 client (BULKIT_CLIENT) |
| Bulkit List Channels / BulkitListChannels | platform_filter (all or platform ID), exclude_needs_reconnect (default true) | client | 0 channel_ids, 1 channels_json (both STRING) |
| Bulkit Upload Image / BulkitUploadImage | images (IMAGE), format (PNG/JPEG/WEBP), quality (1–100, default 92), filename_prefix (default comfyui), enabled (default true) | client, alt_text, existing_media_ids, force_reupload (default false) | 0 media_ids (BULKIT_MEDIA_IDS), 1 media_ids_json (STRING), 2 images (IMAGE) |
| Bulkit Upload Video / BulkitUploadVideo | enabled (default true) | client, video (VIDEO), vhs_filenames (VHS_FILENAMES), file_path, alt_text, existing_media_ids, force_reupload (default false) | 0 media_ids (BULKIT_MEDIA_IDS), 1 media_ids_json (STRING) |
| Bulkit Create Post / BulkitCreatePost | channel_ids, content (multiline), intent (draft/schedule/now, default draft), enabled (default true) | client, media_ids, images, video, vhs_filenames, scheduled_at, title, post_type, platform_options_json, tag_ids, image_format (PNG/JPEG/WEBP), idempotency_key | 0 post_id, 1 status, 2 response_json (all STRING), plus UI summary |
| Bulkit Get Post Status / BulkitGetPostStatus | post_id, wait_until_terminal (default false), timeout_seconds (5–600, default 60), poll_interval_seconds (1–30, default 3) | client | 0 status, 1 remote_urls_json, 2 response_json (all STRING), plus UI summary |
BulkitCreatePost and BulkitGetPostStatus are output nodes, so they execute when queued. Upload and channel-list nodes execute when a downstream output needs their results.
Posting and channel selection
channel_ids accepts comma-separated or newline-separated IDs. Use the picker for a visual account list with platform marks, account handles, reconnect warnings, and a Refresh action. Existing IDs stay selected. You can also convert channel_ids to an input and connect BulkitListChannels.channel_ids.
draftcreates a draft for review in Bulkit.schedulerequires a future ISO 8601scheduled_atvalue, such as2030-01-15T15:00:00Z. Replace the example date with your intended release time and explicit time zone.nowrequests immediate publishing. Check channels, media, and text before queueing.- With
enabled=false, Create Post makes zero network calls and returns an empty post ID,skipped, and{"skipped": true}. Disable upstream upload nodes too when you want to skip uploads during iteration.
Attach images, video, or vhs_filenames directly to Create Post for automatic upload, or attach uploaded media_ids for reusable carousel chains. Inputs combine media in order. BULKIT_MEDIA_IDS carries a list of objects with id, alt_text, file_name, and mime_type; alt text follows the media into each channel's post blocks. Use existing_media_ids on upload nodes to append another batch.
Image encoding supports PNG, JPEG, and WEBP with a 10 MB upload limit. Video files up to 100 MB use the SDK's regular upload; larger MP4/MOV files use multipart upload. Platform-specific size, duration, and aspect-ratio requirements still apply. Repeated identical media uses ComfyUI's content-based node cache; force_reupload lets you request another upload. Create Post sends an explicit or deterministically derived idempotency key to protect retried requests from duplicate posts. Change the explicit key when intentionally creating a separate identical post.
platform_options_json contains platform options supported by the API. Inspect GET /bulkit/channels/{channel_id}/capabilities and Bulkit documentation before setting post_type, title, or platform-specific options. Per-channel errors appear in response_json and execution summaries; check every destination when a request partially succeeds. Get Post Status optionally polls until terminal status or timeout; leave polling off when checking a draft.
Example workflows
Drag a JSON file from examples/ onto the ComfyUI canvas. Choose an installed checkpoint, configure credentials, and use Pick Channels... before queueing. The examples contain no API keys and deliberately leave channel IDs empty.
| Workflow | What it demonstrates |
| --- | --- |
| flux_image_to_social_draft.json | Standard checkpoint text-to-image → direct IMAGE input on Create Post → draft. Replace the generator with your Flux workflow's decoded image output if desired. |
| batch_carousel_schedule.json | A three-image batch → WEBP upload with alt text → scheduled carousel. Review the example timestamp before queueing. PNG is also supported. |
| video_vhs_to_reels_draft.json | Portrait batch frames → VHS_VideoCombine → vhs_filenames on Upload Video → draft → Get Post Status. Requires ComfyUI-VideoHelperSuite and its FFmpeg dependencies. Select an Instagram channel; post_type=post publishes a single video as a Reel. Check capabilities before using other destinations. |
The checkpoint name is a placeholder. The video example demonstrates wiring using independently generated batch frames; use your motion model for coherent video. Notes embedded in each graph explain setup and safety switches.
Server integration
The frontend uses same-origin JSON routes registered lazily with ComfyUI's PromptServer. Headless imports work without ComfyUI or aiohttp.
| Method | Path | Result |
| --- | --- | --- |
| GET | /bulkit/status | Configured state, credential source, masked key, test mode, base URL |
| POST | /bulkit/credentials | Verify then save {api_key, base_url?, verify?}; verification defaults to true |
| DELETE | /bulkit/credentials | Clear saved credentials |
| GET | /bulkit/channels | Channels, test mode, cache status; ?refresh=1 bypasses the 30-second cache |
| GET | /bulkit/channels/{channel_id}/capabilities | SDK channel capabilities |
| GET | /bulkit/tags | Tags under tags |
Credential changes invalidate the channel cache. API calls run outside the event loop. Credential and route responses are marked Cache-Control: no-store.
Development and testing
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pip install pytest aiohttp ruff
pytest
ruff check .
ruff format --check .
node --check web/js/bulkit.js
python -c 'import json,pathlib; [json.loads(p.read_text()) for p in pathlib.Path("examples").glob("*.json")]; print("Workflow JSON valid")'
The route suite can run independently with just pytest and aiohttp:
pytest tests/test_server_routes.py
It uses real aiohttp test servers and injected fake auth/SDK services, covering credentials, verify-before-save failures, channel cache/refresh/invalidation, capabilities, tags, cross-origin credential protection, and secret-free responses. It requires no live key or network service. Run the project's configured type checker (pyright or mypy) as part of integration checks. Actual rendering and execution require ComfyUI; a syntax check alone does not validate browser or node-runtime compatibility.
Learn more at docs.bulkit.io and bulkit.io.
License
MIT.