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
| Field | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Faces-enabled API key |
image_data | file | Yes | JPG or PNG image file |
Response
Successful response (200) returns:
| Field | Type | Description |
|---|---|---|
uploaded_file_url | string | valossaupload://... 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.