Upload Image from File
Index Upload
Upload Image
Upload one or more images to your Private Image Library for indexing and search.
POST
Upload Image from File
Product: Visual Search
Use case: Upload videos and images, auto-index them, then search by natural language, image, or transcript phrase
Host:
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)Prerequisites
- You have created a memories.ai API key.
- Supported formats:
.jpg,.jpeg,.png,.gif,.bmp,.webp(case-insensitive). TheContent-Typeof each file part must start withimage/. - Max file size: 20 MB per image.
Endpoint
This endpoint uses
multipart/form-data. Repeat the files field once per image. All other parameters are sent as form fields.Authentication
Request Example
Request Parameters
One or more image files. Each must have a supported extension and a
Content-Type starting with image/. Maximum 20 MB per file. If any file in the batch fails validation, the entire request is rejected.Capture time in
yyyy-MM-dd HH:mm:ss format. Invalid formats are rejected.Camera or device model name. Maximum 200 characters.
GPS latitude where the images were captured (decimal).
GPS longitude where the images were captured (decimal).
User-defined tags. Maximum 50 tags per request. An
api tag is appended automatically.Notes & Limits
- Rate limiting: Exceeding the per-account upload rate limit returns an error. See Rate limits.
- Billing: Each upload deducts credits from your account. Insufficient balance causes the request to fail.
- Batch validation: If any file in the batch fails validation, the entire request is rejected — no files are uploaded.
Response Example
Response Fields
Business status code.
0000 indicates success.Human-readable status message.
Array of uploaded image entries, in the same order as the
files parts in the request.Unique numeric identifier for the uploaded image. Use this in subsequent search and retrieval operations.
Authorizations
Body
multipart/form-data
One or more image files. Allowed extensions: .jpg, .jpeg, .png, .gif, .bmp, .webp. Content-Type must start with image/. Max 20 MB per file. Batch size capped by server configuration.
Capture time in format yyyy-MM-dd HH:mm:ss.
Example:
"2025-09-07 22:52:00"
Camera/device model. Max 200 characters.
Maximum string length:
200Example:
"Canon EOS 5D"
Example:
39.9042
Example:
116.4074
User-defined tags. Max 50. The server automatically appends an 'api' tag.
Maximum array length:
50Example:
