{
  "openapi": "3.0.1",
  "info": {
    "title": "AIAssistantAPI",
    "version": "v1"
  },
  "paths": {
    "/external/response-for-prompt": {
      "post": {
        "tags": [
          "External"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PromptPayload"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptPayload"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptPayload"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PromptPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/external/response-for-free-prompt": {
      "post": {
        "tags": [
          "External"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/external/dall-e-generated-image-for-free-prompt": {
      "post": {
        "tags": [
          "External"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FreePromptPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/external/edited-image-for-prompt": {
      "post": {
        "tags": [
          "External"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ImageEditPromptPayload"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageEditPromptPayload"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageEditPromptPayload"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ImageEditPromptPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FreePromptPayload": {
        "type": "object",
        "properties": {
          "promptText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImageEditPromptPayload": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "nullable": true
          },
          "b64Image": {
            "type": "string",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "nullable": true
          },
          "aspectRatio": {
            "type": "string",
            "nullable": true
          },
          "quality": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptPayload": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "nullable": true
          },
          "context": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "JWT Authorization header using the Bearer scheme. \r\n\r\n Enter 'Bearer' [space] and then your token in the text input below.\r\n\r\nExample: \"Bearer 12345abcdef\"",
        "name": "Authorization",
        "in": "header"
      },
      "ApiKey": {
        "type": "apiKey",
        "description": "ApiKey must appear in header",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    },
    {
      "ApiKey": [ ]
    }
  ]
}