Skip to main content

POST /upload_image

Uploads a face image to Training API storage. The returned valossaupload:// URL is then used in add_face_image.

Endpoint

POST https://api-eu.valossa.com/training/1.0/upload_image

Content Type

Use multipart/form-data.

Form Fields

FieldTypeRequiredDescription
api_keystringYesFaces-enabled API key
image_datafileYesJPG or PNG image file

Response

Successful response (200) returns:

FieldTypeDescription
uploaded_file_urlstringvalossaupload://... file reference

Example

curl -F "image_data=@ricky_1.jpg" \
-F "api_key=YOUR_API_KEY" \
https://api-eu.valossa.com/training/1.0/upload_image

Notes

  • Max image size is 8 MB.
  • Supported formats are JPG and PNG.
  • Recommended training quality improves with many diverse, clear face photos.