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

# Upload Reference Image(레퍼런스 이미지 업로드)



## OpenAPI

````yaml https://beta.flamel.app/api-json post /api/images/reference
openapi: 3.0.0
info:
  title: Flamel API 문서
  description: REST API 문서입니다. 발급받은 API키를 X-Api-Key 헤더에 넣은 뒤 api를 사용하면 됩니다.
  version: '1.1'
  contact: {}
servers:
  - url: http://localhost:4010
    description: Local
  - url: https://beta.flamel.app
    description: Beta
security: []
tags:
  - name: Flamel
    description: ''
paths:
  /api/images/reference:
    post:
      tags:
        - images
      summary: Upload Reference Image(레퍼런스 이미지 업로드)
      operationId: ImagesApiController_addReferenceImage
      parameters: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '201':
          description: Upload Success(Returning Reference Link) (업로드 성공(레퍼런스 링크 반환))
          content:
            application/json:
              schema:
                type: string
                example: 0/reference-1231231.png
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                InvalidApiKey:
                  summary: Invalid API KEY(API KEY 틀림)
                  value:
                    success: false
                    code: 401
                    data: wrong_api_key
                ApiKeyExpired:
                  summary: API KEY Expired(API KEY 만료)
                  value:
                    success: false
                    code: 401
                    data: api_key_expired
        '403':
          description: Forbidden
          content:
            application/json:
              examples:
                NotLoggedIn:
                  summary: Not Logged In(로그인되어있지 않음)
                  value:
                    success: false
                    code: 403
                    data: not_logged_in
        '413':
          description: Payload Too Large
          content:
            application/json:
              examples:
                PayloadTooLarge:
                  summary: Payload Too Large(페이로드 너무 큼)
                  description: 10mb limit
                  value:
                    success: false
                    code: 413
                    data: payload_too_large
      security:
        - apiKey: []
        - cookie: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````