docstr: Get the existing engines
  
  Returns: Engines supported by the API
docstr_tok: ["Get","the","existing","engines","Returns",":","Engines","supported","by","the","API"]
code: def get_existing_engines(self):
      """Get the existing engines
  
      Returns: Engines supported by the API
      """
      url = "https://api.stability.ai/v1/engines/list"
      if self.api_key is None:
          raise Exception("Missing Stability API key.")
  
      response = requests.get(
          url, headers={"Authorization": f"Bearer {self.api_key}"}
      )
  
      if response.status_code != 200:
          raise Exception("Non-200 response: " + str(response.text))
  
      payload = response.json()
  
      return {engine["id"]: engine for engine in payload}
  
file_path: mindsdb/mindsdb/integrations/handlers/stabilityai_handler/stabilityai.py
imports: from stability_sdk import client
  from stability_sdk.client import generation
  from PIL import Image
  import io
  import requests
label_desc: Use image node_id 4 for calling the StabilityAPIClient obj's underlying member method code with example usage: obj.get_existing_engines() and returns: unknown