Daniel Olagunju • 6 months ago
API Authorization Failing
Every attempt to use the API is failing with this error - {
"error": {
"code": 401,
"message": "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
"details": "401 Unauthorized: The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required."
},
"request_id": "068c9a181520486ebe2383f543396f02"
}
I am confused on how to proceed. Any help from the team?
Comments are closed.
7 comments
Thomas Komar Manager • 6 months ago
Hey Daniel! Can you let me know which end point you were trying to call? That will help us guide you on next steps. Thank you!
Daniel Olagunju • 6 months ago
i tried this - curl -i -X POST \
https://engine.prod.bria-api.com/v2/image/generate \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"prompt": "A photorealistic, high-resolution rendering of balloon lettering spelling out \"HAPPY NEW YEAR 2026\" against a pristine white backdrop. The balloons are meticulously crafted with a metallic, reflective surface, showcasing a vibrant color palette of Pantone Bran, Crocus, and Deja vu blue. The composition is perfectly aligned and balanced, emphasizing the celebratory message with natural, soft lighting that creates subtle, elegant reflections and shadows."
}' and got a status url . the status url is what returns the above error
Andrews Kwesi Ankomahene • 6 months ago
I'm getting the same feedback even when I use the playground here:
https://docs.bria.ai/image-generation/v2-endpoints/image-generate
Gal Davidi Manager • 6 months ago
Hi guys, I’m here to try and help you solve those problems
usually 401 happens because there is something wrong with the API key.
Maybe try to create a new one and use this. If it still doesn’t work, please don’t hesitate to write me about it.
Thomas Komar Manager • 5 months ago
Hi guys, I would check that you properly update your API token in the header. It is not pre-populated. I was able to replicate the error and found that was the main issue. More info on getting your api token can be found here: https://docs.bria.ai/
Koushik Deb • 5 months ago
Hello Team,
What will be cost to call FIBO model from hugging face? Should I buy hugging face pro account or FIBO premium in Bria.ai? Hackathon will run for long (More than 1 month) and I need to test my application with FIBO api.
Misha Feinstein Manager • 5 months ago
@Koushik Deb - I suggest signing into Bria's platform (https://platform.bria.ai/) - this will give you a 14 days free trial and than a predictable cost per call.
Running on HuggingFace will probably be a bit less stable.