ARDIC’s Image Synthesizer API!
Users can interact with this service in four ways;
Generate image. Perform a HTTP POST request containing prompt
and id
fields in multipart-form to /generate
endpoint. The response will either contain an image/jpg
if the image with given prompt and id previously was generated with a code of 200
or an Added to the queue. {HASH}
text response with a code of 202
. With provided {HASH}
user can use /get
endpoint. Guidance scale value, allows the user to adjust how closely the output image adheres to the prompt. Negative prompt, allows the user to specify prompts which the model should avoid during image generation. Inference steps’ higher value takes a longer duration of time, however a smaller value may result in visual defects. style
appends the text to the end of the prompt and used for convenience.
Get image. Perform a HTTP GET request containing hash
field as query field. The response will either be Not in queue
with a code of 204
if the hash is not in the queue or not in generated images, Place in queue: {place_in_q}/{total_number_of_images_in_q}
text message with a code of 404
if the image is still being generated or an image/jpg
with a status code of 200
.
Get image by id. Providing an uniqueID
while generating images, lets the user to filter out created images by an ID.
My images. Returns all created images in JSON
format.
If you have any questions or encounter any errors while using our services, please feel free to start a new discussion here.