text: /**
   * FastAPI
   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
   *
   * The version of the OpenAPI document: 0.1.0
   * 
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   *
   */
  
  
  import ApiClient from "../ApiClient";
  import HTTPValidationError from '../model/HTTPValidationError';
  
  /**
  * ImageTextAsciify service.
  * @module api/ImageTextAsciifyApi
  * @version 0.1.0
  */
  export default class ImageTextAsciifyApi {
  
      /**
      * Constructs a new ImageTextAsciifyApi. 
      * @alias module:api/ImageTextAsciifyApi
      * @class
      * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
      * default to {@link module:ApiClient#instance} if unspecified.
      */
      constructor(apiClient) {
          this.apiClient = apiClient || ApiClient.instance;
      }
  
  
      /**
       * Callback function to receive the result of the applyImageTextAsciifyPost operation.
       * @callback module:api/ImageTextAsciifyApi~applyImageTextAsciifyPostCallback
       * @param {String} error Error message, if any.
       * @param {Object} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Apply model for the asciify task for a given models
       * @param {File} image 
       * @param {Object} opts Optional parameters
       * @param {module:model/String} opts.model  (default to 'ramesh-aditya')
       * @param {module:api/ImageTextAsciifyApi~applyImageTextAsciifyPostCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link Object}
       */
      applyImageTextAsciifyPost(image, opts, callback) {
        opts = opts || {};
        let postBody = null;
        // verify the required parameter 'image' is set
        if (image === undefined || image === null) {
          throw new Error("Missing the required parameter 'image' when calling applyImageTextAsciifyPost");
        }
  
        let pathParams = {
        };
        let queryParams = {
          'model': opts['model']
        };
        let headerParams = {
        };
        let formParams = {
          'image': image
        };
  
        let authNames = [];
        let contentTypes = ['multipart/form-data'];
        let accepts = ['application/json'];
        let returnType = Object;
        return this.apiClient.callApi(
          '/image/text/asciify/', 'POST',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, null, callback
        );
      }
  
      /**
       * Callback function to receive the result of the getVersionsImageTextAsciifyGet operation.
       * @callback module:api/ImageTextAsciifyApi~getVersionsImageTextAsciifyGetCallback
       * @param {String} error Error message, if any.
       * @param {Object} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Get list of models available for asciify
       * @param {module:api/ImageTextAsciifyApi~getVersionsImageTextAsciifyGetCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link Object}
       */
      getVersionsImageTextAsciifyGet(callback) {
        let postBody = null;
  
        let pathParams = {
        };
        let queryParams = {
        };
        let headerParams = {
        };
        let formParams = {
        };
  
        let authNames = [];
        let contentTypes = [];
        let accepts = ['application/json'];
        let returnType = Object;
        return this.apiClient.callApi(
          '/image/text/asciify/', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, null, callback
        );
      }
  
  
  }
  