# Execute Workflow Source: https://docs.flowscale.ai/api-reference/endpoint/execute_workflow POST /api/v1/runs Executes a specified workflow by processing dynamic form data with field names and types determined by the deployed ComfyUI workflow. Each workflow defines its own unique input parameters based on the nodes it contains. **Important**: The exact parameter names and types vary for each workflow_id and deployment URL. To discover the required parameters for your workflow: 1. Check your workflow's **API Deployment Dashboard** 2. Refer to your ComfyUI workflow's input nodes The workflow is executed on an available ComfyUI instance within the cluster based on queue size limits. # Get Execution Output Source: https://docs.flowscale.ai/api-reference/endpoint/get_execution_output GET /api/v1/runs/output Retrieves the output of a specific run by providing the filename. It checks the run's status and returns a download URL if the output is available. # Get Queue Source: https://docs.flowscale.ai/api-reference/endpoint/get_queue GET /api/v1/comfy/queue Retrieves the queue data for all ComfyUI instances in the cluster. This includes information about running and pending tasks in each instance's queue. # Get Run Details Source: https://docs.flowscale.ai/api-reference/endpoint/get_run_details GET /api/v1/runs/{run_id} Retrieves detailed information about a specific run using its unique run ID. # Get list of Runs by Group Source: https://docs.flowscale.ai/api-reference/endpoint/get_runs GET /api/v1/runs Retrieves a list of all runs associated with a specific group ID. Useful for aggregating and managing related runs. # Health Check Source: https://docs.flowscale.ai/api-reference/endpoint/health_check GET /api/v1/comfy/health Checks the health status of all ComfyUI instances within the specified cluster. It verifies whether each ComfyUI instance is running or stopped. # Introduction Source: https://docs.flowscale.ai/api-reference/introduction Comprehensive overview of the FlowScale's ComfyUI API # FlowScale AI API Reference **You've deployed ComfyUI workflows as production APIs—now harness their full power.** This comprehensive reference shows you how to integrate FlowScale AI's enterprise-grade infrastructure into your applications, automation systems, and business processes. **Why this API matters for your business:** Instead of managing local ComfyUI installations, dependency conflicts, and scaling challenges, you now have access to production-ready AI infrastructure that scales from prototype to enterprise workloads seamlessly. ## From Creative Workflow to Business Infrastructure **The FlowScale AI API transforms your ComfyUI workflows into scalable business infrastructure.** What started as creative experiments in ComfyUI now becomes reliable, governed services that can power applications, automate business processes, and serve customers at global scale. **This isn't just another API—it's your AI workflows as enterprise infrastructure:** Programmatically trigger complex AI processes, monitor their execution in real-time, and integrate sophisticated AI capabilities into any application or automation system without managing the underlying complexity. ## Key Features * **Health Monitoring:** Continuously check the status of all ComfyUI instances to ensure optimal performance and uptime. * **Queue Management:** Retrieve and manage queue data for running and pending tasks across ComfyUI instances. * **Workflow Execution:** Execute complex workflows with dynamic form data, including support for file uploads and text inputs. * **Run Tracking:** Monitor the status and details of each workflow execution, ensuring transparency and traceability. * **Output Retrieval:** Access the results of your workflows, whether they are images, videos, audio files, or text data, with secure download links. * **Scalable Architecture:** Automatically balances load across available ComfyUI instances based on real-time queue sizes. * **Secure Access:** Implements robust API key authentication to safeguard your workflows and data. ## Security and Authentication Security is paramount in the FlowScale's ComfyUI API. All endpoints are protected using **API Key Authentication**, ensuring that only authorized users can access and interact with the API. The API key must be included in the request headers as follows: * **Header Name:** `X-API-KEY` * **Header Value:** Your unique API key (string) ### Authentication Flow 1. **API Key Validation:** Each request must include a valid API key. The API validates this key and then allows access to the relevant data on successful authentication. 2. **Access Control:** If the API key is missing, invalid, or does not match the expected value, the API will respond with appropriate error messages (`401 Unauthorized` or `403 Forbidden`). ## From Deployment to Integration **Ready to integrate your deployed workflows into real applications?** This API reference assumes you've already completed the deployment process and are ready to build production integrations. ### Prerequisites for Success **New to FlowScale AI?** Complete the [Getting Started guides](/getting-started/introduction) first to deploy your workflows, then return here to learn integration patterns. To successfully integrate FlowScale AI APIs: * **Deployed Workflow:** Your ComfyUI workflow must be successfully deployed via the FlowScale AI platform * **API Authentication:** Secure your API key from your project's deployment dashboard * **Production Mindset:** Understanding of how your workflow integrations will handle errors, scaling, and user demands ## Comprehensive API Capabilities The FlowScale's ComfyUI API encompasses a wide range of functionalities to cater to diverse workflow management needs: ### 1. **Homepage** * **Endpoint:** `/` * **Method:** `GET` * **Description:**\ Serves a welcoming HTML page that provides a brief overview of the FlowScale APIs and a link to the interactive API documentation. ### 2. **ComfyUI Health Check** * **Endpoint:** `/api/v1/comfy/health` * **Method:** `GET` * **Description:**\ Monitors the health status of all ComfyUI instances within the cluster, indicating whether each instance is running or stopped. ### 3. **ComfyUI Queue Data** * **Endpoint:** `/api/v1/comfy/queue` * **Method:** `GET` * **Description:**\ Retrieves detailed queue information for each ComfyUI instance, including running and pending tasks, to facilitate effective load management. ### 4. **Execute Workflow** * **Endpoint:** `/api/v1/runs` * **Method:** `POST` * **Description:**\ Executes a specified workflow by processing dynamic form data, which may include text inputs and file uploads. The workflow is dispatched to an available ComfyUI instance based on current queue sizes. ### 5. **Get Run Output** * **Endpoint:** `/api/v1/runs/output` * **Method:** `GET` * **Description:**\ Fetches the output of a specific run by filename, providing a secure download URL if the output is available. ### 6. **Get Run Details** * **Endpoint:** `/api/v1/runs/{run_id}` * **Method:** `GET` * **Description:**\ Retrieves comprehensive details about a specific run using its unique run ID, excluding sensitive internal information. ### 7. **List Runs by Group ID** * **Endpoint:** `/api/v1/runs` * **Method:** `GET` * **Description:**\ Lists all runs associated with a particular group ID, enabling aggregation and management of related runs. ## Robust Error Handling and Logging Ensuring reliability and ease of troubleshooting, the FlowScale's ComfyUI API incorporates comprehensive error handling and logging mechanisms: * **Error Responses:**\ The API returns meaningful HTTP status codes and error messages for various failure scenarios, including authentication issues, missing resources, and internal server errors. ## Scalability and Load Balancing The FlowScale's ComfyUI API is designed to scale effortlessly with your application's demands: * **Dynamic ComfyUI Selection:**\ Implements intelligent selection of ComfyUI instances based on real-time queue sizes, ensuring optimal resource utilization and preventing overloading of any single instance. * **Asynchronous Operations:**\ Utilizes asynchronous capabilities to handle multiple requests concurrently, enhancing performance and responsiveness. ## Your AI Workflows as Business Infrastructure **You now have access to enterprise-grade AI infrastructure that scales with your ambitions.** The FlowScale AI API transforms your creative ComfyUI work into reliable, governed services that can power everything from simple automations to complex enterprise applications. **This is what you've built:** Production-ready AI infrastructure with automatic scaling, comprehensive monitoring, and enterprise-grade reliability. Your workflows aren't just tools anymore—they're business assets that can serve users, power applications, and drive innovation across your organization. ### Ready to Build? Get building quickly with our JavaScript/TypeScript and Python SDKs *** *Your ComfyUI workflows are now production infrastructure. Build something amazing.* 🚀 *** # Testing Workflow APIs Source: https://docs.flowscale.ai/api-reference/testing-workflows How to test your deployed ComfyUI workflow APIs with various tools # Testing Your Workflow APIs Since each FlowScale AI workflow has dynamic parameter names based on its ComfyUI nodes, the generic "Try it" interface has limitations. Here are better approaches for testing your specific workflow APIs. ## Method 1: Use the Playground UI (Recommended) The **Playground UI** is the easiest way to test your workflows interactively: 1. Go to your FlowScale dashboard 2. Navigate to your deployed workflow 3. Click **"Open Playground"** 4. Fill out the auto-generated form with your workflow's actual parameters 5. Submit to test your workflow The Playground automatically knows your workflow's parameter names and types. ## Method 2: Using curl Get your exact parameter names from the Playground UI, then use curl: ```bash curl -X POST "https://your-deployment.flowscale.ai/api/v1/runs?workflow_id=your-workflow-id" \ -H "X-API-KEY: your-api-key" \ -H "Content-Type: multipart/form-data" \ -F "prompt_68667=A beautiful sunset over mountains" \ -F "steps_68668=20" \ -F "width_68669=1024" \ -F "height_68670=1024" \ -F "image_68671=@/path/to/your/image.jpg" ``` ## Method 3: Using Postman 1. Create a new POST request 2. Set URL: `https://your-deployment.flowscale.ai/api/v1/runs?workflow_id=your-workflow-id` 3. Add Headers: * `X-API-KEY: your-api-key` 4. Set Body type to "form-data" 5. Add your workflow's specific parameters as form fields 6. For file uploads, select "File" type and choose your file ## Method 4: Using Python requests ```python import requests url = "https://your-deployment.flowscale.ai/api/v1/runs" headers = {"X-API-KEY": "your-api-key"} params = {"workflow_id": "your-workflow-id"} # For text-only workflows data = { "prompt_68667": "A beautiful sunset over mountains", "steps_68668": 20, "width_68669": 1024, "height_68670": 1024 } response = requests.post(url, headers=headers, params=params, data=data) # For workflows with file uploads files = {"input_image": open("path/to/image.jpg", "rb")} data = {"prompt_68667": "Transform this image", "strength_68668": 0.8} response = requests.post(url, headers=headers, params=params, data=data, files=files) ``` ## Method 5: Using JavaScript fetch ```javascript const formData = new FormData(); formData.append('prompt_68667', 'A beautiful sunset over mountains'); formData.append('steps_68668', '20'); formData.append('width_68669', '1024'); formData.append('height_68670', '1024'); // For file uploads const fileInput = document.querySelector('input[type="file"]'); if (fileInput.files[0]) { formData.append('image_68671', fileInput.files[0]); } const response = await fetch('https://your-deployment.flowscale.ai/api/v1/runs?workflow_id=your-workflow-id', { method: 'POST', headers: { 'X-API-KEY': 'your-api-key' }, body: formData }); const result = await response.json(); ``` ## Discovering Your Workflow's Parameters ### From the Playground UI 1. Open your workflow's Playground 2. Inspect the form fields - these are your exact parameter names 3. Note the field types (text, number, file upload, etc.) ### From ComfyUI Workflow 1. Open your workflow in ComfyUI 2. Look for nodes with input fields 3. The input field names become API parameter names 4. Common patterns: * Text inputs → `prompt_68667`, `negative_prompt_68668`, `style_68669` * Numeric inputs → `steps_68668`, `cfg_scale_68669`, `strength_68670`, `width_68671`, `height_68672` * File inputs → `image_68671`, `mask_68672`, `reference_image_68673` ### From Auto-Generated API Docs Each deployment has its own API Deployment Dashboard with the exact parameter names for that specific workflow. ## Common Parameter Patterns While parameter names are workflow-specific, here are common patterns: **Image Generation Workflows:** * `prompt_68667` (string) - Main text prompt * `negative_prompt_68668` (string) - What to avoid * `width_68669`, `height_68670` (integers) - Image dimensions * `steps_68668` (integer) - Denoising steps * `cfg_scale_68669` (number) - Guidance scale * `seed_68670` (integer) - Random seed **Image-to-Image Workflows:** * `image_68671` (file) - Source image * `prompt_68667` (string) - Transformation prompt * `strength_68668` (number 0-1) - How much to change * `steps_68668` (integer) - Processing steps **ControlNet Workflows:** * `image_68671` (file) - Source image * `control_image_68672` (file) - Control/reference image * `prompt_68667` (string) - Generation prompt * `controlnet_conditioning_scale_68668` (number) - Control strength Remember: These are just common patterns. Your specific workflow may have completely different parameter names based on its ComfyUI nodes. ## Troubleshooting **"Field required" errors:** You're missing a required parameter. Check your workflow's Playground UI to see all required fields. **"Invalid value" errors:** Check the parameter type (string vs number vs integer) and value ranges. **File upload issues:** Ensure you're using `multipart/form-data` content type and the correct field name for file parameters. **Authentication errors:** Verify your `X-API-KEY` header is correct and the API key has access to the specified workflow. For the most reliable testing experience, use the **Playground UI** which automatically handles all parameter discovery and validation for your specific workflow. # Workflow Configuration Source: https://docs.flowscale.ai/deploy-api/configuration Configure your workflows for deployment with FlowScale I/O nodes or advanced API settings To deploy a workflow as an API or playground UI, you must configure the workflow's input and output parameters. By default, the FlowScale platform doesn't automatically determine which nodes should serve as input and output endpoints - this must be explicitly configured. Workflows that haven't been configured for deployment will show a **red cross mark** in your project's workflow sidebar. Properly configured workflows display a **green checkmark**. ## Configuration Methods There are two ways to configure your workflow for deployment: Use specialized FlowScale I/O nodes designed specifically for deployment configuration. This is the simplest and most straightforward approach. Use the advanced configuration interface for complex setups that require granular control over input/output parameters. ## Method 1: FlowScale I/O Nodes The recommended approach uses FlowScale's specialized input and output nodes, which are prefixed with `[FS]` in the node search. ### Adding Input Nodes Double-click on an empty area in the ComfyUI workspace to open the node search dialog Type one of the following input node names: * **InputText** - For text prompts and string inputs * **InputImage** - For image uploads * **InputNumber** - For numeric parameters * **InputSlider** - For slider controls Choose nodes with the **"\[FS]"** prefix, indicating they are FlowScale-specific nodes Connect these input nodes to your workflow where external inputs are needed ### Adding Output Nodes In the node search, type one of the following output node names: * **SaveImage** - For image outputs * **SaveText** - For text outputs * **SaveVideo** - For video outputs * **SaveAudio** - For audio outputs Choose nodes with the **"\[FS]"** prefix Connect these output nodes to capture the final results of your workflow ### Available FlowScale I/O Nodes | Node Type | Purpose | Use Case | | --------------------- | ---------------- | -------------------------------------- | | **\[FS] InputText** | Text input field | Prompts, descriptions, parameters | | **\[FS] InputImage** | Image upload | Reference images, masks, source images | | **\[FS] InputNumber** | Numeric input | Steps, strength, dimensions | | **\[FS] InputSlider** | Range slider | CFG scale, denoise strength | | **\[FS] SaveImage** | Image output | Generated images, processed images | | **\[FS] SaveText** | Text output | Generated text, metadata | | **\[FS] SaveVideo** | Video output | Animated sequences | | **\[FS] SaveAudio** | Audio output | Generated audio files | Detailed ComfyUI workspace view showing proper integration of FlowScale I/O nodes within a complex workflow, highlighting connection patterns and configuration options **Image Description for Team:** Screenshot showing FlowScale I/O nodes integration: ComfyUI workspace with FlowScale I/O nodes being added, \[FS] prefix clearly visible on FlowScale-specific nodes, examples of both input nodes (InputText, InputImage) and output nodes (SaveImage, SaveText), connection process between I/O nodes and existing workflow nodes, professional interface showing the configuration process. ### Verify Configuration After adding FlowScale I/O nodes: Ensure all I/O nodes are properly connected to your workflow Click the **Save** button in the ComfyUI workspace Look for a **green checkmark** next to your workflow in the left sidebar, indicating successful configuration ## Method 2: Advanced API Configuration For more complex scenarios or when you need granular control over the API configuration, you can use the Advanced API Settings. ### Accessing Advanced Settings Click the **three dots icon** next to your workflow in the left sidebar Click on **"Advanced API Settings"** from the dropdown menu Toggle the switch to enable Advanced API Settings mode. This overrides the default FlowScale nodes method. By default, Advanced API Settings are disabled because the platform uses FlowScale I/O nodes as the primary configuration method. Enable this only when you need advanced control. ### Configuring Input and Output Nodes Once Advanced API Settings are enabled, you'll see a dialog with two columns: In the **left column**, select all nodes that should serve as input endpoints for your API In the **right column**, select all nodes that should serve as output endpoints for your API For each selected node: * All available parameters will be displayed with prefilled values from the workflow * **Check the parameters** you want to include in the API * Add **parameter labels** that will be displayed in the playground UI **Important**: Simply selecting a node is not enough. You must also check the specific parameters you want to include. If no parameters are selected for a node, it will not be considered as an input/output. ### Parameter Configuration For each selected parameter, you can configure: * **Parameter inclusion**: Check the box to include the parameter in the API * **Parameter label**: The display name shown in the playground UI * **Default values**: Pre-filled from your workflow configuration ## Impact on API and Playground The I/O configuration directly affects: ### API Generation * **Input parameters** become the API request payload structure * **Output parameters** define the API response format * **Parameter types** determine validation and documentation ### Playground UI * **Input fields** are automatically generated based on configured input nodes * **Output displays** are created for each configured output node * **Parameter labels** are used as field names in the interface ## Best Practices * Use descriptive parameter labels for better user experience * Only expose parameters that users should control * Keep the number of input parameters manageable * Ensure all critical outputs are captured * Test your configuration with the FlowScale I/O nodes first * Verify the playground UI reflects your intended interface * Run test API calls to validate input/output structure * Check that all parameters behave as expected * Start with FlowScale I/O nodes for most use cases * Use Advanced API Configuration only when you need: * Custom parameter grouping * Complex validation rules * Integration with existing workflow nodes * Granular control over API structure ## Deploy Your Workflow Once your workflow is configured (showing a green checkmark), you can deploy it. ### Deployment Process Click the **"Deploy"** button in the top-right corner of the application Application interface with deploy button location clearly marked and highlighted, showing contextual deployment options and readiness indicators **Image Description for Team:** Screenshot showing deploy button location: FlowScale interface with deploy button prominently displayed in top-right corner or main action area, deploy button clearly highlighted (blue/primary color), context showing workflow is ready for deployment (green checkmark visible), professional interface design with clear call-to-action. A dialog box will appear asking you to select the Pod for deployment Advanced pod selection interface showing detailed GPU specifications, pricing tiers, availability status, and performance recommendations for production deployments **Image Description for Team:** Screenshot of pod selection modal showing dialog for selecting deployment pod configuration, list of available GPU types (T4, A10G, L4, L40S, A100 40GB, A100 80GB, H100, H200, B200), resource specifications and pricing for each option, memory and compute requirements display, availability status indicators, "Deploy" and "Cancel" buttons, professional deployment configuration interface. Select the appropriate pod based on your workflow requirements: * **GPU type** needed for your models * **Memory requirements** for your workflow * **Expected usage** patterns Click **Deploy** to start the deployment process For detailed information about pod types, specifications, and choosing the right configuration for your workflow, refer to our [Pods documentation](/getting-started/glossary/pods). ## Next Steps Create shareable interfaces for your configured deployment Integrate your deployment using SDKs or REST APIs # Overview Source: https://docs.flowscale.ai/deploy-api/overview Expose your FlowScale AI workflows as governed services your teams and products can trust. # Deploy Workflows as APIs Transform your ComfyUI workflows into production services with three deployment options: | Use Case | Best Surface | Notes | | --------------------------------- | -------------------------- | ---------------------------------------- | | Quick reviews, creative iteration | **Playground UI** | Guardrails + presets; zero code. | | Product / tool integration | **API or SDK** | Stable contract, versioned schema, auth. | | Automation, batch, agents | **SDK + Scaling controls** | Queues, concurrency, budget caps. | *** ## Core Capabilities * Configure deployments with runtime controls and access permissions * Launch interactive playground UIs for non-technical users * Integrate workflows programmatically via SDKs or REST APIs * Auto-scale GPUs with cost controls and performance monitoring *** ## Audience Quick-Nav **Need:** Auth, endpoints, payload formats, SDK examples **Quick Start:** [JS/TS SDK](/deploy-api/sdk/sdk-js) or [Python SDK](/deploy-api/sdk/sdk-python) **Need:** Governance, safe defaults, usage limits, team access **Quick Start:** [Deployment Configuration](/deploy-api/configuration) **Need:** Risk controls, scaling behavior, integration patterns **Quick Start:** [Security & Governance](/deploy-api/security) *** ## Mental Model {/*

