> ## 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.

# 특정 이미지 메타데이터 조회



## OpenAPI

````yaml https://beta.flamel.app/api-json get /api/images/{id}
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/{id}:
    get:
      tags:
        - images
      summary: 특정 이미지 메타데이터 조회
      operationId: ImagesApiController_findImageMetadata
      parameters:
        - name: id
          required: true
          in: path
          description: Image ID(이미지 ID)
          schema:
            type: number
      responses:
        '200':
          description: 이미지 메타데이터
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageMetaDto'
        '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
        '404':
          description: Not Found
          content:
            application/json:
              examples:
                NoInputImage:
                  summary: Image Does Not Exist(이미지 존재 안 함)
                  value:
                    success: false
                    code: 404
                    data: no_input_image (:imageId)
      security:
        - apiKey: []
components:
  schemas:
    ImageMetaDto:
      type: object
      properties:
        imageId:
          type: number
          description: ID(아이디)
        creditCost:
          type: number
          nullable: true
          description: Credit Cost(크레딧 소모량)
        createdAt:
          format: date-time
          type: string
          description: Creation Date(생성 일시)
        generationStatus:
          type: string
          description: Generation Status(생성 상태)
          enum:
            - PENDING
            - COMPLETED
            - FAILED
          nullable: true
          default: COMPLETED
        generationError:
          type: string
          description: Generation Error(생성 에러 메시지)
          nullable: true
        resolution:
          type: string
          pattern: /\d{3,4}x\d{3,4}/
          description: Resolution(해상도)
          example: 512x512
        ownerId:
          type: number
          description: Owner ID(소유자 아이디)
        Likes:
          description: Like Information(좋아요 정보(좋아요 눌렀으면 내 아이디 객체 들어있음))
          type: array
          items:
            $ref: '#/components/schemas/Like'
        Dislikes:
          description: Dislike Information(싫어요 정보(싫어요 눌렀으면 내 아이디 객체 들어있음))
          type: array
          items:
            $ref: '#/components/schemas/Dislike'
        bookmarked:
          type: boolean
          description: 북마크 여부
        Owner:
          description: 오너정보
          allOf:
            - $ref: '#/components/schemas/ImageOwnerDto'
        Upscaled:
          type: array
          items:
            $ref: '#/components/schemas/ImageMetaUpscaleInfoDto'
        DownloadLog:
          description: 다운로드 로그
          type: array
          items:
            $ref: '#/components/schemas/ImageMetaDownloadLogDto'
        CollectionInfo:
          description: 컬렉션 정보
          nullable: true
          allOf:
            - $ref: '#/components/schemas/ImageMetaCollectionInfoDto'
        GenerationInfo:
          description: 생성 정보
          nullable: true
          allOf:
            - $ref: '#/components/schemas/ImageMetaGenerationInfoDto'
        UpscaleInfo:
          description: 업스케일 정보
          nullable: true
          allOf:
            - $ref: '#/components/schemas/ImageMetaUpscaleInfoDto'
        Bought:
          description: 구매 관련 정보
          nullable: true
          type: array
          items:
            $ref: '#/components/schemas/ImageMetaBoughtDto'
      required:
        - imageId
        - creditCost
        - createdAt
        - generationStatus
        - generationError
        - resolution
        - ownerId
        - bookmarked
        - Owner
        - Upscaled
        - DownloadLog
        - CollectionInfo
        - GenerationInfo
        - UpscaleInfo
        - Bought
    Like:
      type: object
      properties:
        likeId:
          type: number
          description: 아이디
        userId:
          type: number
          description: 유저 아이디
        imageId:
          type: number
          description: 이미지 아이디
        createdAt:
          format: date-time
          type: string
          description: 날짜
        platform:
          type: string
          nullable: true
          description: 플랫폼
      required:
        - likeId
        - userId
        - imageId
        - createdAt
    Dislike:
      type: object
      properties:
        dislikeId:
          type: number
          description: 아이디
        userId:
          type: number
          description: 유저 아이디
        imageId:
          type: number
          description: 이미지 아이디
        createdAt:
          format: date-time
          type: string
          description: 날짜
        platform:
          type: string
          nullable: true
          description: 플랫폼
      required:
        - dislikeId
        - userId
        - imageId
        - createdAt
    ImageOwnerDto:
      type: object
      properties:
        name:
          type: string
          description: 이름
        profileImage:
          type: string
          description: 프로필이미지 주소
      required:
        - name
        - profileImage
    ImageMetaUpscaleInfoDto:
      type: object
      properties:
        imageId:
          type: number
          description: 이미지 아이디
        scaleSize:
          type: string
          pattern: /\dx/
          description: 스케일 사이즈
          example:
            - 1x
            - 2x
            - 4x
            - 8x
        Image:
          $ref: '#/components/schemas/ImageMetaUpscaledImageDto'
      required:
        - imageId
        - scaleSize
    ImageMetaDownloadLogDto:
      type: object
      properties:
        imageId:
          type: number
          description: 이미지 아이디
        userId:
          type: number
          description: 유저 아이디
      required:
        - imageId
        - userId
    ImageMetaCollectionInfoDto:
      type: object
      properties:
        enabled:
          type: boolean
          description: 활성화 여부
        is2x:
          type: boolean
          description: 2x여부
          deprecated: true
        CollectionEnTags:
          description: 영어태그
          type: array
          items:
            $ref: '#/components/schemas/ImageMetaCollectionTagDto'
        CollectionKoTags:
          description: 한글태그
          type: array
          items:
            $ref: '#/components/schemas/ImageMetaCollectionTagDto'
        Style:
          description: 스타일
          allOf:
            - $ref: '#/components/schemas/ImageMetaCollectionStyleDto'
        Theme:
          description: 테마
          type: array
          items:
            $ref: '#/components/schemas/ImageMetaCollectionThemeDto'
        promptText:
          type: string
          description: 번역된 컬렉션 프롬프트
      required:
        - enabled
        - is2x
        - CollectionEnTags
        - CollectionKoTags
        - Style
        - Theme
        - promptText
    ImageMetaGenerationInfoDto:
      type: object
      properties:
        blurReason:
          type: string
          description: Blur Image Status(블러이미지 여부(블러이미지면 버튼 표시하면 안 됨))
      required:
        - blurReason
    ImageMetaBoughtDto:
      type: object
      properties:
        imageId:
          type: number
          description: 이미지 아이디
        scaleSize:
          type: string
          pattern: /\dx/
          description: 스케일 사이즈
          example:
            - 1x
            - 2x
            - 4x
            - 8x
        Image:
          description: 이미지 정보
          allOf:
            - $ref: '#/components/schemas/CreditHistoryBoughtImageDto'
      required:
        - imageId
        - scaleSize
        - Image
    ImageMetaUpscaledImageDto:
      type: object
      properties:
        imageId:
          type: number
          description: ID(아이디)
        ownerId:
          type: number
          description: Owner ID(소유자 아이디)
      required:
        - imageId
        - ownerId
    ImageMetaCollectionTagDto:
      type: object
      properties:
        title:
          type: string
          description: 태그명
      required:
        - title
    ImageMetaCollectionStyleDto:
      type: object
      properties:
        main:
          type: string
          description: 중분류코드
          example: DIG
        mainText:
          type: string
          description: 중분류(i18n)
      required:
        - main
        - mainText
    ImageMetaCollectionThemeDto:
      type: object
      properties:
        code:
          type: string
          description: 대주제 코드
          example: TURTLE
        nameText:
          type: string
          description: 테마 이름(i18n)
          example: Business
      required:
        - code
        - nameText
    CreditHistoryBoughtImageDto:
      type: object
      properties:
        imageId:
          type: number
          description: ID(아이디)
        DownloadLog:
          description: 이미지 정보
          type: array
          items:
            $ref: '#/components/schemas/OnlyUserIdDto'
      required:
        - imageId
        - DownloadLog
    OnlyUserIdDto:
      type: object
      properties:
        userId:
          type: number
          description: 유저 아이디
      required:
        - userId
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````