ARImageSynthesizer

FREEMIUM
От ArdicAITeam | Обновлено 2ヶ月前 | Artificial Intelligence/Machine Learning
Популярность

9.1 / 10

Задержка

135ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

How to get image

Rapid account: Ytritik 007
ytritik007
1年前

if the message is “File already in queue.” then how to get the image ?

Rapid account: Ardic AI Team
ArdicAITeam Commented 10ヶ月前

@mridulsaggi, you can specify returnType URL query parameter as image or base64. What you see is a base64 encoded JPEG image. You can decode encoded string and then load it via libraries such as Pillow on Python. If you prefer JPEG file, just add this at the end of your request;

/get?hash=<your_hash>&returnType=image

Rapid account: Mridulsaggi
mridulsaggi Commented 10ヶ月前

i got the hash value after hitting the generateimage request. but when passing that hash value to get image the reponse.data is showing very long text and not the image.
how to get the image?

Rapid account: Ardic AI Team
ArdicAITeam Commented 1年前

There should be also a “hash” field in that JSON response. Retry after 1-2 seconds and if the message is “File is ready.” then you can use that hash value as input at the /get endpoint to retrieve a plain or base64 encoded JPG file.

Please feel free to contact me if you have any further questions.

Best regards,
ARDIC AI Team

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии