cURL
curl --request POST \ --url https://api.example.com/index/{index_name}/image \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <api-key>' \ --form image_file='@example-file' \ --form 'metadata_str={}'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Image URL to download image from. One of image_url / image_file must be provided.
Image file upload. One of image_url / image_file must be provided.
Metadata dict for the video. See documentation for structure.
Successful Response