# Flux API

**URL:** <https://community.glideapps.com/t/flux-api/75804>\
**Category:** Ask for Help\
**Tags:** api\
**Created:** [August 22, 2024, 8:23pm UTC](https://community.glideapps.com/t/flux-api/75804 "2024-08-22T20:23:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Let\_sBrand\_Today](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/let_sbrand_today/32/73338_2.png) [@Let\_sBrand\_Today](https://community.glideapps.com/u/Let_sBrand_Today)\
**Post date:** [August 22, 2024, 8:23pm UTC](https://community.glideapps.com/t/flux-api/75804/1 "2024-08-22T20:23:29Z")

</div>

Has anyone had any luck running API calls to Replicate for Flux image generation? I’m aware that we have the Replicate integration, however that’s not working to POST/GET the image generation. I’m able to generate the image with a POST request, however when attempting to get the response, I only get back a {} error.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 22, 2024, 11:49pm UTC](https://community.glideapps.com/t/flux-api/75804/2 "2024-08-22T23:49:15Z")

</div>

What Flux model are you using? Have you turned on billing for your Replicate account?

---

<div class="post-metadata">

**Author:** ![Let\_sBrand\_Today](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/let_sbrand_today/32/73338_2.png) [@Let\_sBrand\_Today](https://community.glideapps.com/u/Let_sBrand_Today)\
**Post date:** [August 23, 2024, 5:16am UTC](https://community.glideapps.com/t/flux-api/75804/3 "2024-08-23T05:16:33Z")

</div>

I’ve tried with both the Flux-Dev and Flux-Schnell models. I have a paid account. It works for me flawlessly in Postman using the same settings.

I’ve tried a workaround using Zapier. There I am able to get the file url back in the GET request but even when I add a step to send it back to my Glide Table via an EDIT request it doesn’t send the URL to the table/column. It works in testing but not in production.

Can’t wrap my head around it.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [August 23, 2024, 7:00pm UTC](https://community.glideapps.com/t/flux-api/75804/4 "2024-08-23T19:00:16Z")

</div>

Are you trying to use the Black Forest versions of those models? There seems to be a missing parameter in the identifier that could be causing the issue.  
https://www.loom.com/embed/caf547fb1ca14259a792a0f31826e7bc

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 23, 2024, 11:40pm UTC](https://community.glideapps.com/t/flux-api/75804/5 "2024-08-23T23:40:07Z")

</div>

> **[FLUX.1 \[dev\] | API Documentation | fal.ai](https://fal.ai/models/fal-ai/flux/dev/api)**
>
> FLUX.1, a 12B parameters text-to-image model with outstanding aesthetics.

I would suggest using Fal’s API.

---

<div class="post-metadata">

**Author:** ![Let\_sBrand\_Today](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/let_sbrand_today/32/73338_2.png) [@Let\_sBrand\_Today](https://community.glideapps.com/u/Let_sBrand_Today)\
**Post date:** [August 24, 2024, 3:44pm UTC](https://community.glideapps.com/t/flux-api/75804/6 "2024-08-24T15:44:27Z")

</div>

Thanks! This actually works perfectly. I like the sync\_mode. You don’t have to make an additional call to retrieve the actual image url. Not to mention that it’s super fast!

---

<div class="post-metadata">

**Author:** ![Let\_sBrand\_Today](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/let_sbrand_today/32/73338_2.png) [@Let\_sBrand\_Today](https://community.glideapps.com/u/Let_sBrand_Today)\
**Post date:** [August 24, 2024, 3:44pm UTC](https://community.glideapps.com/t/flux-api/75804/7 "2024-08-24T15:44:57Z")

</div>

Thank you so much Rob. As always!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 25, 2024, 12:48am UTC](https://community.glideapps.com/t/flux-api/75804/8 "2024-08-25T00:48:53Z")

</div>

I think they had a partnership with Flux, I actually used their dev trial version for like 2 weeks and it was working very well. Glad it worked for you.