[DEPLOYMENT MENTAL MODEL DIAGRAM PLACEHOLDER]

Conceptual flow diagram showing the progression from ComfyUI workflow artifact through deployment configuration to service surfaces (API endpoints, Playground UI) and finally to scale & governance features. Clean, professional infographic style with clear arrows and labeled stages.

Image Type: Conceptual Diagram | Context: High-level deployment architecture explanation
*/} {/* Image Description for Team: Conceptual diagram showing deployment progression from workflow artifact through configuration, service surfaces, to scale & governance */} Every deployed workflow in FlowScale AI follows this progression: **Workflow Artifact** (your ComfyUI graph + assets)\ → **Deployment Configuration** (runtime, schema, permissions)\ → **Service Surfaces** (API endpoint, Playground UI, SDK bindings)\ → **Scale & Governance** (metrics, scaling, budgets) *** ## Quick Start (5 Minutes) Pick a saved workflow and click **Deploy** → Select runtime + access scope → Publish **v1** Generate **Playground Link** and test parameter variations with guardrails Copy the **API Endpoint** → paste into SDK quick start examples below Open **Runs** tab to see generation and outputs real-time ### SDK Examples ```javascript JavaScript import { FlowscaleAPI } from 'flowscale'; const flowscale = new FlowscaleAPI({ apiKey: 'your-api-key', baseUrl: 'your-api-url', allowDangerouslyExposeApiKey: true // Required acknowledgment }); const workflowId = "your-workflow-id"; // UUID format const inputs = { prompt: 'A serene mountain landscape at sunset', width: 1024, height: 1024 } const result = await flowscale.executeWorkflowAsync(workflowId, inputs); console.log('Workflow Result:', result); ``` ```python Python import flowscale client = flowscale.Client(api_key="fs_your_api_key_here") result = client.run( workflow_id="text-to-image-v1", inputs={ "prompt": "A serene mountain landscape at sunset", "width": 1024, "height": 1024 } ) print(result.images[0].url) ``` ```bash cURL curl -X POST https://api.flowscale.ai/v1/run \ -H "Authorization: Bearer fs_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "text-to-image-v1", "inputs": { "prompt": "A serene mountain landscape at sunset", "width": 1024, "height": 1024 } }' ``` *** ## Service Surfaces Explained ### API Endpoints **When to use:** Product integration, backend automation, webhook triggers **Key features:** * RESTful HTTP interface with auto-generated OpenAPI docs * Strongly-typed input validation and structured outputs * Authentication via API keys with fine-grained permissions * Async job support for long-running workflows ### Playground UIs **When to use:** Creative review cycles, stakeholder demos, non-technical team access **Key features:** * Auto-generated interfaces based on workflow parameters * Parameter presets and validation guardrails * Shareable links with access controls ### SDK Integration **When to use:** Application development, batch processing, programmatic automation **Key features:** * Type-safe clients for JavaScript/TypeScript and Python * Built-in retry logic and error handling * Streaming support for real-time outputs * Environment-specific best practices (frontend vs. server) *** ## Enterprise Features * **Cost Controls**: Budget caps and spending alerts * **Brand Safety**: Parameter restrictions and model locking * **Security**: HTTPS, audit logging, SOC 2 compliance *** ## Deployment Patterns by Use Case **Pattern:** Playground UI with parameter presets **Configuration:** * Restricted parameter ranges for brand safety * Low-cost GPU tiers for occasional use **Example:** Creative team reviews ad variations before campaign launch **Pattern:** API + custom frontend with team authentication **Configuration:** * Team-scoped API keys with role-based permissions * Moderate scaling limits for predictable costs * Integration with existing SSO systems * Audit trails for compliance requirements **Example:** Marketing tool for generating social media assets **Pattern:** SDK integration with production SLAs **Configuration:** * Auto-scaling with performance guarantees * Versioned deployments for stable contracts * High-availability GPU pools * Comprehensive monitoring and alerting **Example:** E-commerce app generating product images on-demand **Pattern:** Batch SDK calls with queue management **Configuration:** * High concurrency limits for batch processing * Cost optimization via spot instances * Webhook callbacks for async workflows * Dead letter queues for error handling **Example:** Content pipeline processing thousands of images nightly *** ## Next Steps ### Integration Connect workflows to web applications and Node.js services Integrate workflows into data pipelines and ML applications ### Configuration Authentication, versioning, and governance controls Auto-scaling, cost optimization, and performance management ### Documentation Safe, intuitive interfaces for non-technical users Complete endpoint documentation with examples *** # Playground UI Source: https://docs.flowscale.ai/deploy-api/playgrounds Test and share your deployed workflows with interactive, user-friendly playground interfaces **This is the moment your technical AI workflow becomes accessible to everyone.** Playground UIs transform your sophisticated ComfyUI creations into polished, user-friendly interfaces that anyone can use—no technical knowledge required. **The "aha" moment:** Watch non-technical team members, clients, or stakeholders use your complex AI workflows as easily as filling out a web form. What took you hours to perfect in ComfyUI now takes them seconds to use effectively. **Automatic Magic:** Every workflow you deploy instantly generates its own playground. No additional configuration, no UI development, no user training required. Your ComfyUI logic becomes a professional web application automatically. ## Sharing Your AI Innovation **Ready to see your workflow in action through fresh eyes?** Opening a playground transforms the experience from "let me show you how this works" to "try it yourself and see what you can create." ### Opening Your User-Friendly Interface Go to the **API Server** section of your project from the main navigation Locate the workflow you want to test in the **Deployed Workflows** list Click to expand the workflow entry to reveal additional options and information Click the **"Open Playground"** button to launch the playground interface in a new tab API server management page with Open Playground button highlighted, showing workflow deployment status and playground access controls {/* Image Description for Team: Screenshot of API Server page showing deployed workflows list with one expanded to show Open Playground button highlighted */} {/* Image Description for Team: Screenshot of main API Server interface showing workflow list with status indicators and playground access pathway */} ## Playground Interface ### Interface Design: Complexity Hidden, Power Preserved **Here's where thoughtful design shines:** Your playground presents a clean, intuitive interface that hides all the ComfyUI complexity while preserving every bit of your workflow's creative power. **Design philosophy:** Users see only what they need to control, in language they understand, with guardrails that prevent mistakes. Your sophisticated AI logic becomes as approachable as any consumer web application. **Input Controls** * Parameter fields based on your workflow configuration * Input types match your FlowScale I/O nodes (text fields, sliders, image uploads) * Default values pre-filled from your workflow settings * **Generate button** at the bottom to execute the workflow **Results Display** * Output sections for each configured output node * Real-time display of generated content (images, text, etc.) * Download options for generated files * Generation status and progress indicators Playground interface showing optimal two-column layout with input controls on left, output display on right, and clear visual separation between input and result areas {/* Image Description for Team: Screenshot of full playground interface showing two-column layout with input controls on left and output display on right */} {/* Image Description for Team: Screenshot of detailed playground interface showing professional web app with intuitive controls and real-time feedback */} ### Input Field Types The input fields in your playground directly correspond to the FlowScale I/O nodes you configured: | Input Node Type | Playground Control | Description | | --------------------- | ------------------ | --------------------------------------- | | **\[FS] InputText** | Text area/field | Multi-line or single-line text input | | **\[FS] InputImage** | File upload | Drag-and-drop or click to upload images | | **\[FS] InputNumber** | Number input | Numeric field with validation | | **\[FS] InputSlider** | Range slider | Interactive slider with min/max values | 💡 **Lightbulb Moment:** The input fields you see are exactly the parameters you chose to expose when configuring your workflow. This is where your thoughtful I/O design pays off—users see an intuitive interface because you made intentional choices about what to show and what to keep internal. **Interface refinement:** If the playground doesn't feel quite right, you can always refine your [workflow I/O configuration](/deploy-api/configuration) to better match your users' needs. Great interfaces evolve through real user feedback. ## GPU Status Monitoring ### Understanding GPU States The top-right corner of every playground displays real-time GPU status information: **Gray indicator**: GPU is ready and waiting for requests. Fastest response time for new generations. **Green indicator**: GPU is actively processing your request. Generation in progress. **Orange indicator**: GPU is warming up and loading models. First request after idle period. Playground header showing GPU status indicator with different operational states {/* Image Description for Team: Screenshot of playground header showing GPU status indicator in different states with status text and workflow controls */} ### Performance Implications * **Response Time**: Immediate (\< 1 second to start) * **Best For**: Interactive testing and real-time workflows * **Cost**: Active compute resources maintained * **Response Time**: 30-120 seconds initial delay * **Occurs When**: First request after period of inactivity * **Best For**: Batch processing and non-time-sensitive tasks * **Cost**: Lower cost as resources scale to zero when unused * **Response Time**: Depends on workflow complexity * **Queue Behavior**: Additional requests queue until completion * **Best For**: Sequential generation tasks * **Monitoring**: Progress indicators show generation status ## Using the Playground ### Running Your Workflow Fill in the required input fields on the left side: * Enter text prompts, descriptions, or parameters * Upload reference images if your workflow requires them * Adjust numeric values and sliders to your preferences Click the **Generate** button at the bottom of the left column to start the workflow Watch the GPU status indicator and any progress bars that appear during generation Generated outputs appear in the right column as they become available {/* Image Description for Team: Multi-panel sequence showing complete playground workflow from input configuration to results display */} ### Generation Process During generation, you'll see: * **Progress indicators** showing workflow execution stages * **GPU status updates** reflecting current processing state * **Partial results** appearing as they're generated (for multi-step workflows) * **Completion notifications** when generation finishes Generation time varies based on workflow complexity, model size, and current GPU state. Simple text workflows may complete in seconds, while high-resolution image generation can take several minutes. ## Sharing and Collaboration ### Shareable Links Every playground has a unique, shareable URL that enables team collaboration: **Share with colleagues** who need to test or use your workflow without ComfyUI knowledge **Present to stakeholders** with a clean, professional interface that hides technical complexity **Enable creative teams** to experiment with parameters and generate variations **Facilitate testing** by non-technical team members for validation and feedback ### Sharing Best Practices Verify your playground works correctly with various input combinations Provide guidance on what inputs work best for your specific workflow Configure sensible default values so users can generate results immediately **Security Note**: Playground links provide access to your deployed workflow. Only share with trusted team members and consider implementing access controls for sensitive workflows. ## Playground Benefits ### For Technical Teams * Test parameter combinations quickly without ComfyUI complexity * Iterate on workflow improvements with immediate feedback * Validate configuration changes before API integration * Systematic testing of edge cases and input variations * Documentation of expected behaviors and outputs * Regression testing when updating workflow versions ### For Non-Technical Users * Experiment with AI-generated content without technical barriers * Discover optimal parameter settings through intuitive controls * Generate variations and iterations for creative projects * Streamlined workflow for regular content generation * Consistent results through pre-configured parameters * Immediate access to generated assets with download options {/* ## Troubleshooting ### Common Issues **Cause**: GPU cold starting after idle period **Solution**: Wait for warm-up (30-120 seconds) or consider keeping instances warm **Cause**: Workflow not properly configured for deployment **Solution**: Return to [configuration](/deploy-api/configuration) and add missing I/O nodes **Cause**: Invalid inputs or workflow errors **Solution**: Check input validation and test workflow in ComfyUI workspace **Cause**: Playground link restrictions or expired sessions **Solution**: Verify access permissions and generate new playground link if needed ### Performance Optimization **Best Practices:** - Use recommended input ranges shown in field descriptions - Optimize image sizes for faster processing - Test with minimal viable inputs first - Cache frequently used reference images **Efficiency Tips:** - Download generated assets promptly to free GPU memory - Use appropriate output formats for your use case - Monitor generation costs in high-usage scenarios - Consider batch processing for multiple generations */} ## Integration with Development Workflow ### From Playground to Production Use the playground to validate workflow behavior and optimal parameters Record successful parameter combinations and expected outputs Use the playground results to inform your API integration approach Translate playground interactions into programmatic API calls using [SDKs](/deploy-api/sdk/sdk-python) ### API Equivalent Every playground interaction has a corresponding API call. Use the playground to: * **Validate request formats** before writing API integration code * **Test error conditions** and understand response structures * **Optimize parameters** for your specific use case * **Generate example requests** for API documentation ```javascript Playground to API // Playground interaction { "prompt": "A beautiful sunset over mountains", "steps": 25, "width": 1024, "height": 1024 } // Equivalent API call const response = await fetch('/api/v1/workflows/run', { method: 'POST', headers: { 'Authorization': 'Bearer your-api-key', 'Content-Type': 'application/json' }, body: JSON.stringify({ workflow_id: 'wf_abc123', inputs: { prompt: "A beautiful sunset over mountains", steps: 25, width: 1024, height: 1024 } }) }); ``` ## Next Steps Integrate playground-tested workflows into applications via code # JavaScript/TypeScript SDK Source: https://docs.flowscale.ai/deploy-api/sdk/sdk-js Transform your deployed ComfyUI workflows into powerful application features with production-ready JavaScript and TypeScript integration. Integrate deployed ComfyUI workflows into JavaScript and TypeScript applications using the FlowScale SDK. **Production Security Best Practices** **Your AI workflows are now business infrastructure—protect them accordingly.** When integrating into client-side applications, your API keys become visible to users, which could lead to unauthorized usage and unexpected costs. **Recommended Architecture:** * **Backend Integration**: Use this SDK in Node.js servers where API keys remain secure * **Proxy Pattern**: Create your own API endpoints that internally call FlowScale AI * **Rate Limiting**: Control usage to prevent abuse and manage costs **If you must use client-side**: Set `allowDangerouslyExposeApiKey: true` to acknowledge the security implications. ## Installation ```bash npm npm install flowscale ``` ```bash yarn yarn add flowscale ``` ```bash pnpm pnpm add flowscale ``` ```bash bun bun install flowscale ``` ## Quick Start Connect to your deployed workflows: ```typescript Node.js (Recommended) import { FlowscaleAPI } from 'flowscale'; // Store API keys in environment variables const apiKey = process.env.FLOWSCALE_API_KEY; const apiUrl = process.env.FLOWSCALE_API_URL; const flowscale = new FlowscaleAPI({ apiKey, baseUrl: apiUrl }); ``` ```typescript Browser (Not Recommended) import { FlowscaleAPI } from 'flowscale'; // ⚠️ WARNING: This will expose your API key to users const flowscale = new FlowscaleAPI({ apiKey: 'your-api-key', baseUrl: 'https://your-api-url.pod.flowscale.ai', allowDangerouslyExposeApiKey: true // Explicitly acknowledge the security risk }); ``` ### Environment Variables Add the following to your `.env` file: ```bash FLOWSCALE_API_KEY=your-api-key FLOWSCALE_API_URL=https://your-api-url.pod.flowscale.ai ``` ### Architecture Patterns for Production Applications **Choose the integration pattern that matches your application's needs:** **Best for:** Web applications, mobile app backends, automation systems **Benefits:** * Secure API key management * Rate limiting and cost control * User authentication and authorization * Request logging and monitoring **Use cases:** User-facing applications, internal tools, automated workflows **Best for:** Prototypes, demos, public tools where usage costs are acceptable **Considerations:** * API keys visible to users * Direct billing exposure * Limited access control * Suitable for public/demo applications **Use cases:** Interactive demos, public creative tools, proof-of-concepts ## Configuration ```typescript const flowscale = new FlowscaleAPI({ apiKey: process.env.FLOWSCALE_API_KEY, baseUrl: process.env.FLOWSCALE_API_URL, timeout: 60000, retries: 3 }); ``` ## Core Methods ### Health Check ```typescript const health = await flowscale.checkHealth(); ``` ```json { "status": "success", "data": [ { "container": "container #1", "status": "idle" }, { "container": "container #2", "status": "running" } ] } ``` #### Get Queue Status Retrieve the current workflow queue status: ```typescript const queue = await flowscale.getQueue(); console.log('Queue Details:', queue); ``` ```json { "status": "success", "data": [ { "container": "container #1", "queue": { "queue_running": [ [0, "2a0babc4-acce-4521-9576-00fa0e6ecc91"] ], "queue_pending": [ [1, "5d60718a-7e89-4c64-b32d-0d1366b44e2a"] ] } } ] } ``` ### Workflow Management #### List Available Workflows Get all deployed workflows in your cluster: ```typescript const workflows = await flowscale.getWorkflows(); console.log('Available Workflows:', workflows); ``` ```json { "status": "success", "data": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Text to Image", "description": "Generate an image from text input", "inputs": "{ \"text_51536\": \"string\" }", "outputs": "{ \"image_output\": \"image\" }" }, { "id": "660f9411-f30c-52e5-b827-557766551111", "name": "Image to Image", "description": "Transform an existing image", "inputs": "{ \"image_input\": \"image\", \"prompt\": \"string\" }", "outputs": "{ \"transformed_image\": \"image\" }" } ] } ``` ### Executing Workflows #### Execute Workflow (Synchronous) Trigger a workflow execution and get immediate response: ```typescript const workflowId = "550e8400-e29b-41d4-a716-446655440000"; const groupId = "test_group"; // Optional for organizing runs const inputs = { "text_51536": "A beautiful sunset over mountains", "image_1234": fileOrBlob, // File or Blob object "video_1239": videoFile // File or Blob object }; const result = await flowscale.executeWorkflow(workflowId, inputs, groupId); console.log('Workflow Result:', result); ``` ```json { "status": "success", "data": { "run_id": "808f34d0-ef97-4b78-a00f-1268077ea6db", "workflow_id": "550e8400-e29b-41d4-a716-446655440000" } } ``` #### Execute Workflow (Asynchronous with Auto-Polling) Execute a workflow and automatically wait for the result: ```typescript const workflowId = "550e8400-e29b-41d4-a716-446655440000"; const inputs = { "text_51536": "A serene lake at dawn", "image_1234": imageFile }; try { // Auto-polls every 2 seconds, times out after 10 minutes by default const result = await flowscale.executeWorkflowAsync( workflowId, inputs, "my_group", // groupId (optional) 2000, // pollIntervalMs (optional) 600000 // timeoutMs (optional) ); console.log('Workflow Result:', result); } catch (error) { if (error.message.includes('timed out')) { console.error('Workflow took too long to complete'); } else { console.error('Workflow error:', error); } } ``` **Migration Notice - executeWorkflowAsync Response Format** Starting from **v1.0.18**, `executeWorkflowAsync` automatically detects single vs multiple outputs and returns the appropriate format for backward compatibility: * **Single Output**: Returns legacy format with deprecation warning * **Multiple Outputs**: Returns new array format For new applications, use the new array format which supports multiple outputs. ```json { "status": "success", "data": [ { "filename": "output_image_1.png", "download_url": "https://runs.s3.amazonaws.com/generations/...", "generation_status": "success" }, { "filename": "output_image_2.png", "download_url": "https://runs.s3.amazonaws.com/generations/...", "generation_status": "success" } ] } ``` ### Managing Workflow Runs #### Get Run Details Retrieve detailed information about a specific run: ```typescript const runDetails = await flowscale.getRun('808f34d0-ef97-4b78-a00f-1268077ea6db'); console.log('Run Details:', runDetails); ``` ```json { "status": "success", "data": { "_id": "808f34d0-ef97-4b78-a00f-1268077ea6db", "status": "completed", "inputs": [ { "path": "text_51536", "value": "a man riding a bike" } ], "outputs": [ { "filename": "filename_prefix_58358_5WWF7GQUYF.png", "url": "https://runs.s3.amazonaws.com/generations/..." } ] } } ``` #### Get Multiple Runs Retrieve runs by group ID or get all runs: ```typescript // Get runs for a specific group const runs = await flowscale.getRuns('test_group'); console.log('Runs for Group:', runs); // Get all runs for the team const allRuns = await flowscale.getRuns(); console.log('All Runs:', allRuns); ``` ```json { "status": "success", "data": { "group_id": "test_group", "count": 2, "runs": [ { "_id": "cc29a72d-75b9-4c7b-b991-ccaf2a04d6ea", "status": "completed", "outputs": [ { "filename": "filename_prefix_58358_G3DRLIVVYP.png", "url": "https://runs.s3.amazonaws.com/generations/..." } ] } ] } } ``` #### Cancel Running Workflow Cancel a workflow execution using its run ID: ```typescript const result = await flowscale.cancelRun('808f34d0-ef97-4b78-a00f-1268077ea6db'); console.log('Cancellation Result:', result); ``` ```json { "status": "success", "data": "Run cancelled successfully" } ``` ### Retrieving Outputs #### Get Workflow Output Fetch the output of a completed workflow: ```typescript const output = await flowscale.getOutput('filename_prefix_58358_5WWF7GQUYF.png'); console.log('Workflow Output:', output); ``` ```json { "status": "success", "data": { "download_url": "https://runs.s3.amazonaws.com/generations/...", "generation_status": "success" } } ``` ## TypeScript Support ### Type Definitions The SDK includes comprehensive TypeScript definitions: ```typescript interface WorkflowInput { [key: string]: string | number | boolean | File | Blob; } interface WorkflowResult { id: string; status: 'completed' | 'failed' | 'running'; images?: Array<{ url: string; width: number; height: number; format: string; }>; outputs?: { [key: string]: any }; metadata?: { executionTime: number; gpuType: string; cost: number; }; } interface ExecutionOptions { timeout?: number; webhookUrl?: string; priority?: 'low' | 'normal' | 'high'; metadata?: { [key: string]: any }; } ``` ### Workflow-Specific Types Generate types for your specific workflows: ```typescript // Define types for your workflow interface TextToImageInputs { prompt: string; negative_prompt?: string; width: number; height: number; steps: number; cfg_scale: number; seed?: number; } interface TextToImageResult extends WorkflowResult { images: Array<{ url: string; width: number; height: number; seed: number; }>; } // Use with the SDK const result = await flowscale.executeWorkflow('text-to-image-v2', { prompt: 'A majestic mountain range', width: 1024, height: 1024, steps: 20, cfg_scale: 7.5 }); // TypeScript knows the shape of the result const imageUrl: string = result.images[0].url; ``` ## File Handling ### Uploading Files Handle image and file uploads seamlessly across different environments: ```typescript // Browser file upload from input element const fileInput = document.getElementById('imageUpload') as HTMLInputElement; const file = fileInput.files?.[0]; if (file) { const result = await flowscale.executeWorkflow('image-to-image', { image: file, // Direct file upload prompt: 'Make it artistic', strength: 0.7 }); } ``` ```typescript // From URL const result = await flowscale.executeWorkflow('image-to-image', { image: 'https://example.com/input-image.jpg', prompt: 'Add magical effects' }); ``` ```typescript // From base64 const base64Image = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...'; const result = await flowscale.executeWorkflow('image-enhancement', { image: base64Image, enhancement_type: 'upscale' }); ``` ### Downloading Results ```typescript // Get output URL from workflow result const output = await flowscale.getOutput('filename_prefix_58358_5WWF7GQUYF.png'); const imageUrl = output.data.download_url; // Download image as blob (browser) const response = await fetch(imageUrl); const imageBlob = await response.blob(); // Save to file (Node.js) import fs from 'fs'; const buffer = Buffer.from(await imageBlob.arrayBuffer()); fs.writeFileSync('generated-image.png', buffer); // Display in browser const objectUrl = URL.createObjectURL(imageBlob); document.getElementById('result-image').src = objectUrl; ``` ## Error Handling ### Comprehensive Error Handling ```typescript import { FlowScaleError, NetworkError, ValidationError } from 'flowscale'; try { const result = await flowscale.executeWorkflow('my-workflow', { prompt: 'A beautiful landscape' }); } catch (error) { if (error instanceof ValidationError) { console.error('Invalid inputs:', error.details); // Handle validation errors (e.g., show user-friendly messages) } else if (error instanceof NetworkError) { console.error('Network error:', error.message); // Handle network issues (e.g., retry logic) } else if (error instanceof FlowScaleError) { console.error('FlowScale API error:', error.message, error.code); // Handle API-specific errors } else { console.error('Unexpected error:', error); } } ``` ### Retry Logic ```typescript async function executeWithRetry(workflowId: string, inputs: any, maxRetries = 3) { for (let attempt = 1; attempt <= maxRetries; attempt++) { try { return await flowscale.executeWorkflow(workflowId, inputs); } catch (error) { if (attempt === maxRetries) throw error; // Exponential backoff const delay = Math.pow(2, attempt) * 1000; await new Promise(resolve => setTimeout(resolve, delay)); console.log(`Retry attempt ${attempt + 1}/${maxRetries}`); } } } ``` ## React Integration ### Custom Hook Create a React hook for easy workflow execution: ```tsx import { useState, useCallback } from 'react'; import { FlowscaleAPI } from 'flowscale'; const flowscale = new FlowscaleAPI({ apiKey: process.env.REACT_APP_FLOWSCALE_API_KEY, baseUrl: process.env.REACT_APP_FLOWSCALE_API_URL }); export function useFlowScale() { const [loading, setLoading] = useState(false); const [error, setError] = useState(null); const executeWorkflow = useCallback(async (workflowId: string, inputs: any, groupId?: string) => { setLoading(true); setError(null); try { const result = await flowscale.executeWorkflowAsync(workflowId, inputs, groupId); return result; } catch (err) { setError(err as Error); throw err; } finally { setLoading(false); } }, []); return { executeWorkflow, loading, error }; } ``` ### Component Example ```tsx import React, { useState } from 'react'; import { useFlowScale } from './hooks/useFlowScale'; export function ImageGenerator() { const [prompt, setPrompt] = useState(''); const [result, setResult] = useState(null); const { executeWorkflow, loading, error } = useFlowScale(); const generateImage = async () => { try { const result = await executeWorkflow('text-to-image', { text_51536: prompt }); setResult(result); } catch (error) { console.error('Generation failed:', error); } }; return (
setPrompt(e.target.value)} placeholder="Enter your prompt..." /> {error &&
{error.message}
} {result?.data?.download_url && ( Generated )}
); } ``` ## WebSocket Support The SDK provides WebSocket functionality for real-time communication: ### Connecting to WebSocket ```typescript // Connect to WebSocket and set up event handlers const disconnect = flowscale.connectWebSocket({ onOpen: () => { console.log('WebSocket connected!'); }, onMessage: (message) => { console.log('Received message:', message); if (message.type === 'run_status_update') { console.log('Run status updated:', message.data); } }, onClose: (event) => { console.log('WebSocket closed:', event.code, event.reason); }, onError: (error) => { console.error('WebSocket error:', error); } }); // Later, to disconnect: disconnect(); ``` ### Sending Messages ```typescript const success = flowscale.sendWebSocketMessage({ type: 'client_event', data: { action: 'subscribe', runId: '808f34d0-ef97-4b78-a00f-1268077ea6db' } }); if (success) { console.log('Message sent successfully'); } else { console.error('Failed to send message'); } ``` ## Security Features ### Proxy Mode Configuration For secure frontend usage, use proxy mode to keep your API key safe: ```typescript // ✅ SECURE: No API key exposed to frontend users const flowscale = new FlowscaleAPI({ baseUrl: 'https://your-backend-proxy.com', // Your secure backend proxy proxyMode: true, // Enable proxy mode customHeaders: { 'Authorization': 'Bearer jwt-token-here' // Use JWT tokens instead } }); ``` ### Dynamic Header Management ```typescript // Update JWT token without recreating SDK instance flowscale.updateCustomHeaders({ 'Authorization': 'Bearer new-jwt-token' }); // Get current headers const headers = flowscale.getCustomHeaders(); // Clear all custom headers flowscale.clearCustomHeaders(); ``` ## Best Practices ### Environment Configuration Always store sensitive information such as API keys in environment variables: ```bash # .env file FLOWSCALE_API_KEY=your-api-key FLOWSCALE_API_URL=https://your-api-url.pod.flowscale.ai ``` ```typescript // Use environment variables const flowscale = new FlowscaleAPI({ apiKey: process.env.FLOWSCALE_API_KEY, baseUrl: process.env.FLOWSCALE_API_URL }); ``` ### Performance Optimization ```typescript // Reuse client instances const flowscale = new FlowscaleAPI({ apiKey: process.env.FLOWSCALE_API_KEY, baseUrl: process.env.FLOWSCALE_API_URL }); // Use connection pooling for high-volume applications const flowscale = new FlowscaleAPI({ apiKey: process.env.FLOWSCALE_API_KEY, baseUrl: process.env.FLOWSCALE_API_URL, httpAgent: new https.Agent({ keepAlive: true }) }); // Cache results when appropriate const cache = new Map(); async function getCachedResult(cacheKey: string, workflowId: string, inputs: any) { if (cache.has(cacheKey)) { return cache.get(cacheKey); } const result = await flowscale.executeWorkflowAsync(workflowId, inputs); cache.set(cacheKey, result); return result; } ``` ### Security ```typescript // Never expose API keys in client-side code // Use environment variables or secure key management // Validate inputs on both client and server function validateInputs(inputs: any) { if (!inputs.prompt || inputs.prompt.length > 1000) { throw new Error('Invalid prompt'); } // Add more validation... } // Always use HTTPS const flowscale = new FlowscaleAPI({ apiKey: process.env.FLOWSCALE_API_KEY, baseUrl: 'https://your-api-url.pod.flowscale.ai' // Always use HTTPS }); ``` ### Testing and Debugging * Test workflows in a development environment before deploying to production * Validate inputs to ensure they match the workflow requirements * Wrap API calls in try-catch blocks to handle errors gracefully * Use the SDK's logging functionality for debugging: ```typescript // Enable debug logging for development const flowscale = new FlowscaleAPI({ apiKey: process.env.FLOWSCALE_API_KEY, baseUrl: process.env.FLOWSCALE_API_URL, enableLogging: true, logLevel: 'debug' }); ``` ### Batch Processing Process multiple inputs efficiently: ```typescript const prompts = [ 'A sunset over the ocean', 'A mountain landscape', 'A city skyline at night' ]; const results = await Promise.all( prompts.map(prompt => flowscale.executeWorkflowAsync('text-to-image', { text_51536: prompt }) ) ); console.log('Generated', results.length, 'images'); ``` ## Examples & Recipes Complete React app for text-to-image generation using workflows Transform existing images with AI-powered workflows Process multiple images efficiently with concurrent execution Get real-time updates on workflow execution status Handle file uploads in browser and Node.js environments Robust error handling and automatic retry mechanisms ## Support Need help with the JavaScript SDK? Complete API documentation and endpoint reference Official NPM package with installation instructions Chat with other developers and get community support Direct support for technical issues and questions Complete guides and tutorials for getting started # Python SDK Source: https://docs.flowscale.ai/deploy-api/sdk/sdk-python Transform your deployed ComfyUI workflows into powerful Python applications with production-ready integration and comprehensive features. **Your ComfyUI workflows are deployed as APIs—now let's integrate them into Python applications.** This SDK transforms your creative AI work into application features that users can access through web services, data pipelines, automation systems, and interactive tools. **What you're building:** Instead of asking users to understand ComfyUI or API endpoints, you're creating seamless experiences where AI capabilities feel like native Python functions. Your workflows become the invisible intelligence powering data processing, web applications, and automated systems. **🚀 What's New in v1.1.4** * **🔄 Updated Response Format**: Both `execute_workflow` and `execute_workflow_async` now return `workflow_id` alongside `run_id` * **✨ Enhanced Polling**: Improved `execute_workflow_async` with better run status detection and failure handling * **📚 Comprehensive Documentation**: Advanced usage examples for FastAPI, Django, Flask, and Jupyter integration * **🖼️ Dynamic Parameters**: Full support for dynamic parameter names matching your ComfyUI workflow structure * **📤 Multiple File Support**: Handle multiple images, videos, and files in single workflow execution * **📊 Pagination & Filtering**: Enhanced `get_runs()` with sorting, filtering, and pagination capabilities ## Installation: Adding AI Power to Your Python Projects **Ready to bring your AI workflows into your Python applications?** Install the FlowScale SDK to start integrating your deployed ComfyUI workflows into any Python project. **What this enables:** Your users won't interact with ComfyUI or see API endpoints—they'll experience AI capabilities as seamless Python functions. Image generation, style transfer, content creation, and other AI workflows become as simple as calling a method. ```bash pip pip install flowscale ``` ```bash pipenv pipenv install flowscale ``` ```bash poetry poetry add flowscale ``` ```bash conda conda install -c conda-forge flowscale ``` ## Quick Start: From Deployment to Integration **Prerequisites:** You should have already deployed your ComfyUI workflow as an API through the FlowScale AI platform. If you haven't, complete the [Deploy Workflows guide](/getting-started/deploy-workflows) first. ### Connecting Your Python Application to Your AI Infrastructure **This is where your deployed AI workflows become Python application features.** Import the SDK and connect to the production APIs you've already created: ```python Basic Usage from flowscale import FlowscaleAPI import os # Store API keys in environment variables api_key = os.environ.get("FLOWSCALE_API_KEY") api_url = os.environ.get("FLOWSCALE_API_URL") if not api_key or not api_url: print("FLOWSCALE_API_KEY or FLOWSCALE_API_URL not set in environment") exit(1) flowscale = FlowscaleAPI(api_key, api_url) ``` ```python With Configuration from flowscale import FlowscaleAPI import os # Initialize with custom configuration flowscale = FlowscaleAPI( api_key=os.environ.get("FLOWSCALE_API_KEY"), api_url=os.environ.get("FLOWSCALE_API_URL"), timeout=600, # 10 minutes max_retries=5, enable_logging=True, log_level="debug" ) ``` ### Environment Variables Add the following to your `.env` file: ```bash FLOWSCALE_API_KEY=your-api-key FLOWSCALE_API_URL=https://your-api-url.pod.flowscale.ai ``` ### Integration Patterns for Production Applications **Choose the integration pattern that matches your application's needs:** **Best for:** API endpoints, web applications, microservices **Benefits:** * Production-ready web framework integration * Built-in authentication and validation * Scalable request handling * Easy deployment and monitoring **Use cases:** REST APIs, web applications, background job processing **Best for:** Jupyter notebooks, data science workflows, batch processing **Benefits:** * Interactive development and experimentation * Integration with data science libraries * Batch processing capabilities * Research and development workflows **Use cases:** Data analysis, model training pipelines, research projects **Best for:** Command-line tools, automation scripts, scheduled tasks **Benefits:** * Simple script execution * Easy integration with existing systems * Automation and scheduling * File processing workflows **Use cases:** Content processing, automated workflows, system integration ## Configuration ### Client Options ```python from flowscale import FlowscaleAPI flowscale = FlowscaleAPI( api_key="your-api-key", api_url="https://your-api-url.pod.flowscale.ai", timeout=300, # Request timeout in seconds (default: 300) max_retries=3, # Number of retry attempts (default: 3) retry_delay=1.0, # Delay between retries in seconds (default: 1.0) enable_logging=True, # Enable SDK logging (default: True) log_level="info", # Log level: debug, info, warn, error (default: info) user_agent="MyApp/1.0" # Custom user agent string ) ``` ### Logging Configuration The SDK includes configurable logging to help with debugging and monitoring: ```python import logging from flowscale import FlowscaleAPI # Configure logging during initialization flowscale = FlowscaleAPI( api_key="your-api-key", api_url="https://your-api-url.pod.flowscale.ai", enable_logging=True, log_level="debug" ) # Change logging settings after initialization flowscale.set_logging_config(enabled=True, level="debug") # Disable logging completely flowscale.set_logging_config(enabled=False) # Use custom logger custom_logger = logging.getLogger("my_app.flowscale") flowscale.set_logger(custom_logger) ``` * **debug**: Most verbose, includes detailed operation information * **info**: General information about operations (default) * **warn**: Warning messages for potential issues * **error**: Only error messages All logs are prefixed with timestamp and level: ``` [FlowScale INFO] 2025-01-15 10:30:45,123: Executing workflow bncu0a1kipv [FlowScale DEBUG] 2025-01-15 10:30:46,456: Polling workflow output: {'status': 'running'} ``` ## Core Methods ### Platform Health and Status #### Check Health Status Monitor the health of the FlowScale platform, including container status: ```python health = flowscale.check_health() print(f"API Health: {health}") ``` ```json { "status": "success", "data": [ { "container": "container #1", "status": "idle" }, { "container": "container #2", "status": "running" } ] } ``` #### Get Queue Status Retrieve the current workflow queue status: ```python queue = flowscale.get_queue() print(f"Queue Details: {queue}") ``` ```json { "status": "success", "data": [ { "container": "container #1", "queue": { "queue_running": [ [0, "2a0babc4-acce-4521-9576-00fa0e6ecc91"] ], "queue_pending": [ [1, "5d60718a-7e89-4c64-b32d-0d1366b44e2a"] ] } } ] } ``` ### Workflow Execution #### Execute Workflow (Synchronous) Trigger a workflow execution and get immediate response: ```python workflow_id = "bncu0a1kipv" group_id = "test_group" # Optional for organizing runs # Basic usage with text inputs inputs = { "text_51536": "Prompt test", "another_param": "some value" } # Advanced usage with files and dynamic parameters inputs = { "text_51536": "A beautiful sunset over mountains", "image_35728": open("path/to/image.png", "rb"), # File object "image_42561": "path/to/another_image.jpg", # File path (auto-detected) "video_1239": open("path/to/video.mp4", "rb") # Multiple file types } result = flowscale.execute_workflow(workflow_id, inputs, group_id) print(f"Workflow Result: {result}") ``` ```json { "status": "success", "data": { "run_id": "808f34d0-ef97-4b78-a00f-1268077ea6db", "workflow_id": "550e8400-e29b-41d4-a716-446655440000" } } ``` #### Execute Workflow (Asynchronous with Auto-Polling) Execute a workflow and automatically poll for its output until completion: ```python workflow_id = "bncu0a1kipv" # Simple usage inputs = { "text_51536": "A serene lake at dawn", "image_1234": open("path/to/image.png", "rb") } # Auto-polls every 2 seconds, times out after 10 minutes by default result = flowscale.execute_workflow_async(workflow_id, inputs) print(f"Workflow Result: {result}") # With custom timeout and polling interval result = flowscale.execute_workflow_async( workflow_id, inputs, group_id="my_group", timeout=600, # 10 minutes polling_interval=5 # Check every 5 seconds ) # With multiple dynamic image parameters inputs = { "prompt_text": "A beautiful landscape", "image_35728": open("reference1.png", "rb"), "image_42561": open("reference2.jpg", "rb"), "style_image_789": "path/to/style.png" } try: result = flowscale.execute_workflow_async( workflow_id, inputs, group_id="batch_001", timeout=600, # 10 minutes polling_interval=2 # Check every 2 seconds ) print("Success:", result) except Exception as e: if "timed out" in str(e): print("Workflow took too long to complete") else: print("Workflow error:", e) ``` ```json { "run_id": "808f34d0-ef97-4b78-a00f-1268077ea6db", "workflow_id": "550e8400-e29b-41d4-a716-446655440000", "outputs": { "filename_prefix_58358_5WWF7GQUYF": { "status": "success", "data": { "download_url": "https://runs.s3.amazonaws.com/generations/...", "generation_status": "success" } } }, "total_outputs": 1, "status": "completed" } ``` If the workflow doesn't complete within the timeout period, a `FlowScaleTimeoutError` exception will be raised. ### Dynamic Parameter Support The SDK supports dynamic parameter names that match your workflow's requirements: ```python Dynamic Image Parameters # Example with ComfyUI dynamic parameter names inputs = { "image_35728": open("input.png", "rb"), # Dynamic image parameter "image_42561": "path/to/second_image.jpg", # Another dynamic image "text_input_123": "Your prompt here", # Dynamic text parameter "seed_456": 12345 # Dynamic numeric parameter } result = flowscale.execute_workflow_async("workflow_id", inputs) ``` ```python Multiple File Types # Handle various file inputs inputs = { "text_prompt": "Generate an image", "reference_image_1": open("ref1.png", "rb"), # File object "reference_image_2": "/path/to/ref2.jpg", # File path "style_image_789": open("style.png", "rb"), # Dynamic parameter name "mask_image_456": "mask.png", # Another file path "config_json": {"strength": 0.8, "steps": 20} # JSON data } result = flowscale.execute_workflow_async("workflow_id", inputs) ``` ### Managing Workflow Runs #### Get Run Details Retrieve detailed information about a specific workflow run: ```python run_details = flowscale.get_run("808f34d0-ef97-4b78-a00f-1268077ea6db") print(f"Run Details: {run_details}") ``` ```json { "status": "success", "data": { "_id": "808f34d0-ef97-4b78-a00f-1268077ea6db", "status": "completed", "inputs": [ { "path": "text_51536", "value": "a man riding a bike" } ], "outputs": [ { "filename": "filename_prefix_58358_5WWF7GQUYF.png", "url": "https://runs.s3.amazonaws.com/generations/..." } ], "created_at": "2024-01-15T10:30:00Z", "started_at": "2024-01-15T10:30:15Z", "completed_at": "2024-01-15T10:32:45Z" } } ``` #### Get Multiple Runs with Pagination ✨ Retrieve workflow runs with advanced pagination, sorting, and filtering capabilities: ```python # Basic usage - get recent runs runs = flowscale.get_runs() print(f"Recent Runs: {runs}") # Filter by group group_runs = flowscale.get_runs(group_id="test_group") print(f"Group Runs: {group_runs}") # Pagination with custom page size paginated_runs = flowscale.get_runs(page=2, page_size=20) print(f"Page 2 Runs: {paginated_runs}") # Sort by completion time (oldest first) completed_runs = flowscale.get_runs( sort_by="completed_at", sort_order="asc", page_size=50 ) # Advanced filtering and sorting filtered_runs = flowscale.get_runs( group_id="production_batch", sort_by="started_at", sort_order="desc", page=1, page_size=25 ) ``` **Parameters:** * `group_id` *(string, optional)*: Filter runs by group identifier * `sort_by` *(string, optional)*: Field to sort by - `"created_at"`, `"started_at"`, or `"completed_at"` (default: `"created_at"`) * `sort_order` *(string, optional)*: Sort order - `"asc"` or `"desc"` (default: `"desc"`) * `page` *(int, optional)*: Page number starting from 1 (default: `1`) * `page_size` *(int, optional)*: Number of items per page, 1-100 (default: `10`) ```json { "status": "success", "meta": { "sort_by": "created_at", "sort_order": "desc", "page": 1, "group_id": "test_group", "page_size": 10, "total_count": 156, "total_pages": 16 }, "data": { "runs": [ { "_id": "cc29a72d-75b9-4c7b-b991-ccaf2a04d6ea", "team_id": "team_123", "workflow_id": "bncu0a1kipv", "group_id": "test_group", "status": "completed", "inputs": [ { "path": "text_51536", "value": "a man riding a bike", "s3_key": null, "url": null } ], "outputs": [ { "filename": "filename_prefix_58358_G3DRLIVVYP.png", "s3_key": "generations/...", "url": "https://runs.s3.amazonaws.com/generations/..." } ], "created_at": "2024-01-15T10:30:00Z", "started_at": "2024-01-15T10:30:15Z", "completed_at": "2024-01-15T10:32:45Z" } ] } } ``` #### Cancel Running Workflow Cancel a workflow execution using its run ID: ```python result = flowscale.cancel_run("808f34d0-ef97-4b78-a00f-1268077ea6db") print(f"Cancellation Result: {result}") ``` ```json { "status": "success", "data": "Run cancelled successfully" } ``` ### Retrieving Outputs #### Get Workflow Output Fetch the output of a completed workflow using its filename: ```python output = flowscale.get_output("filename_prefix_58358_5WWF7GQUYF.png") print(f"Workflow Output: {output}") ``` ```json { "status": "success", "data": { "download_url": "https://runs.s3.amazonaws.com/generations/...", "generation_status": "success" } } ``` ## Advanced Usage Examples ### Batch Processing with Groups ```python import time from pathlib import Path def process_image_batch(image_folder, workflow_id): """Process multiple images in batches with grouping""" image_files = list(Path(image_folder).glob("*.{png,jpg,jpeg}")) group_id = f"batch_{int(time.time())}" results = [] for i, image_path in enumerate(image_files): inputs = { "input_image": str(image_path), "prompt": f"Process image {i+1}", "batch_index": i } result = flowscale.execute_workflow_async( workflow_id, inputs, group_id=group_id ) results.append(result) # Get all results for this batch batch_runs = flowscale.get_runs(group_id=group_id, page_size=100) return batch_runs # Usage results = process_image_batch("./input_images", "image-processor-v1") print(f"Processed {len(results['data']['runs'])} images") ``` ### Error Handling and Retries ```python import time from flowscale.exceptions import FlowScaleError, FlowScaleTimeoutError def robust_workflow_execution(workflow_id, inputs, max_retries=3): """Execute workflow with retry logic""" for attempt in range(max_retries): try: result = flowscale.execute_workflow_async( workflow_id, inputs, timeout=600, # 10 minutes polling_interval=2 ) return result except FlowScaleTimeoutError as e: print(f"Attempt {attempt + 1} timed out: {e}") if attempt < max_retries - 1: print("Retrying with longer timeout...") time.sleep(5) else: raise except FlowScaleError as e: print(f"Attempt {attempt + 1} failed: {e}") if attempt < max_retries - 1: time.sleep(2 ** attempt) # Exponential backoff else: raise except Exception as e: print(f"Unexpected error on attempt {attempt + 1}: {e}") if attempt < max_retries - 1: time.sleep(2 ** attempt) else: raise # Usage try: result = robust_workflow_execution("workflow_id", {"prompt": "Test"}) print("Success:", result) except Exception as e: print("Failed after all retries:", e) ``` ### Pagination Helper ```python def get_all_runs(group_id=None, sort_by="created_at"): """Example function to get all runs across multiple pages""" all_runs = [] page = 1 while True: response = flowscale.get_runs( group_id=group_id, sort_by=sort_by, page=page, page_size=100 # Max page size ) runs = response["data"]["runs"] all_runs.extend(runs) # Check if we've reached the last page if page >= response["meta"]["total_pages"]: break page += 1 return all_runs # Usage all_runs = get_all_runs(group_id="production_batch") print(f"Total runs: {len(all_runs)}") ``` ## Framework Integration ### FastAPI Integration The SDK works seamlessly with FastAPI for building API endpoints: ```python from fastapi import FastAPI, UploadFile, File, Form from flowscale import FlowscaleAPI app = FastAPI() flowscale = FlowscaleAPI(api_key, api_url) @app.post("/execute_with_images") async def execute_with_multiple_images( workflow_id: str = Form(...), image_35728: UploadFile = File(...), # Dynamic parameter names image_42561: UploadFile = File(...), # Multiple images supported text_prompt: str = Form("default prompt"), group_id: str = Form(None) ): """Execute workflow with multiple dynamic image parameters""" data = { "image_35728": image_35728.file, "image_42561": image_42561.file, "text_prompt": text_prompt } result = flowscale.execute_workflow_async(workflow_id, data, group_id) return result @app.get("/runs") async def get_runs_paginated( group_id: str = None, sort_by: str = "created_at", sort_order: str = "desc", page: int = 1, page_size: int = 10 ): """Get paginated runs with sorting""" return flowscale.get_runs(group_id, sort_by, sort_order, page, page_size) ``` ### Django Integration ```python # views.py from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods import json from flowscale import FlowscaleAPI flowscale = FlowscaleAPI( api_key=settings.FLOWSCALE_API_KEY, api_url=settings.FLOWSCALE_API_URL ) @csrf_exempt @require_http_methods(["POST"]) def generate_image(request): try: data = json.loads(request.body) result = flowscale.execute_workflow_async( workflow_id=data['workflow_id'], inputs=data['inputs'], group_id=data.get('group_id') ) return JsonResponse(result) except Exception as e: return JsonResponse({'error': str(e)}, status=500) ``` ### Flask Integration ```python from flask import Flask, request, jsonify from flowscale import FlowscaleAPI app = Flask(__name__) flowscale = FlowscaleAPI(api_key, api_url) @app.route('/generate', methods=['POST']) def generate(): try: data = request.get_json() result = flowscale.execute_workflow_async( workflow_id=data['workflow_id'], inputs=data['inputs'], group_id=data.get('group_id') ) return jsonify(result) except Exception as e: return jsonify({'error': str(e)}), 500 if __name__ == '__main__': app.run(debug=True) ``` ### Jupyter Notebook Integration ```python # Cell 1: Setup from flowscale import FlowscaleAPI import os from IPython.display import Image, display import requests flowscale = FlowscaleAPI( api_key=os.environ.get("FLOWSCALE_API_KEY"), api_url=os.environ.get("FLOWSCALE_API_URL") ) # Cell 2: Generate image inputs = { "text_51536": "A serene mountain landscape at sunset", "width": 1024, "height": 1024 } result = flowscale.execute_workflow_async("text-to-image-v1", inputs) print("Generation complete!") # Cell 3: Display result if result["status"] == "success": download_url = result["data"]["download_url"] # Download and display image response = requests.get(download_url) if response.status_code == 200: with open("generated_image.png", "wb") as f: f.write(response.content) display(Image("generated_image.png")) ``` ## File Handling ### Working with Different File Types ```python File Objects # Using file objects directly with open("input_image.png", "rb") as f: inputs = { "image_input": f, "prompt": "Transform this image" } result = flowscale.execute_workflow_async("workflow_id", inputs) ``` ```python File Paths # Using file paths (automatically opened) inputs = { "image_input": "path/to/image.png", "video_input": "path/to/video.mp4", "prompt": "Process these files" } result = flowscale.execute_workflow_async("workflow_id", inputs) ``` ```python Base64 Data import base64 # Convert file to base64 with open("image.png", "rb") as f: image_data = base64.b64encode(f.read()).decode() inputs = { "image_input": f"data:image/png;base64,{image_data}", "prompt": "Process base64 image" } result = flowscale.execute_workflow_async("workflow_id", inputs) ``` ```python Bytes Data # Using raw bytes with open("image.png", "rb") as f: image_bytes = f.read() inputs = { "image_input": image_bytes, "prompt": "Process bytes data" } result = flowscale.execute_workflow_async("workflow_id", inputs) ``` ### Downloading and Saving Results ```python import requests from pathlib import Path def download_result(result, output_dir="./outputs"): """Download workflow result to local file""" if result["status"] != "success": raise Exception(f"Workflow failed: {result}") download_url = result["data"]["download_url"] # Create output directory Path(output_dir).mkdir(exist_ok=True) # Download file response = requests.get(download_url) response.raise_for_status() # Extract filename from URL or generate one filename = download_url.split("/")[-1] if "?" in filename: filename = filename.split("?")[0] output_path = Path(output_dir) / filename with open(output_path, "wb") as f: f.write(response.content) return str(output_path) # Usage result = flowscale.execute_workflow_async("workflow_id", inputs) local_path = download_result(result) print(f"Downloaded to: {local_path}") ``` ## Error Handling ### Exception Types ```python from flowscale.exceptions import ( FlowScaleError, FlowScaleTimeoutError, FlowScaleValidationError, FlowScaleNetworkError ) try: result = flowscale.execute_workflow_async("workflow_id", inputs) except FlowScaleTimeoutError as e: print(f"Workflow timed out: {e}") # Handle timeout - maybe retry with longer timeout except FlowScaleValidationError as e: print(f"Invalid inputs: {e}") # Handle validation error - fix inputs and retry except FlowScaleNetworkError as e: print(f"Network error: {e}") # Handle network issue - maybe retry with backoff except FlowScaleError as e: print(f"FlowScale API error: {e}") # Handle general API error except Exception as e: print(f"Unexpected error: {e}") # Handle any other error ``` ### Comprehensive Error Handling Pattern ```python import logging import time from typing import Optional, Dict, Any def execute_with_comprehensive_error_handling( workflow_id: str, inputs: Dict[str, Any], group_id: Optional[str] = None, max_retries: int = 3, timeout: int = 300 ) -> Dict[str, Any]: """ Execute workflow with comprehensive error handling and logging """ logger = logging.getLogger(__name__) for attempt in range(max_retries): try: logger.info(f"Attempting workflow execution (attempt {attempt + 1}/{max_retries})") result = flowscale.execute_workflow_async( workflow_id=workflow_id, inputs=inputs, group_id=group_id, timeout=timeout ) logger.info("Workflow executed successfully") return result except FlowScaleTimeoutError as e: logger.warning(f"Timeout on attempt {attempt + 1}: {e}") if attempt < max_retries - 1: # Increase timeout for next attempt timeout = min(timeout * 1.5, 1800) # Max 30 minutes logger.info(f"Retrying with increased timeout: {timeout}s") else: logger.error("Max retries reached for timeout") raise except FlowScaleValidationError as e: logger.error(f"Validation error (not retrying): {e}") raise # Don't retry validation errors except FlowScaleNetworkError as e: logger.warning(f"Network error on attempt {attempt + 1}: {e}") if attempt < max_retries - 1: delay = 2 ** attempt # Exponential backoff logger.info(f"Retrying after {delay}s delay") time.sleep(delay) else: logger.error("Max retries reached for network error") raise except Exception as e: logger.error(f"Unexpected error on attempt {attempt + 1}: {e}") if attempt < max_retries - 1: time.sleep(1) else: raise raise Exception("Max retries exceeded") ``` ## Best Practices ### Environment Configuration Always store sensitive information such as API keys in environment variables: ```python Using python-dotenv from dotenv import load_dotenv import os # Load environment variables from .env file load_dotenv() from flowscale import FlowscaleAPI flowscale = FlowscaleAPI( api_key=os.environ.get("FLOWSCALE_API_KEY"), api_url=os.environ.get("FLOWSCALE_API_URL") ) ``` ```python Using os.environ directly import os from flowscale import FlowscaleAPI # Ensure required environment variables are set required_vars = ["FLOWSCALE_API_KEY", "FLOWSCALE_API_URL"] missing_vars = [var for var in required_vars if not os.environ.get(var)] if missing_vars: raise EnvironmentError(f"Missing required environment variables: {missing_vars}") flowscale = FlowscaleAPI( api_key=os.environ["FLOWSCALE_API_KEY"], api_url=os.environ["FLOWSCALE_API_URL"] ) ``` ### Performance Optimization ```python import threading from concurrent.futures import ThreadPoolExecutor from flowscale import FlowscaleAPI # Reuse client instances flowscale = FlowscaleAPI( api_key=os.environ["FLOWSCALE_API_KEY"], api_url=os.environ["FLOWSCALE_API_URL"] ) # Use connection pooling for high-volume applications import requests session = requests.Session() session.mount('https://', requests.adapters.HTTPAdapter( pool_connections=10, pool_maxsize=20 )) flowscale = FlowscaleAPI( api_key=os.environ["FLOWSCALE_API_KEY"], api_url=os.environ["FLOWSCALE_API_URL"], session=session # Use custom session with connection pooling ) # Process multiple workflows concurrently def process_concurrent_workflows(workflow_configs): """Process multiple workflows concurrently using ThreadPoolExecutor""" with ThreadPoolExecutor(max_workers=5) as executor: futures = [] for config in workflow_configs: future = executor.submit( flowscale.execute_workflow_async, config['workflow_id'], config['inputs'], config.get('group_id') ) futures.append(future) results = [] for future in futures: try: result = future.result(timeout=600) # 10 minute timeout per workflow results.append(result) except Exception as e: print(f"Workflow failed: {e}") results.append({'error': str(e)}) return results # Cache results when appropriate from functools import lru_cache import hashlib import json @lru_cache(maxsize=100) def get_cached_workflow_result(workflow_id: str, inputs_hash: str): """Cache workflow results for identical inputs""" # This is a simple example - in production, use a proper cache like Redis return None def execute_with_cache(workflow_id: str, inputs: dict, group_id: str = None): """Execute workflow with caching""" # Create hash of inputs for cache key inputs_str = json.dumps(inputs, sort_keys=True) inputs_hash = hashlib.md5(inputs_str.encode()).hexdigest() # Check cache first cached_result = get_cached_workflow_result(workflow_id, inputs_hash) if cached_result: return cached_result # Execute workflow result = flowscale.execute_workflow_async(workflow_id, inputs, group_id) # Cache result (implement proper caching logic here) return result ``` ### Input Validation ```python from typing import Dict, Any, Union import os from pathlib import Path def validate_workflow_inputs(inputs: Dict[str, Any]) -> Dict[str, Any]: """Validate and sanitize workflow inputs""" validated_inputs = {} for key, value in inputs.items(): if isinstance(value, str): # Validate string inputs if len(value) > 10000: # Reasonable limit for text inputs raise ValueError(f"Input '{key}' is too long ({len(value)} chars)") if not value.strip(): # Don't allow empty strings raise ValueError(f"Input '{key}' cannot be empty") validated_inputs[key] = value.strip() elif isinstance(value, (int, float)): # Validate numeric inputs if key.endswith('_width') or key.endswith('_height'): if not 64 <= value <= 2048: # Reasonable image size limits raise ValueError(f"Dimension '{key}' must be between 64 and 2048") validated_inputs[key] = value elif hasattr(value, 'read'): # File-like object validated_inputs[key] = value elif isinstance(value, (str, Path)) and os.path.exists(value): # File path file_path = Path(value) if file_path.stat().st_size > 50 * 1024 * 1024: # 50MB limit raise ValueError(f"File '{key}' is too large (max 50MB)") validated_inputs[key] = value else: # Accept other types as-is but log for debugging print(f"Warning: Unvalidated input type for '{key}': {type(value)}") validated_inputs[key] = value return validated_inputs # Usage try: inputs = { "prompt": "A beautiful landscape", "width": 1024, "height": 1024, "image_input": "input.png" } validated_inputs = validate_workflow_inputs(inputs) result = flowscale.execute_workflow_async("workflow_id", validated_inputs) except ValueError as e: print(f"Input validation failed: {e}") ``` ### Logging and Monitoring ```python import logging import time from functools import wraps # Set up structured logging logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) logger = logging.getLogger(__name__) def monitor_workflow_execution(func): """Decorator to monitor workflow execution metrics""" @wraps(func) def wrapper(*args, **kwargs): start_time = time.time() workflow_id = args[0] if args else kwargs.get('workflow_id', 'unknown') logger.info(f"Starting workflow execution: {workflow_id}") try: result = func(*args, **kwargs) execution_time = time.time() - start_time logger.info(f"Workflow completed successfully: {workflow_id} (took {execution_time:.2f}s)") return result except Exception as e: execution_time = time.time() - start_time logger.error(f"Workflow failed: {workflow_id} after {execution_time:.2f}s - {e}") raise return wrapper # Usage @monitor_workflow_execution def execute_monitored_workflow(workflow_id, inputs, group_id=None): return flowscale.execute_workflow_async(workflow_id, inputs, group_id) # Example usage result = execute_monitored_workflow("text-to-image-v1", {"prompt": "Test"}) ``` ## Testing and Debugging ### Unit Testing ```python import unittest from unittest.mock import patch, MagicMock from flowscale import FlowscaleAPI class TestFlowScaleIntegration(unittest.TestCase): def setUp(self): self.flowscale = FlowscaleAPI( api_key="test_key", api_url="https://test.flowscale.ai" ) @patch('flowscale.FlowscaleAPI.execute_workflow_async') def test_workflow_execution(self, mock_execute): # Mock successful response mock_execute.return_value = { "status": "success", "data": { "download_url": "https://example.com/result.png", "generation_status": "success" } } result = self.flowscale.execute_workflow_async( "test_workflow", {"prompt": "test"} ) self.assertEqual(result["status"], "success") mock_execute.assert_called_once_with("test_workflow", {"prompt": "test"}) @patch('flowscale.FlowscaleAPI.execute_workflow_async') def test_workflow_timeout(self, mock_execute): # Mock timeout error from flowscale.exceptions import FlowScaleTimeoutError mock_execute.side_effect = FlowScaleTimeoutError("Workflow timed out") with self.assertRaises(FlowScaleTimeoutError): self.flowscale.execute_workflow_async( "test_workflow", {"prompt": "test"}, timeout=1 ) if __name__ == '__main__': unittest.main() ``` ### Debug Mode Usage ```python from flowscale import FlowscaleAPI import logging # Enable debug logging logging.basicConfig(level=logging.DEBUG) flowscale = FlowscaleAPI( api_key=os.environ["FLOWSCALE_API_KEY"], api_url=os.environ["FLOWSCALE_API_URL"], enable_logging=True, log_level="debug" ) # Test with debug information try: result = flowscale.execute_workflow_async( "workflow_id", {"prompt": "debug test"}, timeout=60 ) print("Success:", result) except Exception as e: print("Error details:", e) # Debug logs will show detailed information about the failure ``` ## Examples & Recipes Complete Python examples for text-to-image generation workflows Transform and enhance images using AI-powered workflows Process multiple files efficiently with concurrent execution Build API endpoints with FastAPI and FlowScale workflows Interactive workflow execution in Jupyter environments Robust error handling and automatic retry mechanisms ## Support Need help with the Python SDK? Complete API documentation and endpoint reference Official PyPI package with installation instructions Chat with other developers and get community support Direct support for technical issues and questions Complete guides and tutorials for getting started # Deploy Workflows Source: https://docs.flowscale.ai/getting-started/deploy-workflows Transform your ComfyUI workflows into production-ready APIs and interactive applications import DeploymentTroubleshooting from "/snippets/troubleshooting/deployment.mdx"; Deploy your ComfyUI workflows as production APIs with automatic documentation, interactive interfaces, and enterprise scaling. **Haven't set up your workflow yet?** You'll need to complete the [Import/Create Workflows guide](/getting-started/import-create-workflows) first. The deployment process requires a fully configured, tested workflow as its foundation. ## Prerequisites Ensure your workflow is ready for deployment, you can check which workflows are ready to deploy from the workflows bar. The workflows with green check mark are ready to deploy: Run your workflow successfully in ComfyUI workspace to verify functionality Save the workflow after successful execution to create a stable version Verify all models and custom nodes are properly configured Workflow tab highlighting green checkmark next to workflow name {/* Image Description for Team: Screenshot of ComfyUI workspace after successful execution showing nodes with green checkmarks and completion status */} **Important**: The workflow must run successfully at least once in the ComfyUI workspace before deployment. This ensures all models and custom nodes are properly configured and the platform can verify the workflow's functionality. ## Configure API Interface Transform your workflow into a standardized API by defining inputs and outputs: * Create intuitive parameters for users * Generate automatic documentation * Build interactive interfaces * Establish reliable API contracts By default, workflows are not configured for deployment. You'll notice a **red cross mark** next to unconfigured workflows in your project's workflow sidebar. {/* Image Description for Team: Screenshot of FlowScale project sidebar showing workflow list with red cross icons indicating unconfigured deployment status */} Configure which inputs are user-controllable and how outputs should be formatted for different consumer types. ### Configuration Methods There are two primary ways to configure a workflow for deployment: Use specialized FlowScale I/O nodes that are designed for deployment configuration. Use the advanced configuration interface for complex setups. [Read more about advanced API configuration](/deploy-api/configuration#method-2%3A-advanced-api-configuration). ## FlowScale I/O Nodes Use FlowScale I/O nodes to define API inputs and outputs. Choose which controls users need without exposing unnecessary complexity. ### Adding Input Nodes Double-click on an empty area in the ComfyUI workspace to open the node search Type one of the following input node names: - **InputText** - For text prompts and string inputs - **InputImage** - For image uploads - **InputNumber** - For numeric parameters - **InputSlider** - For slider controls Choose nodes with the **"\[FS]"** prefix, indicating they are FlowScale-specific nodes Connect these input nodes to your workflow where external inputs are needed ComfyUI node search dialog displaying FlowScale-specific I/O nodes with [FS] prefix, showing input and output node categories with clear descriptions and usage examples {/* Image Description for Team: Screenshot of ComfyUI node search showing FlowScale I/O nodes with [FS] prefix including InputText, InputImage, InputNumber, InputSlider */} ComfyUI workspace showing FlowScale I/O nodes being added to workflow with connection preview and configuration options visible {/* Image Description for Team: Screenshot showing FlowScale I/O nodes being added to ComfyUI workspace with connection process and [FS] prefix visible */} ### Adding Output Nodes In the node search, type one of the following output node names: - **SaveImage** - For image outputs - **SaveText** - For text outputs - **SaveVideo** - For video outputs - **SaveAudio** - For audio outputs Again, choose nodes with the **"\[FS]"** prefix Connect these output nodes to capture the final results of your workflow {/* Image Description for Team: Screenshot of ComfyUI workspace showing FlowScale output nodes with [FS] prefix connected to workflow endpoints */} ### Available FlowScale I/O Nodes | Node Type | Purpose | Use Case | | --------------------- | ---------------- | -------------------------------------- | | **\[FS] InputText** | Text input field | Prompts, descriptions, parameters | | **\[FS] InputImage** | Image upload | Reference images, masks, source images | | **\[FS] InputNumber** | Numeric input | Steps, strength, dimensions | | **\[FS] InputSlider** | Range slider | CFG scale, denoise strength | | **\[FS] SaveImage** | Image output | Generated images, processed images | | **\[FS] SaveText** | Text output | Generated text, metadata | | **\[FS] SaveVideo** | Video output | Animated sequences | | **\[FS] SaveAudio** | Audio output | Generated audio files | ### Verify Configuration After adding FlowScale I/O nodes: Ensure all I/O nodes are properly connected to your workflow Click the **Save** button in the ComfyUI workspace Look for a **green checkmark** next to your workflow in the left sidebar, indicating successful configuration {/* Image Description for Team: Screenshot of FlowScale project sidebar showing workflow list with green checkmarks indicating successful configuration */} ## Deploy Workflow Deploy your configured workflow as a production API with automatic scaling and monitoring. ### Deployment Process Click the **"Deploy"** button in the top-right corner of the application  Main application interface with prominently highlighted Deploy button in top-right corner, showing deployment readiness and access controls A dialog box will appear asking you to select the Pod for deployment A dialog box will appear asking you to select the Pod for deployment Select the appropriate pod based on your workflow requirements: - **GPU type** needed for your models - **Memory requirements** for your workflow - **Expected usage** patterns Click **Deploy** to start the deployment process  Real-time deployment progress interface showing infrastructure provisioning, model loading, and service initialization with progress indicators and status messages {/* Image Description for Team: Screenshot of deployment process showing progress indicators and status messages during workflow deployment */} For detailed information about pod types, specifications, and choosing the right configuration for your workflow, refer to our [Pods documentation](/getting-started/glossary/pods). ## Deployed Workflow Features Your deployed workflow provides: * Real-time monitoring and analytics * Interactive API documentation * Live testing environment * Security and access controls * Performance insights and metrics Comprehensive API management dashboard showing deployed workflows, request metrics, endpoint URLs, and management controls with professional monitoring interface ### API Integration Your workflow is now accessible via REST API from any application or system: ```bash curl curl -X POST https://api.flowscale.ai/v1/run \ -H "Authorization: Bearer your-api-key" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "wf_abc123", "inputs": { "prompt": "A beautiful sunset over mountains", "steps": 20, "cfg": 7.5 } }' ``` ```javascript JavaScript const response = await fetch("https://api.flowscale.ai/v1/run", { method: "POST", headers: { Authorization: "Bearer your-api-key", "Content-Type": "application/json", }, body: JSON.stringify({ workflow_id: "wf_abc123", inputs: { prompt: "A beautiful sunset over mountains", steps: 20, cfg: 7.5, }, }), }); ``` ```python Python import requests response = requests.post( 'https://api.flowscale.ai/v1/run', headers={ 'Authorization': 'Bearer your-api-key', 'Content-Type': 'application/json' }, json={ 'workflow_id': 'wf_abc123', 'inputs': { 'prompt': 'A beautiful sunset over mountains', 'steps': 20, 'cfg': 7.5 } } ) ``` ### Interactive Playground The auto-generated playground provides a user-friendly interface for non-technical users: In the API Server page, find your deployed workflow and click **"Open Playground"** Use the auto-generated form to input parameters and test your workflow Share the playground URL with team members for easy access without ComfyUI complexity List view of deployed workflows with Open Playground buttons, status indicators, performance metrics, and management actions clearly visible {/* Image Description for Team: Screenshot of API Server workflows list showing deployed workflows with Open Playground buttons and management options */}  Auto-generated Gradio web interface showing user-friendly form inputs based on workflow parameters, real-time preview, and results display area Benefits of the playground interface: * Accessible to non-technical team members * Faster feedback cycles on actual results * Interactive client demonstrations * Mobile-friendly access * User confidence through direct testing {/* Image Description for Team: Screenshot of full playground interface showing input controls on left and output display on right with professional UI design */} ## API Documentation FlowScale AI automatically generates comprehensive API documentation: * **Interactive docs**: Test endpoints directly in the browser * **Code examples**: Ready-to-use snippets in multiple languages * **Schema definitions**: Detailed input/output specifications * **Authentication**: API key management and security Auto-generated API documentation ## Production Considerations ### Security & Authentication * **API keys**: Secure access with regeneratable keys * **Rate limiting**: Protect against abuse and manage costs * **CORS configuration**: Control cross-origin access * **Webhook support**: Real-time notifications for long-running jobs ### Performance Optimization * Model caching to reduce cold start times - Result caching for identical requests - CDN integration for faster content delivery * Async processing for long-running workflows - Batch requests to reduce overhead - Progressive loading for large outputs * Auto-scaling based on demand - GPU pooling for efficient utilization - Memory optimization for large models {/* ## Troubleshooting ### Common Deployment Issues For additional troubleshooting guidance, refer to our [comprehensive troubleshooting guide](/getting-started/troubleshooting). */} ## Next Steps Your workflow is now deployed as production infrastructure. Continue building: Learn API integration for web apps, mobile apps, and automation systems Explore advanced configuration, scaling controls, and governance options Monitor usage, optimize costs, and ensure peak performance # What is ComfyUI? Source: https://docs.flowscale.ai/getting-started/glossary/comfyui Build sophisticated GenAI applications without coding using visual workflows and production deployment ## What is ComfyUI? ComfyUI is a visual programming interface for building AI workflows using drag-and-drop nodes. Create sophisticated image, video, text, and audio generation workflows without coding. FlowScale AI deploys these workflows as production APIs. {/*

