Images
Upload a reference image
Changed onUploads a PNG, JPEG or WebP image (up to 20 MB) to use as a reference when generating images or videos. Returns an image_id to pass in reference_image_ids (or as a video start/end frame). Requires a valid X-API-KEY header.
Throws:
- 400 if the file is not a PNG, JPEG or WebP image, or its dimensions are too large
- 413 if the file is larger than 20 MB
post/image/upload
Request
- Base URLhttps://api.wondercraft.ai/v1
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
Successful Response
Changes
- info
endpoint added
- info