Make Instruction: How to Use PiAPI to Build a Workflow on Make?
Intorduction
1.
2.
3.
4.
5.
6.
💡 If you have a technical background, you can quickly grasp Make's functionality and start building workflows to experiment with creative ideas. 🙌
How to find PiAPI's Flux Modules on Make Platform?
Then search for "PiAPI/Flux" and you'll see the Flux API modules available for use.
Understanding PiAPI's Endpoint Structure
Core Concepts
1. URL
POST
- Used when you need to create a task.GET
- Used when retrieving task response.2. Header Params
3. Body Params
How to Make an API Call in PiAPI
1.
2.
When using the Run API to call PiAPI platform APIs, you'll have a broader range of options. As mentioned earlier regarding API call structures, you can:
1.
2.
Now you've understood how to create an API call on PiAPI, next let's learn how to make an API call in Make.
How to make an API call in Make?
Set up a POST Module
1.
2.
Set up a GET request
1.
2.
3.
/v1/task/
followed by your specific task_id(Example:
/v1/task/12345
)GET
4.
Flux Node Selection and Parameter Configuration Guide
What is LoRA & Accessing LoRA Options
Check this page to get your ideal style of LoRA.
What is ControlNet & Accessing ControlNet Options
On Make, you can:
Module Types and Param Configuration Setting
Extend an Image
Parameter Name | Description | Constraints&Details |
---|---|---|
image | Image URL | URL format. |
prompt | Content to show in the extended part | string |
outpaint_left | Expand canvas pixels to the left | Total delta pixel size < 1024×1024 |
outpaint_right | Expand canvas pixels to the right | Total delta pixel size < 1024×1024 |
outpaint_top | Expand canvas pixels to the top | Total delta pixel size < 1024×1024 |
outpaint_bottom | Expand canvas pixels to the bottom | Total delta pixel size < 1024×1024 |
denoise | Controls noise/artifact removal strength in AI-generated images | Range: 0.1 to 1 |
guidance_scale | Adjusts adherence between generated content and text prompt | Range: 1.5 to 5.0 |
Generate an Image from an Image
Parameter Name | Description | Constraints&Details |
---|---|---|
image | Image URL | URL format. |
prompt | Content to display in the extended part | string Example: "A lovely puppy" |
negative_prompt | Elements to avoid during generation | string |
denoise | Proportion of input images (controls noise removal) | float (0.1-1.0) |
guidance_scale | Controls adherence between generated content and text prompt | float (1.5-5.0) |
Generate an Image from an Image with LoRA
Parameter | Description | Constraints&Details |
---|---|---|
Image | Image URL | URL format. |
Prompt | Desired image description | string Example: "A lovely puppy" |
Lora_type | Art style selection | Choose from PiAPI's available LoRA options |
Lora_strength | LoRA style intensity | • Range: 0.1 (faint) to 1.0 (strong) |
Guidance_scale | Prompt adherence level | • Range: 1.5 (creative) to 5.0 (strict) |
Negative_prompt | Elements to exclude | Optional Example: "blurry, distorted hands" |
Width /Height | Image dimensions | In pixels (e.g., 1024×768 )Max: 2048×2048 |
Generate an Image from Text
Parameter Name | Description | Constraints&Details |
---|---|---|
Batch_size | Batch image generation count | • Type: Integer • Range: 1 to 4 • Default: 1 |
image | Source image URL | • Type: String (URL format) |
prompt | Description of desired image content | string Example: "A lovely puppy" |
negative_prompt | Elements to avoid in generation | Optional |
guidance_scale | Controls prompt adherence strength | Range: 1.5 to 5.0 |
Generate Image with Text based on Lora
Parameter | Description | Details& Constraints |
---|---|---|
Prompt | Describe your desired image | string Example: "A lovely puppy" |
Lora_type | Select an art style | Available PiAPI LoRA options |
Lora_strength | LoRA style effect intensity | • Default: 1.0 (maximum effect)• Range: 0.1 (faint) - 1.0 (strong) |
Guidance_scale | AI prompt adherence level | Range: 1.5 (random) - 5.0 (strict) |
Negative_prompt | Elements to exclude | Optional Example: "blurry, distorted hands" |
Width/Height | Output image dimensions | In pixels (e.g., 1024×768 ) |
Generate an Image with ControlNet and LoRA
Parameter | Description | Constraints&Details |
---|---|---|
Image | Source image URL | (URL format) |
Prompt | Desired image description | string Example: "A lovely puppy" |
control_type | ControlNet type | • depth (default)• soft_edge • canny • openpose |
control_strength | ControlNet effect intensity | Range: 0.0 - 5.0 |
Lora_type | Art style selection | Select from PiAPI's LoRA options |
Lora_strength | LoRA style intensity | Range: 0.1 (faint) - 1.0 (strong) |
denoise | Input image proportion | Range: 0.1 - 1.0 |
Guidance_scale | Prompt adherence level | Range: 0.0 (random) - 5.0 (strict) |
Generate a Variation of an Image
Parameter | Description | Constraints&Details |
---|---|---|
Batch_size | Batch image generation count | Default: 1 • Range: 1 -4 |
image | Source image URL | (valid URL) |
prompt | Content for extended image part | string Example: "A lovely puppy" |
width | Image length in pixels | Recommended: ≤2048 |
height | Image width in pixels | Recommended: ≤2048 |
denoise | Noise removal strength | Range: 0.1 -1.0 |
guidance_scale | Prompt adherence strength | Range: 0.0 -5.0 |
Remove the Background from an Image
Parameter | Type | Description | Example |
---|---|---|---|
image | string | Source image URL | https://example.com/image.jpg |
Restore an Image
Parameter | Description | Constraints&Details |
---|---|---|
Batch_size | Batch image generation count | Default: 1 • Range: 1 -4 |
image | Source image URL | valid URL format |
prompt | Content for extended image part | string Example: "A lovely puppy" |
denoise | Noise/artifact removal strength | Range: 0.1 -1.0 |
guidance_scale | Prompt adherence strength | Default: 2.5 • Range: 0.0 -5.0 |
service_mode | Payment method selection | • ppu (pay-per-use)• byoa (bring-your-own-account) |
How to Build a Simple Workflow Using PiAPI on Make
First, input your parameters (such as prompt and lora_strength) into a Google Sheet based on your selected module type. Next, choose the Google Sheet trigger node . In this case, I've selected "Watch New Rows," which means the workflow will only execute when new row data is added. You may alternatively select other Google Sheet trigger nodes to suit different needs. The "Limit" setting determines how many rows are fetched per execution - I've configured it to retrieve only one row at a time.
Add a Flux node and input all required parameters.
The final step involves configuring a node to capture your output results—you can either check the small bubble notification in the upper-right corner after each workflow execution, or implement a more structured approach. For this example, I’ve selected "Update a Row" to automatically store the target image’s URL at the end of the input row upon workflow completion. This ensures seamless traceability by appending results directly to your Google Sheet.
Click Run Once
And you could check the url feedback.
And finally, you could fetch your output here. The workflow has been constructed successfully.
Join Our Discord
Our contact details are available on the homepage.
We are looking forward to friendly and constructive discussions.
Plus, we would be so glad to see your creative workflows🙌!
Modified at 2025-04-02 09:24:58