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:- Go to your FlowScale dashboard
- Navigate to your deployed workflow
- Click “Open Playground”
- Fill out the auto-generated form with your workflow’s actual parameters
- Submit to test your workflow
Method 2: Using curl
Get your exact parameter names from the Playground UI, then use curl:Method 3: Using Postman
- Create a new POST request
- Set URL:
https://your-deployment.flowscale.ai/api/v1/runs?workflow_id=your-workflow-id - Add Headers:
X-API-KEY: your-api-key
- Set Body type to “form-data”
- Add your workflow’s specific parameters as form fields
- For file uploads, select “File” type and choose your file
Method 4: Using Python requests
Method 5: Using JavaScript fetch
Discovering Your Workflow’s Parameters
From the Playground UI
- Open your workflow’s Playground
- Inspect the form fields - these are your exact parameter names
- Note the field types (text, number, file upload, etc.)
From ComfyUI Workflow
- Open your workflow in ComfyUI
- Look for nodes with input fields
- The input field names become API parameter names
- 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
- Text inputs →
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 promptnegative_prompt_68668(string) - What to avoidwidth_68669,height_68670(integers) - Image dimensionssteps_68668(integer) - Denoising stepscfg_scale_68669(number) - Guidance scaleseed_68670(integer) - Random seed
image_68671(file) - Source imageprompt_68667(string) - Transformation promptstrength_68668(number 0-1) - How much to changesteps_68668(integer) - Processing steps
image_68671(file) - Source imagecontrol_image_68672(file) - Control/reference imageprompt_68667(string) - Generation promptcontrolnet_conditioning_scale_68668(number) - Control strength
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 usingmultipart/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.