The one endpoint that is not JSON. Send multipart/form-data with the files
under a repeated images field: up to 10 JPEG, PNG, or WEBP files, each 1 KB
to 10 MB, and at most 100 MB in total. Uploading is free, and the returned
URLs are served for 1 day.
Put the URLs in inputs on generate. If your images already have public URLs,
skip this and pass those. Image to image shows
both.
Request body#
Sent as multipart/form-data.
imagesstring[]requiredThe image files to host. Repeat the field for several.
Response#
200Images uploaded
dataobjectrequiredurlsstring[]required
Errors#
A failed call names what went wrong in code, with a sentence in message. The codes, which of them are worth retrying, and how to read a validation failure are on Errors.