I have an error in stability.ai api

adil1980

Новичок
Регистрация
10.04.2023
Сообщения
4
Благодарностей
0
Баллы
1

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113

adil1980

Новичок
Регистрация
10.04.2023
Сообщения
4
Благодарностей
0
Баллы
1
Yes . I already added application/json

And the problem was not resolved


106816
 

Вложения

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113
Then try this: image/png
Also you can check request sent in traffic monitor or using external programs like Fiddler. And confirm that request is exactly as in their docs.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113
Another mistake, there should not be a colon after Bearer

106829


Make sure there are not other mistakes and it should all work.
 

adil1980

Новичок
Регистрация
10.04.2023
Сообщения
4
Благодарностей
0
Баллы
1
I did all the instructions and the problem is not resolved
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113
Did you check traffic monitor or fiddler to confirm the exact request going out?
This request header also should contain User-Agent in the first line.

fg1YtA[1].png
 

adil1980

Новичок
Регистрация
10.04.2023
Сообщения
4
Благодарностей
0
Баллы
1

Вложения

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)