Files
Upload an image
Stores an image you send as the request body, with no multipart encoding: curl --data-binary @photo.jpg. PNG, JPEG or WebP, up to 4 MB; the type is read from the bytes. Pass the returned ID in a model's input. Send videos and sounds through POST /v1/uploads instead.
Needs an API key with the generations:write scope.
post/v1/files
Request
- Base URL: https://api.tryleap.ai
- URL: https://api.tryleap.ai/v1/files
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Query parameters
filenamestring
A name to keep with the file, such as portrait.jpg.
Response
The stored file.
Changes
No recorded changes to this operation across all 1 revision of this API.