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

# Create a temporary upload destination

> Returns a presignedUrl. POST your file as multipart/form-data with a file field to that URL. The upload response returns location and mimeType; use them as the url and mimeType in a later creative request.



## OpenAPI

````yaml /openapi.json post /uploads
openapi: 3.1.0
info:
  title: LuluLab API · First batch
  version: 1.0.0
  description: >-
    Image generation, video generation, product video planning, product image
    planning, and the common upload and task APIs.
servers:
  - url: https://customer.lululab.ai
    description: Production
security: []
tags:
  - name: Getting started
    description: Upload product photos and estimate credits.
  - name: Creative tasks
    description: Submit an asynchronous workflow task and retrieve its result.
paths:
  /uploads:
    post:
      tags:
        - Getting started
      summary: Create a temporary upload destination
      description: >-
        Returns a presignedUrl. POST your file as multipart/form-data with a
        file field to that URL. The upload response returns location and
        mimeType; use them as the url and mimeType in a later creative request.
      operationId: createUpload
      responses:
        '201':
          description: Temporary upload destination.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  presignedUrl:
                    type: string
                    format: uri
                  mimeType:
                    type: string
                  expiresAt:
                    type: string
                    format: date-time
        '401':
          description: >-
            Request rejected. The response body contains an error title and
            detail.
        '402':
          description: >-
            Request rejected. The response body contains an error title and
            detail.
      security:
        - ApiKey: []
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Send the raw luk- API key. Do not add Bearer.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.