ashakoen / next-js-flux1-replicate

Flux.1 Image Generator is a web application that allows users to generate images using the Flux.1 AI models (dev and schnell versions) hosted on Replicate. This project uses Next.js to provide a user-friendly interface for image generation.
https://next-js-flux1-replicate.vercel.app
MIT License
2 stars 1 forks source link

Need help with API Tokens #1

Open ElgerElg opened 3 days ago

ElgerElg commented 3 days ago

Greetings! In the hope that they will answer me here, I tell them about my problems. I'm new to AI, trying to create a personal image generation for me and friends. Following the instructions in next-js-flux1-replicate, I came across the error:

"Error from Replicate API: { title: 'Invalid version or not allowed', detail: "The specified version does not exist (or perhaps you don't have permission to use it?)", status: 422"

I do not know what to do. I hope for help.

ashakoen commented 2 days ago

Sorry about that! You need a Replicate API key to generate images. You can get one here:

https://replicate.com/account/api-tokens

Once you have a Replicate API key, you enter it into the app. See below:

CleanShot 2024-09-17 at 16 29 13

ElgerElg commented 2 days ago

Yeah I did it but it gives me error. Maybe to Replicate need to pay or something? Maybe need setup billing? Thank you for reply

ashakoen commented 2 days ago

Yes, you would need to setup billing at Replicate since the application uses their infrastructure to do the FLUX.1 predictions.

ElgerElg commented 2 days ago

Ah thank you very much I will try and say if needs

ElgerElg commented 6 hours ago

Hello! So, I linked my visa card to replicate but in this site I get this error again... Token is entered

"Error from Replicate API: { title: 'Invalid version or not allowed', detail: "The specified version does not exist (or perhaps you don't have permission to use it?)", status: 422"