> ## Documentation Index
> Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Search Image

> Upload an image for image-search

<Info>
  **Product**: Video Datalake
  **Host**: `https://api.memories.ai/datalake/v1`
  **Auth**: `Authorization: sk-mai-...`
</Info>

Upload an image and get a signed URL to use in `query_images`. Alternatively, POST the image directly to [Search](/datalake/search/search) as a multipart `file` part.

<Note>
  **Pricing:** \$0.00012 / image · See [Pricing](/datalake/pricing) for the full model.
</Note>

## Response Fields

<ResponseField name="url" type="string">Signed image URL (1h TTL) for `query_images`.</ResponseField>
<ResponseField name="expires_in" type="integer">Seconds until expiry.</ResponseField>

## Notes

`file:///` and other local paths → 400.


## OpenAPI

````yaml POST /datalake/v1/search/images
openapi: 3.1.0
info:
  title: Memories.ai DataLake API 2.0
  version: 2026-08
  description: OpenAPI mapping used by Mintlify Try it for the DataLake API 2.0 docs.
servers:
  - url: https://api.memories.ai
security:
  - ApiKeyAuth: []
paths:
  /datalake/v1/search/images:
    post:
      tags:
        - Search
      summary: Upload an image for image-search
      description: >-
        Upload an image and get a signed URL to use in `query_images`.
        Alternatively, POST the image directly to
        [Search](/datalake/search/search) as a multipart `file` part.
      operationId: upload_search_image
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: Query image, ≤10MB, common formats.
              required:
                - file
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                url: https://…signed…
                expires_in: 3600
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Send `Authorization: sk-mai-...`'

````