Downloading images created with Replicate's Flux AI and post them on Instagram

Hello everyone, I have joined the make community, nice to meet you.
I have a quick question about a problem that I can’t solve after a few days of trial and error.
I am trying to create a scenario as per the subject line, I am able to generate an image from Repliacte.
However, I cannot find a way to download or upload that image to Instagram.
I have read through the community logs but could not figure it out.
Can you give me any hints on how to solve this problem from the information I provide?
Thanks.

Below is a file of blueprints.
RSS to IG.blueprint.json (64.1 KB)

The HTTP module that created the image outputs the following contents

Blockquote
[
{
“statusCode”: 201,
“headers”: [
{
“name”: “date”,
“value”: “Thu, 12 Jun 2025 15:20:51 GMT”
},
{
“name”: “content-type”,
“value”: “application/json; charset=utf-8”
},
{
“name”: “transfer-encoding”,
“value”: “chunked”
},
{
“name”: “connection”,
“value”: “keep-alive”
},
{
“name”: “server”,
“value”: “cloudflare”
},
{
“name”: “cf-ray”,
“value”: “94ea55a6da94c983-IAD”
},
{
“name”: “cf-cache-status”,
“value”: “DYNAMIC”
},
{
“name”: “strict-transport-security”,
“value”: “max-age=15552000”
},
{
“name”: “ratelimit-remaining”,
“value”: “599”
},
{
“name”: “ratelimit-reset”,
“value”: “1”
},
{
“name”: “report-to”,
“value”: “{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=7ib%2FdwrdG39Rzqa9wS%2Bk%2BHco4RXukqS8nxlcD4nptgkMBrXcak2nck3kiFN7iKQdwuWiTDI%2FRbIIySsKMqtKpblFjAC5ifRlM5i5dCjhvbrpEw48Kh5v3e5iNy8DlFrXW3bC"}],"group":"cf-nel","max_age":604800}”
},
{
“name”: “nel”,
“value”: “{"success_fraction":0,"report_to":"cf-nel","max_age":604800}”
},
{
“name”: “vary”,
“value”: “Accept-Encoding”
},
{
“name”: “expect-ct”,
“value”: “max-age=86400, enforce”
},
{
“name”: “referrer-policy”,
“value”: “same-origin”
},
{
“name”: “x-content-type-options”,
“value”: “nosniff”
},
{
“name”: “x-frame-options”,
“value”: “SAMEORIGIN”
},
{
“name”: “x-xss-protection”,
“value”: “1; mode=block”
},
{
“name”: “alt-svc”,
“value”: “h3=":443"; ma=86400”
},
{
“name”: “server-timing”,
“value”: “cfL4;desc="?proto=TCP&rtt=2505&min_rtt=1784&rtt_var=1184&sent=4&recv=6&lost=0&retrans=0&sent_bytes=2829&recv_bytes=1957&delivery_rate=1623318&cwnd=251&unsent_bytes=0&cid=096b67ed027c8b51&ts=128&x=0"”
}
],
“cookieHeaders”: ,
“data”: {
“id”: “647qv1p4jhrj60cqcjx81akwng”,
“model”: “xlabs-ai/flux-dev-realism”,
“version”: “39b3434f194f87a900d1bc2b6d4b983e90f0dde1d5022c27b52c143d670758fa”,
“input”: {
“aspect_ratio”: “16:9”,
“image_prompt”: “modern golf technology, AI analysis, professional sports, U.S. Open championship”,
“num_outputs”: 1,
“output_format”: “jpg”,
“output_quality”: 100,
“prompt”: “A modern golf training facility at Oakmont Country Club with high-tech AI analysis equipment and golfers. The scene shows a professional looking tent labeled ‘Drive By Lexus’ where golfers are practicing their swings. Digital displays show 3D swing analysis data, with metrics for pelvis and chest rotation. In the background, there are Pebble Beach golf simulators and adjustable putting greens. The iconic U.S. Open Trophy is displayed prominently. The atmosphere is futuristic yet maintains the traditional elegance of golf.”,
“prompt_upsampling”: false,
“safety_tolerance”: 2
},
“logs”: “”,
“output”: null,
“data_removed”: false,
“error”: null,
“status”: “starting”,
“created_at”: “2025-06-12T15:20:51.092Z”,
“urls”: {
“cancel”: “https://api.replicate.com/v1/predictions/647qv1p4jhrj60cqcjx81akwng/cancel”,
“get”: “https://api.replicate.com/v1/predictions/647qv1p4jhrj60cqcjx81akwng”,
“stream”: “https://stream.replicate.com/v1/files/qoxq-4f57sv4mmpdac62cncmbreuc7xwhswx5fcjmss6udwzytsrtlbha”,
“web”: “https://replicate.com/p/647qv1p4jhrj60cqcjx81akwng
}
},
“fileSize”: 1379
}
]
Blockquote

Hey there,

what issues are you having with this exactly? It looks like the JSON you are providing is returning a URL to download the file from (get) and a URL to directly view the file (web).

1 Like

Welcome to the Make community!

Looks like the HTTP module only triggers the start of generating the images, and proceeds to the next module.

You’ll likely need another HTTP module to retrieve the result.

If you have more than one image in an array, what do you do when you have an array?

“Looping” Through Array Items

When you see an array in your module’s output, think of using an Iterator module.

In this example, this variable is an array of items (collections). You’ll want to map this array in an Iterator module.


Question: Have you tried mapping your array variable into an Iterator module, ran the scenario once, and view the output?

Next,

Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

You can find out more about the other types of aggregator modules here:

Question: Which is the best aggregator do you think you’ll need for your use-case?

Mapping a Specific Structure Into a Complex Field

If you have an array of collections, in programming terms, this is called an array of objects, or an array with non-primitive data types (“complex”).

The Array Aggregator module is very powerful because it allows you to build a new complex array of collections that matches a later module’s field to map multiple items (collections) to it. Such fields initially would allow you to manually add items, but you can toggle the “Map” switch to the “on” state and map a whole array into a single field.

This is done by selecting the “Target structure type” in an Array Aggregator module.

As you can see from the above example, the “Map” toggle on complex fields are used when you have an array variable (like from an array aggregator). Other combinations of modules may also allow you to generate an array that matches a future field’s array structure, like “Aggregate to JSON + Parse JSON”, or “Create JSON + Parse JSON”, but this is an advanced topic.

Question: Are you mapping your array into a field that accepts more than one item/collection?

For more information, see “Mapping with arrays” in the Help Centre. You should also do the Make Academy, which also covers the use of Iterators & Aggregators.

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

1 Like

By adding the HTTP module, we were able to get the URL of the image.We were also able to successfully pass this image to Instagram.
Thank you both very much. :star_struck: