openapi: 3.0.0
servers:
  - url: https://prod.api.market/api/v1/magicapi/interior-remodel-ai-image-generator
info:
  title: Interior Remodel Image Generator API (ComfyUI-Interior-Remodel)
  description: Redesign interiors while preserving structural elementsAI removes
    furniture for clean, realistic remodel visualizations in seconds.
  version: 2a360362540e1f6cfe59c9db4aa8aa9059233d40e638aae0cdeb6b41f3d0dcce
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            properties:
              loc:
                items:
                  anyOf:
                    - type: string
                    - type: integer
                title: Location
                type: array
              msg:
                title: Message
                type: string
              type:
                title: Error Type
                type: string
            required:
              - loc
              - msg
              - type
            title: ValidationError
            type: object
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    Input:
      properties:
        image:
          description: An image of a person to be converted to a sticker
          format: uri
          title: Image
          type: string
          x-order: 0
          example: https://replicate.delivery/pbxt/KzvFakocwJYReDGIchM3ErNLOQK93fuzCTsTehB71ebUuiDP/224%202160.jpg
        negative_prompt:
          default: blurry, illustration, distorted, horror
          description: Negative prompt to generate the sticker
          title: Negative Prompt
          type: string
          x-order: 2
          example: blurry, illustration, distorted, horror
        output_format:
          default: webp
          description: Format of the output images
          enum:
            - webp
            - jpg
            - png
          title: output_format
          type: string
          x-order: 4
          example: webp
        output_quality:
          default: 80
          description: Quality of the output images, from 0 to 100. 100 is best quality, 0
            is lowest quality.
          maximum: 100
          minimum: 0
          title: Output Quality
          type: integer
          x-order: 5
          example: 80
        prompt:
          default: |-
            photo of a beautiful living room, modern design, modernist, cozy
            high resolution, highly detailed, 4k
          description: Prompt to generate the sticker
          title: Prompt
          type: string
          x-order: 1
          example: |-
            photo of a beautiful living room, modern design, modernist, cozy
            high resolution, highly detailed, 4k
        randomise_seeds:
          default: true
          description: Automatically randomise seeds (seed, noise_seed, rand_seed)
          title: Randomise Seeds
          type: boolean
          x-order: 6
          example: true
        return_temp_files:
          default: false
          description: Return any temporary files, such as preprocessed controlnet images.
            Useful for debugging.
          title: Return Temp Files
          type: boolean
          x-order: 3
          example: false
      title: Input
      type: object
    Output:
      items:
        format: uri
        type: string
      title: Output
      type: array
    PredictionRequest:
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        id:
          title: Id
          type: string
        input:
          properties:
            image:
              description: An image of a person to be converted to a sticker
              format: uri
              title: Image
              type: string
              x-order: 0
            negative_prompt:
              default: blurry, illustration, distorted, horror
              description: Negative prompt to generate the sticker
              title: Negative Prompt
              type: string
              x-order: 2
            output_format:
              default: webp
              description: Format of the output images
              enum:
                - webp
                - jpg
                - png
              title: output_format
              type: string
              x-order: 4
            output_quality:
              default: 80
              description: Quality of the output images, from 0 to 100. 100 is best quality, 0
                is lowest quality.
              maximum: 100
              minimum: 0
              title: Output Quality
              type: integer
              x-order: 5
            prompt:
              default: |-
                photo of a beautiful living room, modern design, modernist, cozy
                high resolution, highly detailed, 4k
              description: Prompt to generate the sticker
              title: Prompt
              type: string
              x-order: 1
            randomise_seeds:
              default: true
              description: Automatically randomise seeds (seed, noise_seed, rand_seed)
              title: Randomise Seeds
              type: boolean
              x-order: 6
            return_temp_files:
              default: false
              description: Return any temporary files, such as preprocessed controlnet images.
                Useful for debugging.
              title: Return Temp Files
              type: boolean
              x-order: 3
          title: Input
          type: object
        output_file_prefix:
          title: Output File Prefix
          type: string
        webhook:
          format: uri
          maxLength: 65536
          minLength: 1
          title: Webhook
          type: string
        webhook_events_filter:
          default:
            - start
            - output
            - logs
            - completed
          items:
            description: An enumeration.
            enum:
              - start
              - output
              - logs
              - completed
            title: WebhookEvent
            type: string
          type: array
      title: PredictionRequest
      type: object
    PredictionResponse:
      properties:
        completed_at:
          format: date-time
          title: Completed At
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        error:
          title: Error
          type: string
        id:
          title: Id
          type: string
        input:
          properties:
            image:
              description: An image of a person to be converted to a sticker
              format: uri
              title: Image
              type: string
              x-order: 0
            negative_prompt:
              default: blurry, illustration, distorted, horror
              description: Negative prompt to generate the sticker
              title: Negative Prompt
              type: string
              x-order: 2
            output_format:
              default: webp
              description: Format of the output images
              enum:
                - webp
                - jpg
                - png
              title: output_format
              type: string
              x-order: 4
            output_quality:
              default: 80
              description: Quality of the output images, from 0 to 100. 100 is best quality, 0
                is lowest quality.
              maximum: 100
              minimum: 0
              title: Output Quality
              type: integer
              x-order: 5
            prompt:
              default: |-
                photo of a beautiful living room, modern design, modernist, cozy
                high resolution, highly detailed, 4k
              description: Prompt to generate the sticker
              title: Prompt
              type: string
              x-order: 1
            randomise_seeds:
              default: true
              description: Automatically randomise seeds (seed, noise_seed, rand_seed)
              title: Randomise Seeds
              type: boolean
              x-order: 6
            return_temp_files:
              default: false
              description: Return any temporary files, such as preprocessed controlnet images.
                Useful for debugging.
              title: Return Temp Files
              type: boolean
              x-order: 3
          title: Input
          type: object
        logs:
          default: ""
          title: Logs
          type: string
        metrics:
          title: Metrics
          type: object
        output:
          items:
            format: uri
            type: string
          title: Output
          type: array
        started_at:
          format: date-time
          title: Started At
          type: string
        status:
          description: An enumeration.
          enum:
            - starting
            - processing
            - succeeded
            - canceled
            - failed
          title: Status
          type: string
        version:
          title: Version
          type: string
      title: PredictionResponse
      type: object
    Status:
      description: An enumeration.
      enum:
        - starting
        - processing
        - succeeded
        - canceled
        - failed
      title: Status
      type: string
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    WebhookEvent:
      description: An enumeration.
      enum:
        - start
        - output
        - logs
        - completed
      title: WebhookEvent
      type: string
    output_format:
      description: An enumeration.
      enum:
        - webp
        - jpg
        - png
      title: output_format
      type: string
  securitySchemes: {}
security: {}
paths:
  /predictions:
    post:
      summary: Create a prediction with jschoormans/comfyui-interior-remodel
      description: Run inference with the jschoormans/comfyui-interior-remodel model
        on API.market
      operationId: createComfyui_interior_remodelPrediction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - version
                - input
              properties:
                version:
                  type: string
                  description: Model version ID
                  default: 2a360362540e1f6cfe59c9db4aa8aa9059233d40e638aae0cdeb6b41f3d0dcce
                input:
                  $ref: "#/components/schemas/Input"
            examples:
              default:
                summary: Default example
                value:
                  version: 2a360362540e1f6cfe59c9db4aa8aa9059233d40e638aae0cdeb6b41f3d0dcce
                  input:
                    image: https://replicate.delivery/pbxt/KzvFakocwJYReDGIchM3ErNLOQK93fuzCTsTehB71ebUuiDP/224%202160.jpg
                    prompt: >-
                      photo of a beautiful living room, modern design,
                      modernist, cozy

                      high resolution, highly detailed, 4k
                    output_format: webp
                    output_quality: 80
                    negative_prompt: blurry, illustration, distorted, horror
                    randomise_seeds: true
                    return_temp_files: false
      responses:
        "201":
          description: Prediction created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the prediction
                  version:
                    type: string
                    description: Model version used for the prediction
                  status:
                    type: string
                    enum:
                      - starting
                      - processing
                      - succeeded
                      - failed
                      - canceled
                    description: Current status of the prediction
                  created_at:
                    type: string
                    format: date-time
                    description: When the prediction was created
              examples:
                success:
                  summary: Successful prediction creation
                  value:
                    id: ufawqhfynnddngldkgtslldrkq
                    version: 2a360362540e1f6cfe59c9db4aa8aa9059233d40e638aae0cdeb6b41f3d0dcce
                    status: starting
                    created_at: 2025-04-24T10:52:18.617Z
        "400":
          description: Bad request, validation error
        "401":
          description: Unauthorized, invalid API token
    parameters:
      - &a1
        description: API.market API Key
        in: header
        name: x-api-market-key
        value: Please Login/Signup to get an API Key
        required: true
        schema:
          type: string
  /predictions/{id}:
    get:
      summary: Get prediction status and results
      description: Get the status and results of a
        jschoormans/comfyui-interior-remodel prediction from API.market
      operationId: getComfyui_interior_remodelPrediction
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The prediction ID
      responses:
        "200":
          description: Prediction details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the prediction
                  status:
                    type: string
                    enum:
                      - starting
                      - processing
                      - succeeded
                      - failed
                      - canceled
                    description: Current status of the prediction
                  output:
                    $ref: "#/components/schemas/Output"
                  error:
                    type: string
                    description: Error message if the prediction failed
                  created_at:
                    type: string
                    format: date-time
                    description: When the prediction was created
                  started_at:
                    type: string
                    format: date-time
                    description: When the prediction started processing
                  completed_at:
                    type: string
                    format: date-time
                    description: When the prediction completed
              examples:
                succeeded:
                  summary: Successful prediction result
                  value:
                    id: ufawqhfynnddngldkgtslldrkq
                    status: succeeded
                    output:
                      - https://replicate.delivery/pbxt/xtslttxBIRbtLdlf4yeJsfSjeraLoc3UptfPQGOwr8uynEHXC/ComfyUI_00001_.webp
                    created_at: 2023-01-01T12:00:00.000Z
                    started_at: 2023-01-01T12:00:05.000Z
                    completed_at: 2023-01-01T12:01:00.000Z
        "401":
          description: Unauthorized, invalid API token
        "404":
          description: Prediction not found
    parameters:
      - *a1
tags:
  - name: image
    description: Operations related to image
  - name: artificial-intelligence
    description: Operations related to artificial-intelligence
  - name: tools
    description: Operations related to tools
  - name: image-to-image
    description: Operations related to image-to-image
