#Shorten API URL

13 messages · Page 1 of 1 (latest)

strong python
#

I mean, the easiest thing to do would be to just save the image to your computer as a PNG, at which point you can make the filename as long or as short as you like. (I'm also fairly certain the API sessions expire after an hour, so that would probably be a wise thing to do regardless just to be safe.)

modern gate
#

the URL generated by the API is a temporary link that expires in one hour, it wasn't supposed to be shared, it is just for your application to download the output within this time frame

#

hirtory / archive is a feature of the website, the API only handles image generation

empty scroll
#

question how do I pass the b_64 json image as the previous image when calling the variation API

#

I am currently getting error request failed with status code 415

modern gate
#

as far as I know, the output has to be a file stream

#

it does not accept base64 as input

signal prawn
#

Input is binary file, convert the b64 to binary format

#

Are you doing this in js

#

Constant buffer = Buffer.from(yourb64image, 'base64');

#

buffer.path =“image.png”

#

Then pass buffer as variations input