[COMFYUI TO API COMPARISON PLACEHOLDER]

Split-screen comparison showing ComfyUI workflow interface on left with complex node network, and clean REST API endpoint documentation on right, connected by transformation arrows demonstrating the conversion process.

Image Type: Comparison Diagram | Context: ComfyUI to API transformation concept
*/} {/* Image Description for Team: Split-screen screenshot showing ComfyUI workspace with complex workflow on left and clean API interface on right with transformation arrows */} Clean overview of ComfyUI workspace showing the visual programming interface with sample nodes, connections, and basic workflow structure. Emphasizes the drag-and-drop nature and node-based architecture {/* Image Description for Team: Screenshot of ComfyUI workspace showing clean visual programming interface with nodes, connections, and basic workflow example */} ## Core Capabilities ComfyUI workspace showing multiple connected node chains for text, image, and video processing with clear data flow between AI models {/* Image Description for Team: Screenshot of ComfyUI workspace showing multiple connected node chains for text, image, and video processing with clear data flow between AI models */} Build complex workflows for **images, videos, audio, and text generation**—all in one interface Create conditional workflows, multi-step pipelines, and advanced AI operations without coding Each block (called a *node*) does one specialized job—combine them to build enterprise-grade GenAI solutions Works with any AI model, custom nodes, and runs anywhere—Windows, macOS, Linux, or cloud Key features: * **Visual Programming**: Connect nodes instead of writing code * **Multi-modal**: Support for images, videos, audio, and text * **Real-time Editing**: Modify workflows and see results instantly * **Community Extensions**: Thousands of custom nodes available ## FlowScale AI Integration FlowScale AI converts ComfyUI workflows into production APIs with auto-scaling infrastructure, monitoring, and security. Build complex workflows without coding Deploy as scalable APIs and web interfaces Auto-scaling GPUs and monitoring From prototype to production without code ## Use Cases **ComfyUI**: Multi-style image generation with LoRA switching **FlowScale**: Web playground where users generate custom art via simple prompts **ComfyUI**: Video-to-video transformation with face swapping **FlowScale**: REST API that processes uploaded videos and returns results **ComfyUI**: Text-to-image + upscaling + background removal pipeline **FlowScale**: Web app for marketers to create social media content **ComfyUI**: Multi-model text generation with memory and context **FlowScale**: Embeddable chat widget for websites ## Workflow Structure Workflows consist of connected nodes that process data: Load models and define prompts Apply samplers, upscalers, and transformations Save or display results ## Key Concepts | Term | Think of it as... | Why it matters | | ---------------------- | ------------------------ | -------------------------------------------------------------------- | | **Node** | A single LEGO® brick | Does one job (e.g., "Load model") | | **Workflow** | The finished LEGO® set | Runs the whole image pipeline. Saved as `.json` | | **Model / Checkpoint** | A cookbook | Holds all the AI knowledge—whether for images, text, video, or audio | | **Custom Node** | A fan-made LEGO® piece | Community add-ons—try new ideas without waiting for official updates | | **Pod (FlowScale)** | A line cook in the cloud | Executes your workflow on a rented GPU | ## Basic Workflow Example Choose your AI model (SDXL for images, LLaMA for text, etc.) Enter your text prompt Set parameters like steps, strength, and sampling method Convert output to desired format Output saved to results folder ## Essential Terms Text that describes the image you want The big file that stores the AI model's brain The method that slowly sharpens the noisy blob into a picture A small add-on file that teaches the model a new style or character A cloud worker that runs your workflow ## Learning Resources Comprehensive guides and API references for mastering ComfyUI # ComfyUI Workspace Source: https://docs.flowscale.ai/getting-started/glossary/comfyui-workspace Complete guide to FlowScale's ComfyUI workspace: starting ComfyUI, managing workflows, models, and custom nodes in your project environment ## What is the ComfyUI Workspace? When you open a project in FlowScale AI, you enter the **ComfyUI Workspace** — your complete environment for building, testing, and managing generative AI workflows. Think of it as your personal AI laboratory where the familiar ComfyUI interface meets enterprise-grade cloud infrastructure. FlowScale ComfyUI Workspace showing the workflow editor on the left, ComfyUI interface on the right, and control buttons at the bottom The workspace seamlessly bridges the gap between creative experimentation and production deployment. You start with an idea, build it using ComfyUI's visual workflow editor, test it with your team's shared resources, and then deploy it to production — all within a single, integrated environment. ## Understanding Your Workspace Your workspace is thoughtfully organized into three key areas, each serving a specific purpose in your workflow development journey: **Left Panel: Your Project Hub** This is where you manage everything related to your project. The **Workflows tab** helps you organize your creations, the **Models tab** gives you access to your organization's AI model library, and the **Nodes tab** manages the custom functionality your workflows depend on. **Right Panel: Your Creative Canvas** Here's where the magic happens. After clicking **"Start ComfyUI"**, this area transforms into the full ComfyUI interface where you'll design and test your AI workflows. **Bottom Panel: Your Control Center** Think of this as your mission control — buttons to save your work, toggle between CPU and GPU modes, run your workflows, and monitor everything through the logs. ## Your First Steps: Starting ComfyUI Getting your creative environment up and running is straightforward. Here's how your journey begins: ### The Launch Sequence 1. **Click "Start ComfyUI"** in the right panel — this is your gateway to the creative process 2. **Choose your computing power** by selecting a Pod from the dialog 3. **Watch the magic happen** as the system prepares your environment (you'll see "ComfyUI resources are being prepared") 4. **Enter your creative space** as ComfyUI loads with a default workflow ready for your modifications Initial startup dialog for ComfyUI workspace showing loading progress, initialization steps, and workspace preparation status Once ComfyUI springs to life, you're greeted with a pre-loaded workflow that serves as your starting point. The full ComfyUI interface is now at your fingertips, enhanced with FlowScale's collaborative features and cloud infrastructure. ## Mastering Your Control Center Now that ComfyUI is running, let's explore the control bar at the bottom — your command center for managing workflows efficiently and cost-effectively. Detailed view of ComfyUI control bar showing all available actions, tools, and workspace controls with clear iconography and organization Each button serves a specific purpose in your creative workflow: ### Save Button (💾) — Preserve Your Progress Never lose your work. Click this after making changes to ensure your workflow modifications are safely stored in your project. ### CPU/GPU Toggle — Smart Resource Management Here's where FlowScale's cost-effectiveness shines. Start in **CPU mode** (\$0.14/hour) for workflow building and editing, then switch to **GPU mode** only when you need to run actual generations. This approach can save your organization significant costs while maintaining full functionality. ### Queue Button (White) — Bring Your Vision to Life Ready to see your workflow in action? This button executes your current workflow, processing it through the entire pipeline with your specified inputs. ### Stop Button (Red Square) — Emergency Brake Sometimes you need to halt a runaway process. This immediately stops any currently running generation, giving you back control. ### Refresh Button (🔄) — Reset and Reload After installing new custom nodes or uploading models, refresh ComfyUI to make these new resources available in your workspace. ### Power Button (Red Circle) — Clean Exit When you're done working, this properly shuts down your ComfyUI session and frees up computing resources. You'll need to restart ComfyUI when you're ready to work again. ## Building Your Workflow Library The **Workflows tab** is where your AI creations come to life and get organized. Whether you're starting from scratch or bringing existing workflows into FlowScale, this is your creative command center. ### Starting Fresh: Creating New Workflows **Organize with Purpose** Click the **plus icon** to create folders that make sense for your team — organize by project type, client, or development stage. A well-structured workspace saves time and reduces confusion as your library grows. **Begin Creating** The **"Create New Workflow"** button loads a default ComfyUI template, giving you a clean slate to build upon. It's like having a prepared canvas waiting for your artistic vision. Interface for creating new workflows showing template options, starting configurations, and workflow initialization process ### Bringing Existing Work: Import Workflows Already have workflows you've built elsewhere? The import process is designed to be seamless: #### Step 1: Upload Your Creation Workflow import dialog showing file selection, validation, and import configuration options with user guidance Simply drag and drop your workflow JSON file (use the standard ComfyUI workflow format, not the API version), give it a descriptive name, and choose where to store it. #### Step 2: Resolve Dependencies Intelligently Dependencies management interface showing required custom nodes, models, and configuration requirements for imported workflows FlowScale automatically analyzes your workflow and presents three categories: * **Custom Nodes**: Automatically detected and pre-selected * **Conflicting Nodes**: When multiple repositories have similar names, choose the right one * **Missing Nodes**: Provide GitHub URLs for nodes that couldn't be found automatically The system handles the complex dependency resolution, so you can focus on creating rather than troubleshooting. ### Managing Your Growing Library As your workflow collection expands, the three-dot menu on each item gives you essential management options: rename for clarity, download for backup, or delete when no longer needed. The visual indicators (red cross or green checkmark) instantly show you which workflows are ready for API deployment. ## Accessing Your AI Arsenal: Models and Custom Nodes ### Models Tab: Your Organization's AI Library The **Models tab** brings your organization's entire AI model collection directly into your workspace. It's the same powerful interface you'd find in the global Models section, but conveniently located where you're actively building workflows. This means while you're deep in creative flow, you can quickly browse, add, or manage the AI models your workflows depend on — without leaving your workspace. For detailed model management guidance, see our [Models documentation](/getting-started/glossary/models). ### Nodes Tab: Extending Your Capabilities Think of custom nodes as specialized tools that expand what your workflows can accomplish. The **Nodes tab** manages these extensions, ensuring your workflows have all the functionality they need. #### Automatic Management When you import workflows, any required custom nodes appear here automatically. You can see what's installed, what's needed, and the status of each dependency at a glance. #### Adding New Capabilities Manually Sometimes you'll want to add custom nodes for future projects or specific functionality: 1. **Click the plus button** and select "Add Custom Node" 2. **Search by name** for popular nodes, or provide a **GitHub repository URL** for specific ones 3. **Configure advanced settings** if needed: Interface for adding custom nodes showing node search, installation options, and dependency management tools The advanced settings let you specify Python dependencies, Linux packages, or pin to specific GitHub commits for production stability. Most of the time, the basic settings are sufficient, but these options give you fine-grained control when needed. ## Working Smart: Best Practices for Success As you become more comfortable with the ComfyUI Workspace, these practices will help you work more efficiently and avoid common pitfalls: ### Resource Management That Saves Money * **Start in CPU mode** for all your workflow building and editing work * **Switch to GPU** only when you need to run actual generations * **Stop ComfyUI sessions** when you step away — this frees up resources and keeps costs down ### Organization That Scales * **Create descriptive folder names** that your future self (and teammates) will understand * **Use clear workflow names** that indicate their purpose or use case * **Save your work regularly** — make it a habit after any significant changes ### Dependency Management That Prevents Headaches * **Import all required custom nodes** during the workflow import process * **Test workflows immediately** after importing to catch dependency issues early * **Document special requirements** so team members know what's needed ## Your Journey Starts Here Ready to begin your AI workflow adventure? Here's your roadmap: 1. **Open your project** in FlowScale AI and familiarize yourself with the workspace layout 2. **Start ComfyUI** by selecting a pod that matches your current needs 3. **Create your first workflow** or import an existing one to get hands-on experience 4. **Install any required custom nodes** to ensure everything works smoothly 5. **Test your workflow** with sample inputs to verify everything functions correctly 6. **Save your work regularly** and establish good organizational habits from the start The ComfyUI Workspace is designed to grow with you — from your first simple workflow to complex production deployments. It bridges the gap between creative experimentation and enterprise-grade deployment, giving you the best of both worlds. {/* ## When You Need Help - **Check pod availability** - Ensure pods are running in your organization - **Verify permissions** - Confirm you have access to the selected pod - **Try different pod** - Some pods may be temporarily unavailable - **Refresh ComfyUI** after installing new nodes or models - **Check logs** at the bottom panel for error details - **Verify all inputs** are properly connected in your workflow - **Check dependencies** - Ensure all Python/Linux packages are specified - **Verify GitHub URLs** - Confirm repository links are correct and accessible - **Restart ComfyUI** after installing new custom nodes */} ## Related Documentation * [Models](/getting-started/glossary/models) - Learn how to manage AI models in FlowScale * [Projects](/getting-started/glossary/projects) - Understanding FlowScale project organization * [Pods](/getting-started/glossary/pods) - Computing resources that power your workflows # Models Source: https://docs.flowscale.ai/getting-started/glossary/models Complete guide to managing AI models in FlowScale: from browsing public models to uploading custom ones for your ComfyUI workflows ## What are Models in FlowScale? Models in FlowScale AI are the powerful AI engines that drive your generative workflows. Just like in a local ComfyUI setup, these models need to be properly organized and accessible for your workflows to function. FlowScale simplifies this process by providing both a curated collection of public models and the ability to manage your own private model library. Comprehensive models management dashboard showing public and private model libraries, usage statistics, and organization tools For a deeper understanding of how models work in ComfyUI, refer to the [official ComfyUI documentation on models](https://docs.comfy.org/development/core-concepts/models). ## Model Storage and Organization ### Dedicated Model Storage FlowScale provides each organization with a **dedicated volume** for model storage with: * **Unlimited storage capacity** - No restrictions on model library size * **Organization-level access** - All team members can access shared models * **Persistent storage** - Models remain available across all projects and sessions ### ComfyUI-Compatible Folder Structure FlowScale maintains the exact same folder structure as local ComfyUI installations, ensuring seamless compatibility: ``` Models/ ├── checkpoints/ # Stable Diffusion checkpoints ├── vae/ # VAE models ├── loras/ # LoRA models ├── controlnet/ # ControlNet models ├── clip/ # CLIP models ├── unet/ # U-Net models ├── upscale_models/ # Super-resolution models └── embeddings/ # Text embeddings ``` This structure ensures that models are automatically recognized by ComfyUI workflows without any additional configuration. ## Accessing the Models Interface You can access the same models interface from two convenient locations in FlowScale: ### 1. Global Models Tab * Located next to the **Pods** tab in the main navigation * Provides organization-wide model management * Access all models available to your organization ### 2. Project-Level Models Section * Available within each individual project for convenience * Shows the same organization-wide models as the global tab * Convenient access while working within a project context * No difference in functionality - just easier access during workflow development  Navigation interface highlighting the models tab location within the FlowScale application with clear breadcrumb and menu structure ## Public Models Library ### Curated Model Collection FlowScale provides a comprehensive **Public Models** section featuring: * **Latest AI models** - Cutting-edge and trending models * **Production-ready models** - Tested and optimized for reliability * **Popular model variants** - Different versions of Stable Diffusion, FLUX, and more * **Specialized models** - ControlNet, LoRA, upscaling, and other task-specific models ### Categories Available * **Image Generation**: Stable Diffusion (1.5, XL, 3.0), FLUX, Midjourney-style models * **Style Transfer**: LoRA models for specific art styles and concepts * **Image Control**: ControlNet models for pose, depth, edge guidance * **Enhancement**: Upscaling and restoration models * **Text Processing**: CLIP and embedding models * **Video Generation**: AnimateDiff models for image-to-video, text-to-video generation, motion transfer, and temporal consistency The public library is continuously updated by the FlowScale team to include the latest and most effective models in the AI community. ## Managing Private Models ### When to Use Private Models Use the **Private Models** section when: * The model you need isn't available in the public library * You have custom-trained or fine-tuned models * You need proprietary models for your organization * You want to use specific model versions not in the public collection ### Creating Folder Structure Before uploading a model, ensure the correct folder exists: 1. **Check existing folders** - See if the appropriate category folder exists 2. **Create new folder** - If needed, create the folder matching ComfyUI conventions 3. **Follow naming conventions** - Use standard ComfyUI folder names for compatibility Dialog for creating organized model folders with type selection, naming conventions, and folder structure options ## Uploading Models to FlowScale ### Step-by-Step Upload Process #### 1. Navigate to the Upload Interface * Go to the **Private Models** section * Find or create the appropriate folder (e.g., `checkpoints`, `loras`) * Click the **three-dot menu** on the folder * Select **Upload** from the dropdown Model upload interface showing multiple upload methods - direct upload, URL import, and search functionality with clear options #### 2. Choose Your Upload Method The upload dialog provides three options: **Option A: Direct URL Download** * Paste the direct download URL of the model * FlowScale will download the model directly to your storage * Fastest method for publicly available models **Option B: Local File Upload** * Upload model files from your computer * Drag and drop or browse to select files * Best for custom models or files you already have locally **Option C: Search and Import** * Search by model name to find models from: * **Civitai.com** - Community-created models and LoRAs * **Hugging Face** - Research and open-source models * Browse search results and select the model you want Detailed upload interface showing file selection, metadata extraction, progress tracking, and validation steps #### 3. Configure API Access (if needed) For models from external platforms, you'll need API credentials: **For Civitai Models:** * Get your API key from [Civitai API Settings](https://civitai.com/user/account) * Paste the API key in the upload dialog * Required for downloading from Civitai's repository **For Hugging Face Models:** * Get your access token from [Hugging Face Token Settings](https://huggingface.co/settings/tokens) * Paste the token in the upload dialog * Required for accessing Hugging Face models Configuration interface for external service API keys required for model downloads and integrations #### 4. Start the Upload * Click **Upload** to begin the process * You'll see a progress indicator * You can leave the page - the upload continues in the background ### Upload Monitoring **Background Processing:** * Models upload and process in the background * No need to stay on the models page during upload * Continue working on other tasks while models download **Completion Notifications:** * Receive notification when model upload completes successfully * Get alerts if upload fails with error details * **Check status anytime** by clicking the **bell icon** in the top navigation to view notifications * All model download progress and completion status appears in the notifications panel Real-time upload progress interface showing transfer status, validation steps, and completion indicators ## Using Uploaded Models in ComfyUI ### Accessing Models in Workflows After uploading models to FlowScale: 1. **Open your ComfyUI workspace** in any project 2. **Add model nodes** to your workflow (Load Checkpoint, Load LoRA, etc.) 3. **Click the model dropdown** in the node 4. **Select your uploaded model** from the list ### Refreshing Model List If newly uploaded models don't appear in ComfyUI: #### Method 1: Refresh Button * Look for the **Refresh** button in the **Actions Bar** at the bottom of ComfyUI * Click to reload the model list * This updates ComfyUI's model cache with newly uploaded models Workspace refresh interface showing model synchronization and workspace update controls #### Method 2: Restart ComfyUI If refresh doesn't work: 1. **Stop ComfyUI** using the stop button 2. **Start ComfyUI** again 3. Models should now be visible in dropdowns This fully reloads ComfyUI and ensures all models are properly detected. ## Troubleshooting Model Issues ### Model Not Visible in ComfyUI **Problem:** Uploaded model doesn't appear in node dropdowns in ComfyUI **Solutions:** 1. **Check folder placement** - Ensure model is in the correct ComfyUI folder 2. **Verify folder spelling** - Check that folder names match ComfyUI's exact spelling requirements (e.g., `checkpoints/`, `loras/`, `controlnet/`) 3. **Refresh ComfyUI** - Use the refresh button in the actions bar 4. **Restart ComfyUI** - Stop and start ComfyUI to force reload 5. **Verify upload completion** - Check that upload finished successfully 6. **Check file format** - Ensure model file has correct extension (.safetensors, .ckpt, etc.) ### Upload Failures **Problem:** Model upload fails or gets stuck **Solutions:** 1. **Check internet connection** - Ensure stable connection for large downloads 2. **Verify API keys** - Ensure Civitai/Hugging Face credentials are correct 3. **Try different upload method** - Switch between URL, local upload, or search ### Getting Help If you continue experiencing issues: 1. **Check error messages** - Note any specific error codes or messages 2. **Try basic troubleshooting** - Refresh, restart, re-upload 3. **Contact FlowScale support** - Reach out via: * **Email**: [hello@flowscale.ai](mailto:hello@flowscale.ai) * **Slack Community**: [Join here](https://join.slack.com/t/flowscalecommunity/shared_invite/zt-320joycdu-K67c8VNMR7eTmHUZ3asuRg) and chat in the general channel - the FlowScale team is very active there 4. **Provide details** - Include model name, upload method, and error messages The FlowScale team can assist with model installation and troubleshooting to ensure your models work properly in your workflows. {/* ## Frequently Asked Questions Yes! All models in FlowScale are stored at the organization level. Once uploaded, any model is automatically available across all projects in your organization. Both the global Models tab and project-level Models sections show identical content. **Public Models** are curated by FlowScale and include popular, tested models like Stable Diffusion, FLUX, and ControlNet variants. **Private Models** are for your custom uploads, proprietary models, or specific versions not available in the public library. Follow ComfyUI's standard folder structure: checkpoints/, loras/, controlnet/, vae/, etc. This ensures automatic recognition in workflows. Create appropriate folders before uploading and use descriptive names for easy identification. First, click the **Refresh** button in ComfyUI's actions bar. If that doesn't work, stop and restart ComfyUI. Also verify the model is in the correct folder and the upload completed successfully (check notifications via the bell icon). Yes! Use the **Search and Import** option in the upload dialog. You'll need API credentials: get your Civitai API key from their account settings, or your Hugging Face access token from their token settings page. No, FlowScale provides unlimited storage capacity for your organization's model library. You can upload as many models as needed without size restrictions. Click the **bell icon** in the top navigation to view notifications. All model download progress, completion status, and any error messages appear in the notifications panel. FlowScale supports all standard ComfyUI model formats including .safetensors, .ckpt, .pt, and other common AI model file types. The same formats that work in local ComfyUI will work in FlowScale. */} ## Getting Started Ready to start working with models? Check out our [Import & Create Workflows](/getting-started/import-create-workflows) guide to begin building your first AI-powered workflow using FlowScale's model management system. ### Related Documentation * [ComfyUI Workspace](/getting-started/glossary/comfyui-workspace) - Learn how to build workflows with models * [Projects](/getting-started/glossary/projects) - Understanding project organization * [Pods](/getting-started/glossary/pods) - Computing resources that run your models # Pods Source: https://docs.flowscale.ai/getting-started/glossary/pods Cloud GPU infrastructure that powers your ComfyUI workflows and deployments **TL;DR:** A Pod is a cloud GPU machine managed by FlowScale AI that powers your ComfyUI workspace and any APIs/playgrounds you deploy from a project. Pods give you fine‑grained control over cost, performance, access, and scale—all without having to provision infrastructure yourself. ## Why Pods Exist Every FlowScale AI project needs an attached pod to spin‑up a ComfyUI workspace in the cloud Deploy workflows as API endpoints with a Playground UI Serverless GPU containers that scale automatically based on traffic ## Key Concepts The graphics card model used by the pod (e.g. *T4 16GB*, *A10G 24GB*, *L40S 48GB*, *A100 40GB*, *A100 80GB*, *H200 141GB*, *B200 180GB*). Each model has a different \$/hr rate. The *maximum* number of GPU workers the pod can burst to during high load. Time a container waits after a generation before parking (→ \$0.07/hr CPU fee only). The first request that wakes an idle container. Adds \~10‑20s latency depending on model size. Containers you pin **always‑on**. Great for latency‑sensitive use cases; incurs full GPU cost 24/7. Hard cap (in minutes) on a single generation. Prevents runaway jobs & surprise bills. Optional soft‑limit that stops the pod once the specified credit amount is consumed. ## Pod Types & GPU Configurations **Best for:** Development, simple workflows, testing Perfect for getting started and lightweight image generation tasks **Best for:** Enhanced development, moderate workloads Cost-effective option with improved performance over T4 **Best for:** Standard image generation, medium workloads Balanced performance for most production use cases **Best for:** Advanced image/video generation, large models High-memory GPU for complex multi-modal workflows **Best for:** Complex workflows, large model training High-performance computing for demanding AI tasks **Best for:** Massive models, extensive batch processing Maximum A100 memory for the largest workloads **Best for:** Largest models, real-time inference Top-tier performance for the most demanding workloads **Best for:** Massive models, extreme workloads Maximum memory capacity for the largest AI models **Best for:** Next-generation AI inference, cutting-edge models Latest architecture with massive memory for breakthrough AI performance ## Creating a Pod Go to **Pods → ➕ New Pod** Pick a **GPU Type** that balances memory requirements vs. price Set **Allotted GPU Containers** (start with 1 unless you expect heavy traffic) Tick **Assign Credit Budget** and enter a limit to control costs Click **Create Pod** — ComfyUI is now one click away! ## Pod Settings Configuration Navigate to **Pods › *Your Pod* › Settings** to access three configuration tabs: Pod configuration interface showing GPU selection, resource allocation, and performance settings with clear options and recommendations * Rename or add description to your pod * Toggle **Assign Credit Budget** and manage spending limits Detailed GPU configuration panel showing hardware specifications, availability status, and performance optimization options **Core Configuration:** * Change the **GPU Type** * Adjust **Allotted GPU Containers** **Timeout Options:** * **Generation Run Timeout** – cap per‑request time * **Idle Timeout** – how long containers stay warm after each request **Performance Optimization:** * **Warm Containers** (visible when scaling > 1) – pin a subset always‑on Start with Idle Timeout = 60s and Warm Containers = 0 to minimize spend, then optimize for latency later. **Access Control:** * Add teammates by handle or email * Assign **Owner**, **Admin**, or **Member** roles * Only listed members and service accounts can access ComfyUI workspace or call private APIs ## How Pod Scaling Works **Key Phases:** * **Cold Start** – Container boots and loads workflow graph ± model weights * **Warm Pool** – Containers stay resident until *Idle Timeout* expires * **Round‑Robin** – FlowScale AI evenly distributes jobs to maximize utilization ## Cost Control Best Practices Use the smallest GPU that meets VRAM requirements Keep **Allotted GPU Containers** realistic (1‑2 for dev, ≥3 for prod) Set **Run Timeout** ≤ expected worst‑case generation + 20% Tune **Idle Timeout** (30‑120s sweet spot) before going live Apply a **Credit Budget** on every non‑trial pod ## Monitoring & Performance Monitor CPU, GPU, memory, and storage utilization in real-time Track execution times, throughput, and latency patterns Monitor error rates, failure types, and get debugging information Track resource costs and identify optimization opportunities {/* ## Frequently Asked Questions Yes! For example, use an A100 pod for 4K renders and a T4 pod for thumbnails to optimize costs. New jobs fail with a budget error; existing generations finish gracefully. You can raise the cap or wait until the next billing cycle. No—pods are **scoped to a single project** for isolation & cost tracking purposes. Go to **Pods › *Your Pod* › Deployment History** for per‑generation logs. **Development pods** have longer session persistence (up to 6 hours) and full ComfyUI workspace interface. **Production pods** have fast cold-start optimization (< 30 seconds) and API-only interface. */} ## Next Steps Deploy your ComfyUI workflows to production pods # Projects Source: https://docs.flowscale.ai/getting-started/glossary/projects Understanding projects in FlowScale - your workspace for building and deploying AI workflows ## What is a Project? A **project** in FlowScale is a workspace that contains your workflows and all the configurations needed to run them. You must create a project before you can start building or importing any workflows. Comprehensive project dashboard showing the main workspace interface with project navigation, workflow organization, deployment status, and component overview clearly displayed Once you've built your workflows, you can deploy them from your project as APIs or Playground UIs on a Pod. ## Project Components Every FlowScale project includes: Build and edit your AI workflows Deploy workflows as live APIs View execution history from APIs and Playground Configure environment, API keys, and collaborators ## ComfyUI Workspace The ComfyUI Workspace is where you build and modify your AI workflows. It provides a visual node-based interface for creating complex AI pipelines. Project-specific ComfyUI workspace interface showing workflow development environment with project context, saved workflows, and workspace tools integrated Learn more about ComfyUI in the [ComfyUI documentation](/getting-started/glossary/comfyui). ## Deployments Once your workflows are ready, you can deploy them as: * **APIs**: RESTful endpoints for programmatic access * **Playground UIs**: Interactive web interfaces for testing Project deployments dashboard showing deployed APIs and playground interfaces with status indicators, endpoint URLs, and management controls All deployed workflows run on Pods, which provide the computational resources needed for your AI workflows. ## Runs The Runs section shows the execution history of your workflows, including: * Runs triggered through deployed APIs * Runs executed in the Playground UI * Input parameters and output results * Execution timestamps and status Execution history interface showing workflow runs with timestamps, input parameters, output results, and execution status in a detailed timeline view ## Project Settings ### API Keys Once you deploy an API, you can manage API keys in the project settings. These keys are used to authenticate requests to your deployed workflows. ### Environment Variables If your workflows or custom nodes require specific environment variables, you can configure them in the Environment Settings. This is useful for: * API keys for external services * Configuration parameters * Custom node requirements ### Collaborators You can add team members to your project for collaboration. Project settings interface showing API key management, environment variables configuration, and team collaboration controls with role assignments and permissions Before adding collaborators to a project, they must first be added to your organization. ## Getting Started Start by creating a new project in your FlowScale workspace Use the ComfyUI Workspace to create or import your AI workflows Set up any required environment variables or configurations Deploy your workflows as APIs or Playground UIs Invite team members to work together on your project ## Next Steps Set up a new project and import workflows Deploy project workflows as APIs # Import/Create Workflows Source: https://docs.flowscale.ai/getting-started/import-create-workflows Learn how to bring existing ComfyUI workflows into FlowScale AI or create new ones from scratch import ImportWorkflowsTroubleshooting from '/snippets/troubleshooting/import-workflows-basic.mdx'; Import your ComfyUI workflows into FlowScale AI for team collaboration and production deployment. This guide covers importing existing workflows and creating new ones in the cloud environment. **New to FlowScale AI?** You'll need to [create a project first](/getting-started/glossary/projects). Think of projects as collaborative workspaces where your team's workflows live and evolve together. ## Import Existing Workflows ### Step-by-Step Import Process In your FlowScale AI project dashboard, click the **"Import Workflow"** button Clean FlowScale project dashboard interface showing the main workspace with a prominently highlighted Import Workflow button in the top-right area. Shows project name, navigation sidebar, and empty workflow list state with clear call-to-action styling {/* Image Description for Team: Screenshot of FlowScale project dashboard showing main interface with prominent Import Workflow button and workflow list */} Select and upload your ComfyUI workflow JSON file (exported from ComfyUI using the "Save" option) Modal dialog overlay showing the workflow import interface with drag-and-drop file upload area, supported file format information (.json), and clear upload instructions. Includes progress indicator and file validation messaging {/* Image Description for Team: Screenshot of import modal showing file upload area with drag-and-drop zone and accepted file format information */} FlowScale AI automatically detects required custom nodes and displays them for review Interface showing automated detection of custom nodes with a list view displaying node names, sources (GitHub URLs), and status indicators (detected/verified/missing). Includes resolution options and dependency management tools {/* Image Description for Team: Screenshot of custom nodes detection showing list of detected nodes with status indicators and source information */} If conflicting nodes are detected, select the correct versions that your workflow actually uses Detailed conflict resolution interface showing side-by-side comparison of conflicting node versions with recommendation badges, compatibility notes, and user selection options. Includes version numbers and source information {/* Image Description for Team: Screenshot of conflict resolution showing node versions with comparison options and recommended version highlighting */} Click Confirm to add all necessary configuration for your workflow, and your imported project is ready to use! Step-by-step visual flow showing the entire import process from file upload through conflict resolution to successful integration, with progress indicators and completion confirmation {/* Image Description for Team: Screenshot showing complete import flow with step-by-step progress and imported workflow preview */} ### Supported Import Format FlowScale AI imports **Workflow JSON** files from ComfyUI's "Save" function. **File Format Matters:** Only use JSON files exported directly from ComfyUI's Save function. Other export formats or manually edited files may cause import issues or lost functionality. ## Accessing ComfyUI Workspace Pods are cloud-hosted ComfyUI instances that provide on-demand access to GPU resources. ### Launch Process Click **"Start ComfyUI"** button in your project Project interface showing the prominent Start ComfyUI button with pod status indicators and workspace access controls. Shows resource availability and startup options {/* Image Description for Team: Screenshot of project interface showing workflow list with prominent Start ComfyUI button and navigation structure */} Choose the pod configuration for your ComfyUI instance from the modal Modal dialog displaying available GPU pod options with detailed specifications (T4, A10G, L4, L40S, A100 40GB, A100 80GB, H100, H200, B200), pricing information, resource availability status, and performance recommendations for different workflow types {/* Image Description for Team: Screenshot of pod selection modal showing GPU types, resource specifications, and pricing information */} While ComfyUI starts, custom nodes are installed automatically. View progress in System Logs Console/terminal interface showing real-time startup logs with custom node installation progress, dependency resolution status, and system initialization messages. Includes timestamps and log level indicators {/* Image Description for Team: Screenshot of ComfyUI startup showing loading interface with logs panel and installation progress indicators */} Once started, you'll see the ComfyUI workspace in CPU mode Full ComfyUI interface in CPU mode showing the node-based visual programming environment with sample workflow loaded, CPU mode indicator in top bar, and workspace tools/panels visible {/* Image Description for Team: Screenshot of ComfyUI workspace showing full interface with CPU mode indicator and imported workflow */} ### CPU vs GPU Mode **For workflow editing:** * Connecting nodes and adjusting parameters * Low cost for workflow development * Use for planning and structure building **For workflow execution:** * Running inference and testing outputs * Higher cost but enterprise GPU performance * Use only when generating results **Cost Optimization**: Always use CPU mode for editing workflows and only switch to GPU mode when you need to execute them. This prevents unnecessary credit burn. Close-up of the ComfyUI actions bar highlighting the CPU/GPU mode toggle switch with clear visual states, resource usage indicators, and cost implications display {/* Image Description for Team: Screenshot of actions bar showing CPU/GPU toggle switch and other action buttons like Save, Queue, Stop, Refresh */} ## Model Management FlowScale AI provides centralized model management with public and private model libraries for team sharing. ### Model Setup Process Launch your ComfyUI instance in your project Run your workflow once to identify missing models (you'll see error messages) Error modal showing missing model notification with specific model names, suggested resolution actions, and links to model management tools. Clear error messaging with actionable next steps {/* Image Description for Team: Screenshot of error message showing missing model notification with resolution options and action buttons */} Look for required models in the dropdown menus of the workflow nodes themselves. If models are available in the public library, they will appear in the relevant node dropdowns within your workflow Models may appear under similar filenames—check carefully for variations or similar names. ComfyUI workflow node with expanded dropdown menu showing available models, model categories, and selection interface. Highlights newly added models and compatibility indicators {/* Image Description for Team: Screenshot of ComfyUI node showing expanded model dropdown with available models and selected model highlighted */} If models aren't found publicly, navigate to **Private Models** section Dedicated models management page showing folder structure, uploaded models list, storage usage, and organization tools. Clean file browser-style interface with model metadata {/* Image Description for Team: Screenshot of private models section showing folder structure, model list, and upload/manage options */} Create appropriate folder structure as required by ComfyUI or custom nodes Modal dialog for creating new model folders with folder type selection (checkpoints, loras, vae, embeddings), naming conventions, and organizational structure options {/* Image Description for Team: Screenshot of folder creation dialog showing dropdown with folder type options like checkpoints, loras, embeddings */} Click **"Upload Model"** and either search for models or provide download links Tabbed interface showing multiple upload methods such as file upload, URL download, and model search. Includes progress tracking, validation, and metadata extraction features {/* Image Description for Team: Screenshot of model upload interface showing tabbed options for search, URL download, and file upload */} After model download completes, refresh ComfyUI from the actions bar Actions bar with highlighted refresh button for reloading models and nodes, showing refresh state indicators and workspace synchronization status {/* Image Description for Team: Screenshot showing ComfyUI actions bar with refresh button highlighted for reloading models and nodes */} Check the workflow node dropdowns again to confirm the newly added models are now available for selection {/* Image Description for Team: Screenshot showing workflow node dropdown with newly uploaded model visible and selectable in the list */} ### Model Sources Pre-loaded models from Hugging Face, Civitai, and popular community sources Custom models, fine-tuned checkpoints, and specialized LoRAs Direct download from external sources using model URLs ### Folder Structure Guidelines When creating folders for models, follow ComfyUI conventions: * **Checkpoints**: `models/checkpoints/` * **LoRAs**: `models/loras/` * **VAE**: `models/vae/` * **Custom nodes**: Check the node's GitHub repository for specific folder requirements For custom node models, always refer to the node's GitHub repository README for correct folder naming conventions. {/* Image Description for Team: Screenshot of models organization showing folder tree structure with standard ComfyUI folders and organized models */} ## Creating New Workflows Create workflows directly in FlowScale AI for immediate team collaboration and deployment readiness. ### Quick Start Method Click **"Create New Workflow"** button in your project Project dashboard with highlighted Create New Workflow button as alternative to importing, showing workflow templates and creation options {/* Image Description for Team: Screenshot showing project dashboard with Create New Workflow button prominently displayed as alternative to importing */} A basic text-to-image workflow loads automatically in the ComfyUI workspace A basic text-to-image workflow loads automatically in the ComfyUI workspace {/* Image Description for Team: Screenshot showing ComfyUI workspace with simple starter workflow template ready for customization */} Modify the workflow by adding, removing, or connecting nodes as needed Modify the workflow by adding, removing, or connecting nodes as needed {/* Image Description for Team: Screenshot showing ComfyUI workspace with workflow being modified and creative process of building workflows */} Click **"Save"** in the actions bar and provide a descriptive commit message Click Save in the actions bar and provide a descriptive commit message {/* Image Description for Team: Screenshot of save dialog showing modal with commit message field, version control information, and save options */} {/* ## Troubleshooting ### Common Issues For detailed troubleshooting guidance, refer to our [FAQ and Troubleshooting guide](/getting-started/troubleshooting). */} ## Next Steps Transform workflows into production APIs and interactive interfaces # Get Started Source: https://docs.flowscale.ai/getting-started/introduction Welcome to FlowScale AI - Deploy ComfyUI workflows as scalable APIs in minutes Clean, modern hero illustration showing the FlowScale AI platform interface with ComfyUI workflow nodes being transformed into API endpoints. Split-screen design with workflow on left and deployed API interface on right, connected by transformation arrows. Professional gradient background with FlowScale branding colors Transform your ComfyUI workflows into production-ready APIs without infrastructure complexity. FlowScale AI handles deployment, scaling, and governance so you can focus on AI innovation. Bring your existing ComfyUI workflows or create new ones Turn workflows into scalable serverless APIs in one click ## Core Platform Features * **Cloud-native ComfyUI**: Enterprise-grade GPU infrastructure (T4, A10G, L4, L40S, A100, H100, H200, B200) * **One-click deployment**: Workflows become production APIs in seconds * **Team collaboration**: Safe contribution across skill levels with governance * **Automatic interfaces**: Generated UIs for demos and testing ## Key Benefits * **Focus on Innovation**: Eliminate infrastructure complexity and technical debt * **Team Collaboration**: Safe iteration with built-in governance and guardrails * **Enterprise Reliability**: Automatic scaling, monitoring, and SLA-ready performance * **Cost Control**: Serverless GPU compute with usage-based pricing and budget controls ## Getting Started Upload existing workflows or use curated templates Perfect workflows in cloud ComfyUI with enterprise GPUs One-click deployment with access controls and auto-generated documentation Track performance and scale automatically as demand grows **New to ComfyUI?** That's perfectly fine! Start with our [comprehensive ComfyUI guide](/getting-started/glossary/comfyui) to understand the foundational concepts. You'll be creating powerful workflows in no time. **Already comfortable with ComfyUI?** Jump straight to [importing your workflows](/getting-started/import-create-workflows) and see how quickly you can deploy them as production APIs. ## Next Steps **Start here if:** You're new to ComfyUI or need to understand the core concepts before diving in. **You'll learn:** The fundamental building blocks and mental models that make everything else click. **Start here if:** You already have ComfyUI workflows that create great results and want to make them production-ready. **You'll do:** Import your workflows and see them become scalable APIs in minutes. **Start here if:** You're a developer who needs to call AI workflows from applications, tools, or automation systems. **You'll build:** Production integrations with SDKs, authentication, and scaling controls. **Start here if:** You're stuck on something specific or need answers to immediate questions. **You'll find:** Solutions to common issues and direct paths to get unblocked. For strategic context and organizational benefits, see [Why FlowScale AI?](/getting-started/why-flowscale-ai) # Project Migration from GitHub to Google Login Source: https://docs.flowscale.ai/getting-started/troubleshooting/project-migration Help existing users seamlessly import their projects after FlowScale AI's authentication change from GitHub OAuth to Google Sign-In ## Why We're Making This Change FlowScale AI has transitioned from GitHub authentication to Google authentication to provide significant improvements: * **Lower friction** – no GitHub permission pop‑ups or PATs. * **Greater privacy** – FlowScale AI no longer requests repo‑level scopes. * **Simpler storage** – projects now live securely in FlowScale AI's own database (no Git repos to maintain). ## Before You Begin | ✔️ Do | ❌ Don't | | ---------------------------------------------------------------------- | ------------------------------------------------------------------ | | Sign in with **the same email address** you previously used on GitHub. | Use a different Google address if you want your old projects back. | | Make sure you can still access that GitHub account. | Disconnect GitHub until migration finishes. | ## Step-by-Step Migration ### Sign In with Google 1. Browse to **app.flowscale.ai**. 2. Click **Continue with Google**. 3. Select the **same email** that matches your GitHub account. {/*

[GOOGLE SIGN-IN INTERFACE PLACEHOLDER]

Google authentication interface showing FlowScale login process with Google OAuth integration, email selection options, and clear "Continue with Google" button prominently displayed.

Image Type: UI Screenshot | Context: Authentication process initiation
*/} ### Connect GitHub One Last Time 1. You are prompted to **Connect GitHub**. Click **Authorize**. 2. Approve the read‑only permission request. Connect GitHub **Heads‑up:** If the GitHub account's primary email does not match your Google email, the wizard will block migration. Switch accounts or update your GitHub email before retrying. ### Start Migration 1. After a successful GitHub link, the **Start Migration** button appears. 2. Click it to begin. Start Migration ### Track Progress * A progress bar shows each project as it's imported. Larger repos take longer. {/*

[MIGRATION PROGRESS INTERFACE PLACEHOLDER]

Real-time migration progress interface showing project transfer status, completion percentage, and processing indicators with individual project status updates.

Image Type: UI Screenshot | Context: Live migration progress tracking
*/} ### Finish & Open Dashboard 1. When everything is green, click **Go to Dashboard**. 2. Confirm that every project, workflow, and environment variable is present. Migration Finished ## Migration Timeline & Expectations
Small Projects
1-5 workflows
⏱️ 2-3 minutes
Medium Projects
5-20 workflows
⏱️ 5-10 minutes
Large Projects
20+ workflows
⏱️ 15-20 minutes
You'll receive a notification once the migration is complete.
* ✅ Migrated projects will appear in your dashboard as they're processed * ✅ Progress indicator shows status for large migrations * ✅ No interruption to existing deployments * 🎯 All projects accessible from your FlowScale AI dashboard * 🎯 No changes to your workflow files or configurations * 🎯 Existing deployments continue to work normally * 🎯 GitHub repositories remain unchanged (copied, not moved)
## What Changed Under the Hood? | Old (≤ v0.23) | New (≥ v0.24) | | ------------------------------------------------- | ------------------------------------------------------- | | Auth: GitHub OAuth only | Auth: Google Sign‑In ➜ optional GitHub link (read‑only) | | Projects stored as private repos on *your* GitHub | Projects stored in FlowScale AI's managed database | | Required **repo** & **workflow** scopes | No GitHub scopes | ## Frequently Asked Questions **Q — I accidentally used a different Google account. Can I merge later?** Currently, no. Log out and sign back in with the original email to trigger migration. **Q — My projects didn't appear. What should I do?** Go to Profile page and verify that the email you are logged in with is the same as the github account email that you were working with before? If issues persist, email [hello@flowscale.ai](mailto:hello@flowscale.ai) with your GitHub username. **Q — Will FlowScale AI still push changes back to GitHub?** New projects stay entirely inside FlowScale AI. ## Troubleshooting Migration Issues If you encounter issues during migration, these solutions usually resolve common problems. If the migration process doesn't start automatically: Ensure you're using the exact same email address from your GitHub account Sometimes cached data can interfere with the detection process Test logging in using an incognito/private browser window The detection system may need a moment to process your login If some projects don't appear after migration: * ✅ **Repository permissions**: Ensure FlowScale AI had access to all your repositories * ✅ **Private repositories**: Make sure private repos containing FlowScale projects were accessible * ✅ **Repository naming**: Projects may have been in repositories with non-standard names * ✅ **Contact support**: We can manually review your account for missing projects If migration appears stuck or fails: 1. **Refresh the page**: Sometimes the status display needs updating 2. **Check internet connection**: Ensure you have a stable connection 3. **Try logging out and back in**: This can restart the migration process * Very large projects may take longer than the estimated time * Check your network stability during long migrations * Consider migrating during off-peak hours for better performance ## Need Help? * **Support Email**: [hello@flowscale.ai](mailto:hello@flowscale.ai) * [**Community Slack**](https://join.slack.com/t/flowscalecommunity/shared_invite/zt-320joycdu-K67c8VNMR7eTmHUZ3asuRg) We appreciate your patience while we improve FlowScale AI. Happy building! Migration support is available 24/7 during the transition period. We're committed to ensuring all users can access their projects seamlessly. # Release Notes - May 12, 2025 Source: https://docs.flowscale.ai/reference/changelog/2025-05-12 Version v2.0.53 - Advanced Settings Mode Switching, Pod Budgets, and Enhanced Security # Version v2.0.53 *Released on May 12, 2025* *** ## 🚀 Highlights **What most people will notice first:** ### Instant Mode-Switch for Advanced Settings You can flip between "normal" and "power-user" views with one click. The app even detects special FS (FlowScale IO) nodes for you, so you don't hunt for them manually. If you are already using FlowScale IO Nodes, your workflow will be automatically configured for deployment. ### Clear Spending Limits for Pods Each Pod (think of it as one workspace or mini-server) now shows you its money limit up front. *** ## 🔟 New Features **Biggest additions to the platform:** ### Advanced API Settings Enhancement Automatic detection of FlowScale IO nodes for deployment configuration Instant switching between normal and power-user views ### Pod Budget Management Assign a hard dollar cap to each Pod right in its General tab. Great for preventing unintentional credit bills. The moment a Pod goes below \$1, you get a notification and an email alert. Clear display of budget limits and current spending directly in the interface. ### Enhanced Security & Permissions **Advanced API Settings Warning** * Turning on/off the expert view and clicking "Save Changes" wipes any parameters you selected earlier * A bright warning now tells you *before* you lose work **Safe Delete for Environment Variables** * Deleting an environment variable now asks "Are you sure?" to prevent accidental deletions * Better protection for critical configuration keys **Member Restrictions** * Non-admins (role: member) cannot see or use the pod settings section * Non-admins cannot edit organization details * More granular permission controls for different user roles ### Workflow Deployment Preview **Workflow I/O Preview** * When you hit *Deploy*, the pop-up lists every configured workflow in "Ready To Deploy" section * Click on workflows to see configured inputs and outputs beforehand * Better visibility into what will be deployed ### Version Control Improvements **Introducing Version Settings** * Select ComfyUI version in project settings * Set the desired ComfyUI version while creating the project * Better control over your development environment *** ## 🛠️ Platform Improvements ### User Interface Enhancements **Visual Indicators** * New icon for collapse button * Little ⚙️ shows up beside an API file that's in "advanced" mode—instantly shows it's configured for deployment * Improved visual hierarchy throughout the platform ### Performance Optimizations **Settings Management** * **Faster mode switching** between normal and advanced views * **Improved budget calculations** with real-time updates * **Enhanced permission checking** for better security *** ## 🐞 Bug Fixes **What we squashed this release:** ### Custom-Node Management * **Fixed**: Custom-Node URL duplicates - editing a link now overwrites instead of adding a second copy * **Improved**: Better handling of custom node URL modifications ### Deployment Stability * **Fixed**: Deployment status messages no longer flicker * **Improved**: What you see now equals reality in deployment status ### General Stability * **Enhanced**: Overall platform stability with better error handling * **Improved**: User feedback mechanisms across various operations *** ## 📊 Platform Usage & Impact **100% prevention** of unintentional overspending with new pod budgets **60% faster** advanced settings configuration with mode switching **Enhanced permission system** with role-based access controls **Significantly improved** workflow deployment preview and management *** ## 🛣️ Coming Next ### June 2025 Preview **Advanced Budget Features** * **Budget analytics**: Detailed spending insights and trends * **Team budget sharing**: Collaborative budget management * **Automated budget adjustments**: Smart budget recommendations **Enhanced Workflow Tools** * **Workflow templates**: Pre-configured workflow starting points * **Batch operations**: Manage multiple workflows simultaneously * **Advanced debugging**: Better tools for troubleshooting issues *** ## 📚 Migration Guide ### Recommended Actions Configure budget limits for all your pods to prevent overspending Check team member permissions and adjust roles as needed Try the new mode switching functionality in your workflows Use the new deployment preview to verify workflow configurations *** ## 📞 Support & Feedback Connect with the community and get real-time support Report issues directly to our engineering team Explore our comprehensive documentation *** **Enjoy the update—and happy automating!** 🚀 *FlowScale AI Team*\ *May 12, 2025* # Release Notes - May 21, 2025 Source: https://docs.flowscale.ai/reference/changelog/2025-05-21 Version v2.0.54 - Unified Workflow JSON, Custom Node Management, and Enhanced Development Experience # Version v2.0.54 *Released on May 21, 2025* *** ## 🚀 Highlights **What most people will notice first:** ### Streamlined Node Management You can now "only save" custom nodes without triggering a reinstall, streamlining node updates and giving you more control over when installations happen. ### Unified Workflow Experience Workflow editing in the UI has been unified: normal and API JSON schemas are now merged for a single, seamless experience. No more switching between different views! *** ## 🔟 New Features **Biggest additions to the platform:** ### Enhanced Custom Node Management "Only Save" button lets you save nodes without triggering ComfyUI refresh Choose when to install nodes - manually refresh or let it cold-start ### Unified Workflow JSON Interface Combined normal (workflow\.json) and API (\_api.json) files into one unified view for easier management Removed the separate "Update Workflow" feature - everything is now handled in one place Alert modal prompts if \_api.json is missing when opening Advanced API Settings ### Workflow Encoding/Decoding Support **Enhanced Consistency** * Added encoding and decoding for workflows to ensure consistency between ComfyUI and saved workflows in GitHub * Better synchronization between different workflow representations * Improved reliability when switching between platforms ### User Experience Improvements **WebSocket URL Loader** * Added a loader indicator on the WebSocket URL field, matching the API Server URL behavior * Better visual feedback during connection establishment * Consistent loading states across all URL fields *** ## 🐞 Bug Fixes **What we squashed this release:** ### Pod Management * **Fixed**: Budget can now be updated in "Edit Pod" modal * **Improved**: Better budget management workflow within pod settings ### API Configuration * **Fixed**: Persist existing workflow inputs and outputs API configuration * **Improved**: Configuration persistence across sessions and updates ### Interface Cleanup * **Fixed**: Hide the "Stop" button in project's API Server history * **Improved**: Cleaner interface with better action button management *** ## 🛠️ Platform Improvements ### Development Experience **Unified Workflow Management** * **Single interface** for all workflow JSON operations * **Simplified editing process** with merged schema handling * **Better consistency** between different workflow representations ### Custom Node Operations **Flexible Installation Control** * **Save without install** option for faster iterations * **Manual refresh control** for better development workflow * **Reduced interruptions** during active development sessions ### Performance Enhancements **Loading Indicators** * **Consistent visual feedback** across all connection operations * **Better user awareness** of ongoing processes * **Improved responsiveness** perception *** ## 📊 Platform Usage & Impact **40% faster** custom node management with flexible save options **100% unified** workflow editing experience across all interfaces **Reliable preservation** of API configurations and settings **Streamlined interface** with better visual feedback and consistency *** ## 🛣️ Coming Next ### June 2025 Preview **Advanced Workflow Features** * **Workflow versioning**: Track and compare different workflow versions * **Batch workflow operations**: Manage multiple workflows simultaneously * **Enhanced debugging tools**: Better insights into workflow execution **Custom Node Ecosystem** * **Node marketplace**: Discover and install community nodes * **Node dependencies**: Better management of node requirements * **Performance profiling**: Optimize node performance and usage *** ## 📚 Migration Guide ### Recommended Actions Explore the new unified workflow JSON interface in your existing projects Use the new "Only Save" feature to manage your custom node updates Check that your existing API configurations are properly preserved Update pod budgets using the improved Edit Pod modal *** ## 📞 Support & Feedback Connect with the community and get real-time support Report issues directly to our engineering team Explore our comprehensive documentation *** **Enjoy the update—and happy building!** 🚀 *FlowScale AI Team*\ *May 21, 2025* # Release Notes - June 11, 2025 Source: https://docs.flowscale.ai/reference/changelog/2025-06-11 Version v2.0.55 - Workflow Version Switching, Node Preview, and ComfyUI v0.3.34 Upgrade # Version v2.0.55 *Released on June 11, 2025* *** ## 🚀 Highlights **What most people will notice first:** ### Old-Workflow Version Switching Instantly jump back to any previously saved workflow version directly from the UI—no manual file-hunting required. ### Advanced Configuration UX: Node Preview Select nodes in the Advanced Configuration panel and after visiting next time see preview. ### Notifications Pagination Your notification center now supports pagination—load more alerts on demand to keep things snappy. ### ComfyUI Engine Upgrade Updated to ComfyUI **v0.3.34**, bringing performance improvements and the latest core bug fixes. *** ## 🔟 New Features **Biggest additions to the platform:** ### Old-Workflow Version Switcher New "Revert" button in the Change History to revert to any historic workflow version Easy access to all previously saved workflow versions Seamlessly switch between workflow versions without losing your progress or having to manually manage files. ### Preview Selected Nodes in Advanced API Settings Preview on each node within the Advanced API Settings for better visibility Added "Reset Settings" button to wipe the settings clean and start fresh Improved user experience when configuring advanced API parameters ### Enhanced Notifications System **Pagination Support** * Load old notifications by scrolling at the bottom of your notifications feed * Improved performance with on-demand loading * Better organization of notification history ### ComfyUI v0.3.34 Integration **Engine Improvements** * Added new ComfyUI 0.3.34 version support * Performance optimizations and bug fixes from the latest ComfyUI release * Enhanced stability and compatibility with latest workflows *** ## 🐞 Bug Fixes **What we squashed this release:** ### Notification Persistence * **Fixed**: Pagination state now persists when navigating away and back to the notifications panel * **Improved**: Better state management for notification feeds *** ## 🛠️ Platform Improvements ### Performance Enhancements **Workflow Management** * **Faster version switching** with optimized workflow loading * **Improved notification loading** with pagination implementation * **Enhanced preview rendering** for advanced configuration nodes ### User Experience **Interface Improvements** * **Streamlined version control** with intuitive revert functionality * **Better visual feedback** for node previews and configurations * **Improved navigation** between notification pages *** ## 📊 Platform Usage & Impact **50% faster** workflow version switching with new revert functionality **30% improvement** in advanced settings configuration with node previews **75% reduction** in notification loading times with pagination **ComfyUI v0.3.34** brings latest performance improvements and bug fixes *** ## 🛣️ Coming Next ### July 2025 Preview **Enhanced Workflow Tools** * **Bulk version operations**: Manage multiple workflow versions simultaneously * **Version comparison**: Side-by-side comparison of workflow versions * **Advanced notifications**: Better filtering and categorization options **Platform Stability** * **Improved error handling**: Better feedback for workflow operations * **Performance optimizations**: Continued improvements to loading times * **Enhanced debugging tools**: Better insights into workflow execution *** ## 📚 Migration Guide ### Recommended Actions Check out the new revert functionality in your workflow change history Visit Advanced API Settings to see the new node preview functionality Use the new pagination to explore your notification history Consider upgrading to ComfyUI v0.3.34 for latest improvements *** ## 📞 Support & Feedback Connect with the community and get real-time support Report issues directly to our engineering team Explore our comprehensive documentation *** **Enjoy the update—and happy automating!** 🚀 *FlowScale AI Team*\ *June 11, 2025* # Release Notes - July 15, 2025 Source: https://docs.flowscale.ai/reference/changelog/2025-07-15 Version v2.0.56 - ComfyUI Configuration Tab, Google Login, and Enhanced Team Management # Version v2.0.56 *Released on July 15, 2025* *** ## 🚀 Highlights **What most people will notice first:** ### ComfyUI Configuration Tab A brand-new UI for configuring ComfyUI settings—clean, intuitive, and right where you need it. Easily adjust ComfyUI version, set API keys, and manage credits all in one place. ### Google-Only Login We've removed GitHub login and now offer a streamlined Google Login experience for faster, more secure access to the platform. ### Teams Dropdown Prioritization Your own team now appears at the top of the teams dropdown for quicker switching between organizations. *** ## 🔟 New Features **Biggest additions to the platform:** ### Dedicated ComfyUI Configuration New dedicated ComfyUI Configuration tab under Settings Adjust ComfyUI version, set API keys, and buy ComfyUI API Credits ### Enhanced Authentication System Replaced GitHub authentication with Google Login for improved OAuth flow and better reliability New guided flow for existing users to migrate their GitHub repositories into FlowScale AI seamlessly Simplified authentication process with faster, more secure login experience ### Improved Team Management **User Experience Enhancements** * **User's Team on Top**: Automatically moves your primary team to the top of the teams dropdown * **Faster Team Switching**: Quick access to your most frequently used team * **Better Organization**: Improved team navigation and management ### Development Experience Improvements **Enhanced Action Controls** * **Disable ComfyUI Action Bar**: The action bar now disables itself while custom nodes are being installed or uninstalled * **Conflict Prevention**: Prevents conflicting actions during node management operations **Keyboard Shortcuts** * **Commit on Enter**: Hit Enter in the "Commit Changes" modal to trigger the save button—no more hunting for the mouse * **Improved Workflow**: Faster commit operations with keyboard shortcuts *** ## 🛠️ Platform Improvements ### User Interface Enhancements **Configuration Management** * **Intuitive ComfyUI settings** with dedicated configuration interface * **Better visual organization** of settings and options * **Streamlined credit management** for ComfyUI API usage ### Authentication & Security **Google OAuth Integration** * **More reliable authentication** with Google's robust OAuth system * **Faster login process** with improved user experience * **Better security** with Google's authentication infrastructure ### Performance Optimizations **Team Management** * **Faster team switching** with prioritized team dropdown * **Improved loading times** for team-related operations * **Better responsiveness** in team navigation *** ## 🐞 Bug Fixes **What we squashed this release:** ### Platform Stability * **Enhanced**: Minor stability tweaks across authentication and workflow modules * **Improved**: Better error handling during authentication flows * **Optimized**: Overall platform performance and reliability ### User Experience * **Refined**: Various UI polish improvements throughout the platform * **Enhanced**: Better feedback mechanisms for user actions * **Improved**: More consistent behavior across different platform areas *** ## 📊 Platform Usage & Impact **50% faster** login process with new Google authentication **Centralized ComfyUI management** with dedicated configuration tab **Instant access** to primary team with prioritized dropdown **Enhanced productivity** with keyboard shortcuts and better action controls *** ## 🛣️ Coming Next ### August 2025 Preview **Advanced Configuration Features** * **Bulk configuration management**: Configure multiple projects simultaneously * **Configuration templates**: Pre-defined settings for different use cases * **Advanced API management**: Enhanced API key and credit management tools **Enhanced Migration Tools** * **Advanced repository migration**: Better tools for complex repository structures * **Team migration assistance**: Streamlined team and project migration workflows * **Configuration backup**: Backup and restore configuration settings *** ## 📚 Migration Guide ### Recommended Actions Existing users should complete the Google Login migration process Visit the new ComfyUI Configuration tab to manage your settings Use the new migration flow to transfer your existing GitHub repositories Take advantage of the improved team dropdown prioritization *** ## 📞 Support & Feedback Connect with the community and get real-time support Report issues directly to our engineering team Explore our comprehensive documentation *** **Enjoy the update—and happy building!** 🚀 *FlowScale AI Team*\ *July 15, 2025* # Release Notes - July 30, 2025 Source: https://docs.flowscale.ai/reference/changelog/2025-07-30 Version v2.0.56 - External Models Manager, Upload Features, and Enhanced Workflow Management # Version v2.0.56 *Released on July 30, 2025* *** ## 🚀 Highlights **What most people will notice first:** ### External Models Manager The Models Manager is now outside individual projects and sits conveniently beside Pods for easier access. Quickly locate models within expanded volume folders using the new search functionality. External Models Manager interface showing the new location beside Pods ### Upload Models from Your PC You can now upload model files directly from your computer via the Models Manager, streamlining your workflow setup process. Model upload interface showing drag-and-drop functionality and upload options *** ## 🔟 New Features **Biggest additions to the platform:** ### Models Manager Now External Access models outside of your project for better organization New search bar for finding folders, including models in expanded subfolders The Models Manager has been relocated for improved accessibility and workflow efficiency. Enhanced search functionality in the Models Manager ### New Upload Options for Models Search and add models from sources like CivitAI and other popular model repositories directly through the interface. search models interface Upload models via direct download URLs for quick integration of models from various sources. upload model by URL interface Upload model files directly from your PC with a simple drag-and-drop interface for maximum convenience. upload model by URL interface ### Move Workflow/Folder Feature **Enhanced Organization** * Move workflows to any folder structure using a new, intuitive modal * Improved project organization capabilities * Streamlined workflow management across different project structures Move workflow modal interface showing folder selection ### Revamped Playground Experience The Playground has received significant improvements for better user experience and enhanced functionality, providing a more intuitive environment for testing and iterating on your workflows. Revamped Playground interface with enhanced functionality *** ## 🐞 Bug Fixes **What we squashed this release:** ### Import Workflow Modal * **Fixed**: **Confirm** button wasn't disabled while a workflow upload was in progress * **Fixed**: FS and Comfy Core nodes are now filtered out and won't be shown in the missing nodes list during workflow upload * **Improved**: **'rgthree' nodes have been moved to the custom nodes accordion** instead of the missing nodes section for better clarity ### Stop Button Visibility * **Fixed**: Stop button was not visible inside deployments when multiple deployments existed * **Improved**: Better visibility and accessibility of deployment controls ### Workflow and Folder Management * **Fixed**: Left sidebar keeps loading even when workflow/folder is renamed successfully * **Improved**: More responsive interface updates after rename operations ### Generation Timeout Issues in Playground * **Fixed**: Optimized generation to prevent timeouts when using custom nodes with long cold start times * **Improved**: Better handling of extended processing times for complex workflows ### Pod Permissions * **Fixed**: Some users with member role were able to see pod settings tab inappropriately * **Improved**: More granular permission controls for different user roles *** ## 🛠️ Platform Improvements ### Performance Enhancements **Models Management** * **Faster model loading** with the new external Models Manager architecture * **Improved search performance** across large model libraries * **Reduced memory footprint** when managing multiple model files **Workflow Organization** * **Enhanced folder navigation** with better performance on large project structures * **Optimized move operations** for workflows and folders * **Improved UI responsiveness** during bulk operations ### User Experience **Interface Improvements** * **Streamlined Models Manager** with better visual hierarchy * **Intuitive upload flows** with clear progress indicators * **Enhanced drag-and-drop** functionality across the platform * **Improved modal interactions** with better loading states *** ## 📊 Platform Usage & Impact **3x increase** in model upload efficiency with new PC upload feature **60% faster** workflow management with external Models Manager **45% reduction** in time spent searching for models and organizing workflows **15+ bugs fixed** with improved error handling and user feedback *** {/* ## 🛣️ Coming Next ### August 2025 Preview **Advanced Model Management** - **Model versioning**: Track and manage different versions of your models - **Batch model operations**: Upload and organize multiple models simultaneously - **Model sharing**: Share models across teams and projects more efficiently **Enhanced Playground** - **Live preview**: Real-time preview of workflow changes - **Advanced debugging**: Better tools for troubleshooting workflow issues - **Performance profiling**: Detailed insights into workflow execution times */} *** ## 📚 Migration Guide ### Recommended Actions Check out the new Models Manager location and organize your model libraries Test the PC upload functionality and external source integration Use the new move workflow feature to optimize your project structure Models Manager has moved - update any bookmarked locations *** ## 📞 Support & Feedback Connect with the community and get real-time support Report issues directly to our engineering team Explore our comprehensive documentation *** **Enjoy the update—and streamline your workflows!** 🚀 *FlowScale AI Team*\ *July 30, 2025* # Release Notes - September 17, 2025 Source: https://docs.flowscale.ai/reference/changelog/2025-09-17 Version v2.0.57 - New Onboarding Experience and Free Plan Access # Version v2.0.57 *Released on September 17, 2025* *** ## 🚀 Highlights **What most people will notice first:** ### Streamlined Onboarding Flow We've completely redesigned the onboarding experience to get new users up and running faster than ever. New onboarding interface with step-by-step guidance ### Free Plan Access FlowScale AI is now accessible to everyone! Free plan users can now access the platform and explore core features, with usage limitations on premium GPU resources. *** ## 🔟 New Features **Biggest additions to the platform:** ### Interactive Onboarding Experience New users are now welcomed with an interactive onboarding flow: Interactive tutorial interface showing workflow creation steps ### Free Plan Tier Free plan users can access all essential platform features including project creation, comfyui workspace and deployments. Free users have access to standard GPU resources, perfect for learning and small-scale projects. High-end GPUs like A10G, H100, H200 and other premium resources remain exclusive to paid plans for optimal performance and resource allocation. *** ## 💰 Pricing & Plans ### Free Plan Features Create and manage unlimited projects Access to public models and basic model management Limited access to standard GPU resources Access to community forums and documentation Deploy workflows with standard resource limits ### Premium Features (Paid Plans Only) * **High-Performance GPUs**: A10G, H100, and other premium GPUs * **Priority Support**: Direct access to technical support team * **Advanced Collaboration**: Team management and sharing features * **Unlimited Models**: No limits on private models *** ## 📞 Support & Feedback Connect with the community and get real-time support Report issues directly to our engineering team Explore our comprehensive documentation and tutorials Suggest new features and improvements *** *FlowScale AI Team*\ *September 17, 2025*