Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stable_diffusion

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stable_diffusion

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

stable_diffusion

StableDiffusion - the Ruby gem for the FastAPI

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build stable_diffusion.gemspec

Then either install the gem locally:

gem install ./stable_diffusion-1.0.0.gem

(for development, run gem install --dev ./stable_diffusion-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'stable_diffusion', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'stable_diffusion', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'stable_diffusion'

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  serialize: true # BOOLEAN | 
}

begin
  #Api Info
  api_instance.api_info_info_get(opts)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->api_info_info_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  serialize: true # BOOLEAN | 
}

begin
  #Api Info
  api_instance.api_info_info_get_0(opts)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->api_info_info_get_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #App Id
  result = api_instance.app_id_app_id_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->app_id_app_id_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #App Id
  result = api_instance.app_id_app_id_get_0
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->app_id_app_id_get_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
path = 'path_example' # String | 


begin
  #Build Resource
  api_instance.build_resource_assets_path_get(path)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->build_resource_assets_path_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = nil # Object | 


begin
  #Create Embedding
  result = api_instance.create_embedding_sdapi_v1_create_embedding_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->create_embedding_sdapi_v1_create_embedding_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = nil # Object | 


begin
  #Create Hypernetwork
  result = api_instance.create_hypernetwork_sdapi_v1_create_hypernetwork_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->create_hypernetwork_sdapi_v1_create_hypernetwork_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  attachment: StableDiffusion::null.new #  | 
}

begin
  #Download Sysinfo
  api_instance.download_sysinfo_internal_sysinfo_get(opts)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->download_sysinfo_internal_sysinfo_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::ExtrasBatchImagesRequest.new # ExtrasBatchImagesRequest | 


begin
  #Extras Batch Images Api
  result = api_instance.extras_batch_images_api_sdapi_v1_extra_batch_images_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->extras_batch_images_api_sdapi_v1_extra_batch_images_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::ExtrasSingleImageRequest.new # ExtrasSingleImageRequest | 


begin
  #Extras Single Image Api
  result = api_instance.extras_single_image_api_sdapi_v1_extra_single_image_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->extras_single_image_api_sdapi_v1_extra_single_image_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Favicon
  api_instance.favicon_favicon_ico_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->favicon_favicon_ico_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  filename: '' # String | 
}

begin
  #Fetch File
  api_instance.fetch_file_sd_extra_networks_thumb_get(opts)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->fetch_file_sd_extra_networks_thumb_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
path = 'path_example' # String | 


begin
  #File Deprecated
  api_instance.file_deprecated_file_path_get(path)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->file_deprecated_file_path_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
path_or_url = 'path_or_url_example' # String | 


begin
  #File
  api_instance.file_file_path_or_url_get(path_or_url)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->file_file_path_or_url_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
path_or_url = 'path_or_url_example' # String | 


begin
  #File
  api_instance.file_file_path_or_url_head(path_or_url)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->file_file_path_or_url_head: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Cmd Flags
  result = api_instance.get_cmd_flags_sdapi_v1_cmd_flags_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_cmd_flags_sdapi_v1_cmd_flags_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Config
  api_instance.get_config_config_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_config_config_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Config
  api_instance.get_config_config_get_0
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_config_config_get_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Config
  result = api_instance.get_config_sdapi_v1_options_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_config_sdapi_v1_options_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Current User
  result = api_instance.get_current_user_user_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_current_user_user_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Current User
  result = api_instance.get_current_user_user_get_0
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_current_user_user_get_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Embeddings
  result = api_instance.get_embeddings_sdapi_v1_embeddings_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_embeddings_sdapi_v1_embeddings_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Extensions List
  result = api_instance.get_extensions_list_sdapi_v1_extensions_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_extensions_list_sdapi_v1_extensions_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Face Restorers
  result = api_instance.get_face_restorers_sdapi_v1_face_restorers_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_face_restorers_sdapi_v1_face_restorers_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Hypernetworks
  result = api_instance.get_hypernetworks_sdapi_v1_hypernetworks_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_hypernetworks_sdapi_v1_hypernetworks_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Latent Upscale Modes
  result = api_instance.get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Loras
  api_instance.get_loras_sdapi_v1_loras_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_loras_sdapi_v1_loras_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Memory
  result = api_instance.get_memory_sdapi_v1_memory_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_memory_sdapi_v1_memory_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  page: '', # String | 
  item: '' # String | 
}

begin
  #Get Metadata
  api_instance.get_metadata_sd_extra_networks_metadata_get(opts)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_metadata_sd_extra_networks_metadata_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Prompt Styles
  result = api_instance.get_prompt_styles_sdapi_v1_prompt_styles_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_prompt_styles_sdapi_v1_prompt_styles_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Queue Status
  result = api_instance.get_queue_status_queue_status_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_queue_status_queue_status_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Realesrgan Models
  result = api_instance.get_realesrgan_models_sdapi_v1_realesrgan_models_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_realesrgan_models_sdapi_v1_realesrgan_models_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Samplers
  result = api_instance.get_samplers_sdapi_v1_samplers_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_samplers_sdapi_v1_samplers_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Script Info
  result = api_instance.get_script_info_sdapi_v1_script_info_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_script_info_sdapi_v1_script_info_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Scripts List
  result = api_instance.get_scripts_list_sdapi_v1_scripts_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_scripts_list_sdapi_v1_scripts_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Sd Models
  result = api_instance.get_sd_models_sdapi_v1_sd_models_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_sd_models_sdapi_v1_sd_models_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Sd Vaes
  result = api_instance.get_sd_vaes_sdapi_v1_sd_vae_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_sd_vaes_sdapi_v1_sd_vae_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  page: '', # String | 
  tabname: '', # String | 
  name: '' # String | 
}

begin
  #Get Single Card
  api_instance.get_single_card_sd_extra_networks_get_single_card_get(opts)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_single_card_sd_extra_networks_get_single_card_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Token
  result = api_instance.get_token_token_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_token_token_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Token
  result = api_instance.get_token_token_get_0
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_token_token_get_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Get Upscalers
  result = api_instance.get_upscalers_sdapi_v1_upscalers_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->get_upscalers_sdapi_v1_upscalers_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::StableDiffusionProcessingImg2Img.new # StableDiffusionProcessingImg2Img | 


begin
  #Img2Imgapi
  result = api_instance.img2imgapi_sdapi_v1_img2img_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->img2imgapi_sdapi_v1_img2img_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::InterrogateRequest.new # InterrogateRequest | 


begin
  #Interrogateapi
  api_instance.interrogateapi_sdapi_v1_interrogate_post(body)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->interrogateapi_sdapi_v1_interrogate_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Interruptapi
  api_instance.interruptapi_sdapi_v1_interrupt_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->interruptapi_sdapi_v1_interrupt_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #<Lambda>
  api_instance.lambda_internal_ping_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->lambda_internal_ping_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #<Lambda>
  api_instance.lambda_internal_profile_startup_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->lambda_internal_profile_startup_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #<Lambda>
  api_instance.lambda_internal_sysinfo_download_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->lambda_internal_sysinfo_download_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Login Check
  api_instance.login_check_login_check_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->login_check_login_check_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Login Check
  api_instance.login_check_login_check_get_0
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->login_check_login_check_get_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
grant_type = 'grant_type_example' # String | 
username = 'username_example' # String | 
password = 'password_example' # String | 
scope = 'scope_example' # String | 
client_id = 'client_id_example' # String | 
client_secret = 'client_secret_example' # String | 


begin
  #Login
  api_instance.login_login_post(grant_type, username, password, scope, client_id, client_secret)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->login_login_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
grant_type = 'grant_type_example' # String | 
username = 'username_example' # String | 
password = 'password_example' # String | 
scope = 'scope_example' # String | 
client_id = 'client_id_example' # String | 
client_secret = 'client_secret_example' # String | 


begin
  #Login
  api_instance.login_login_post_0(grant_type, username, password, scope, client_id, client_secret)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->login_login_post_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Main
  result = api_instance.main_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->main_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Main
  result = api_instance.main_head
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->main_head: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::PNGInfoRequest.new # PNGInfoRequest | 


begin
  #Pnginfoapi
  result = api_instance.pnginfoapi_sdapi_v1_png_info_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->pnginfoapi_sdapi_v1_png_info_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::PredictBody.new # PredictBody | 
api_name = 'api_name_example' # String | 


begin
  #Predict
  api_instance.predict_api_api_name_post(body, api_name)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->predict_api_api_name_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::PredictBody.new # PredictBody | 
api_name = 'api_name_example' # String | 


begin
  #Predict
  api_instance.predict_api_api_name_post_0(body, api_name)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->predict_api_api_name_post_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::PredictBody.new # PredictBody | 
api_name = 'api_name_example' # String | 


begin
  #Predict
  api_instance.predict_run_api_name_post(body, api_name)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->predict_run_api_name_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::PredictBody.new # PredictBody | 
api_name = 'api_name_example' # String | 


begin
  #Predict
  api_instance.predict_run_api_name_post_0(body, api_name)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->predict_run_api_name_post_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::ProgressRequest.new # ProgressRequest | 


begin
  #Progressapi
  result = api_instance.progressapi_internal_progress_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->progressapi_internal_progress_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
opts = { 
  skip_current_image: false # BOOLEAN | 
}

begin
  #Progressapi
  result = api_instance.progressapi_sdapi_v1_progress_get(opts)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->progressapi_sdapi_v1_progress_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Quicksettings Hint
  result = api_instance.quicksettings_hint_internal_quicksettings_hint_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->quicksettings_hint_internal_quicksettings_hint_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Refresh Checkpoints
  api_instance.refresh_checkpoints_sdapi_v1_refresh_checkpoints_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->refresh_checkpoints_sdapi_v1_refresh_checkpoints_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Refresh Loras
  api_instance.refresh_loras_sdapi_v1_refresh_loras_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->refresh_loras_sdapi_v1_refresh_loras_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Refresh Vae
  api_instance.refresh_vae_sdapi_v1_refresh_vae_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->refresh_vae_sdapi_v1_refresh_vae_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Reloadapi
  api_instance.reloadapi_sdapi_v1_reload_checkpoint_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->reloadapi_sdapi_v1_reload_checkpoint_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::ResetBody.new # ResetBody | 


begin
  #Reset Iterator
  api_instance.reset_iterator_reset_post(body)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->reset_iterator_reset_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::ResetBody.new # ResetBody | 


begin
  #Reset Iterator
  api_instance.reset_iterator_reset_post_0(body)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->reset_iterator_reset_post_0: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
url_path = 'url_path_example' # String | 


begin
  #Reverse Proxy
  api_instance.reverse_proxy_proxy_url_path_get(url_path)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->reverse_proxy_proxy_url_path_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
url_path = 'url_path_example' # String | 


begin
  #Reverse Proxy
  api_instance.reverse_proxy_proxy_url_path_head(url_path)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->reverse_proxy_proxy_url_path_head: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Robots Txt
  result = api_instance.robots_txt_robots_txt_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->robots_txt_robots_txt_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = nil # Object | 


begin
  #Set Config
  api_instance.set_config_sdapi_v1_options_post(body)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->set_config_sdapi_v1_options_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Skip
  api_instance.skip_sdapi_v1_skip_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->skip_sdapi_v1_skip_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Startup Events
  api_instance.startup_events_startup_events_get
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->startup_events_startup_events_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
path = 'path_example' # String | 


begin
  #Static Resource
  api_instance.static_resource_static_path_get(path)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->static_resource_static_path_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
session_hash = 'session_hash_example' # String | 
run = 56 # Integer | 
component_id = 56 # Integer | 


begin
  #Stream
  api_instance.stream_stream_session_hash_run_component_id_get(session_hash, run, component_id)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->stream_stream_session_hash_run_component_id_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = StableDiffusion::StableDiffusionProcessingTxt2Img.new # StableDiffusionProcessingTxt2Img | 


begin
  #Text2Imgapi
  result = api_instance.text2imgapi_sdapi_v1_txt2img_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->text2imgapi_sdapi_v1_txt2img_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Theme Css
  result = api_instance.theme_css_theme_css_get
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->theme_css_theme_css_get: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = nil # Object | 


begin
  #Train Embedding
  result = api_instance.train_embedding_sdapi_v1_train_embedding_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->train_embedding_sdapi_v1_train_embedding_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
body = nil # Object | 


begin
  #Train Hypernetwork
  result = api_instance.train_hypernetwork_sdapi_v1_train_hypernetwork_post(body)
  p result
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->train_hypernetwork_sdapi_v1_train_hypernetwork_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new

begin
  #Unloadapi
  api_instance.unloadapi_sdapi_v1_unload_checkpoint_post
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->unloadapi_sdapi_v1_unload_checkpoint_post: #{e}"
end

api_instance = StableDiffusion::DefaultApi.new
files = ['files_example'] # Array<String> | 


begin
  #Upload File
  api_instance.upload_file_upload_post(files)
rescue StableDiffusion::ApiError => e
  puts "Exception when calling DefaultApi->upload_file_upload_post: #{e}"
end

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
StableDiffusion::DefaultApiapi_info_info_getGET /infoApi Info
StableDiffusion::DefaultApiapi_info_info_get_0GET /info/Api Info
StableDiffusion::DefaultApiapp_id_app_id_getGET /app_id/App Id
StableDiffusion::DefaultApiapp_id_app_id_get_0GET /app_idApp Id
StableDiffusion::DefaultApibuild_resource_assets_path_getGET /assets/{path}Build Resource
StableDiffusion::DefaultApicreate_embedding_sdapi_v1_create_embedding_postPOST /sdapi/v1/create/embeddingCreate Embedding
StableDiffusion::DefaultApicreate_hypernetwork_sdapi_v1_create_hypernetwork_postPOST /sdapi/v1/create/hypernetworkCreate Hypernetwork
StableDiffusion::DefaultApidownload_sysinfo_internal_sysinfo_getGET /internal/sysinfoDownload Sysinfo
StableDiffusion::DefaultApiextras_batch_images_api_sdapi_v1_extra_batch_images_postPOST /sdapi/v1/extra-batch-imagesExtras Batch Images Api
StableDiffusion::DefaultApiextras_single_image_api_sdapi_v1_extra_single_image_postPOST /sdapi/v1/extra-single-imageExtras Single Image Api
StableDiffusion::DefaultApifavicon_favicon_ico_getGET /favicon.icoFavicon
StableDiffusion::DefaultApifetch_file_sd_extra_networks_thumb_getGET /sd_extra_networks/thumbFetch File
StableDiffusion::DefaultApifile_deprecated_file_path_getGET /file/{path}File Deprecated
StableDiffusion::DefaultApifile_file_path_or_url_getGET /file={path_or_url}File
StableDiffusion::DefaultApifile_file_path_or_url_headHEAD /file={path_or_url}File
StableDiffusion::DefaultApiget_cmd_flags_sdapi_v1_cmd_flags_getGET /sdapi/v1/cmd-flagsGet Cmd Flags
StableDiffusion::DefaultApiget_config_config_getGET /configGet Config
StableDiffusion::DefaultApiget_config_config_get_0GET /config/Get Config
StableDiffusion::DefaultApiget_config_sdapi_v1_options_getGET /sdapi/v1/optionsGet Config
StableDiffusion::DefaultApiget_current_user_user_getGET /user/Get Current User
StableDiffusion::DefaultApiget_current_user_user_get_0GET /userGet Current User
StableDiffusion::DefaultApiget_embeddings_sdapi_v1_embeddings_getGET /sdapi/v1/embeddingsGet Embeddings
StableDiffusion::DefaultApiget_extensions_list_sdapi_v1_extensions_getGET /sdapi/v1/extensionsGet Extensions List
StableDiffusion::DefaultApiget_face_restorers_sdapi_v1_face_restorers_getGET /sdapi/v1/face-restorersGet Face Restorers
StableDiffusion::DefaultApiget_hypernetworks_sdapi_v1_hypernetworks_getGET /sdapi/v1/hypernetworksGet Hypernetworks
StableDiffusion::DefaultApiget_latent_upscale_modes_sdapi_v1_latent_upscale_modes_getGET /sdapi/v1/latent-upscale-modesGet Latent Upscale Modes
StableDiffusion::DefaultApiget_loras_sdapi_v1_loras_getGET /sdapi/v1/lorasGet Loras
StableDiffusion::DefaultApiget_memory_sdapi_v1_memory_getGET /sdapi/v1/memoryGet Memory
StableDiffusion::DefaultApiget_metadata_sd_extra_networks_metadata_getGET /sd_extra_networks/metadataGet Metadata
StableDiffusion::DefaultApiget_prompt_styles_sdapi_v1_prompt_styles_getGET /sdapi/v1/prompt-stylesGet Prompt Styles
StableDiffusion::DefaultApiget_queue_status_queue_status_getGET /queue/statusGet Queue Status
StableDiffusion::DefaultApiget_realesrgan_models_sdapi_v1_realesrgan_models_getGET /sdapi/v1/realesrgan-modelsGet Realesrgan Models
StableDiffusion::DefaultApiget_samplers_sdapi_v1_samplers_getGET /sdapi/v1/samplersGet Samplers
StableDiffusion::DefaultApiget_script_info_sdapi_v1_script_info_getGET /sdapi/v1/script-infoGet Script Info
StableDiffusion::DefaultApiget_scripts_list_sdapi_v1_scripts_getGET /sdapi/v1/scriptsGet Scripts List
StableDiffusion::DefaultApiget_sd_models_sdapi_v1_sd_models_getGET /sdapi/v1/sd-modelsGet Sd Models
StableDiffusion::DefaultApiget_sd_vaes_sdapi_v1_sd_vae_getGET /sdapi/v1/sd-vaeGet Sd Vaes
StableDiffusion::DefaultApiget_single_card_sd_extra_networks_get_single_card_getGET /sd_extra_networks/get-single-cardGet Single Card
StableDiffusion::DefaultApiget_token_token_getGET /token/Get Token
StableDiffusion::DefaultApiget_token_token_get_0GET /tokenGet Token
StableDiffusion::DefaultApiget_upscalers_sdapi_v1_upscalers_getGET /sdapi/v1/upscalersGet Upscalers
StableDiffusion::DefaultApiimg2imgapi_sdapi_v1_img2img_postPOST /sdapi/v1/img2imgImg2Imgapi
StableDiffusion::DefaultApiinterrogateapi_sdapi_v1_interrogate_postPOST /sdapi/v1/interrogateInterrogateapi
StableDiffusion::DefaultApiinterruptapi_sdapi_v1_interrupt_postPOST /sdapi/v1/interruptInterruptapi
StableDiffusion::DefaultApilambda_internal_ping_getGET /internal/ping
StableDiffusion::DefaultApilambda_internal_profile_startup_getGET /internal/profile-startup
StableDiffusion::DefaultApilambda_internal_sysinfo_download_getGET /internal/sysinfo-download
StableDiffusion::DefaultApilogin_check_login_check_getGET /login_check/Login Check
StableDiffusion::DefaultApilogin_check_login_check_get_0GET /login_checkLogin Check
StableDiffusion::DefaultApilogin_login_postPOST /login/Login
StableDiffusion::DefaultApilogin_login_post_0POST /loginLogin
StableDiffusion::DefaultApimain_getGET /Main
StableDiffusion::DefaultApimain_headHEAD /Main
StableDiffusion::DefaultApipnginfoapi_sdapi_v1_png_info_postPOST /sdapi/v1/png-infoPnginfoapi
StableDiffusion::DefaultApipredict_api_api_name_postPOST /api/{api_name}/Predict
StableDiffusion::DefaultApipredict_api_api_name_post_0POST /api/{api_name}Predict
StableDiffusion::DefaultApipredict_run_api_name_postPOST /run/{api_name}/Predict
StableDiffusion::DefaultApipredict_run_api_name_post_0POST /run/{api_name}Predict
StableDiffusion::DefaultApiprogressapi_internal_progress_postPOST /internal/progressProgressapi
StableDiffusion::DefaultApiprogressapi_sdapi_v1_progress_getGET /sdapi/v1/progressProgressapi
StableDiffusion::DefaultApiquicksettings_hint_internal_quicksettings_hint_getGET /internal/quicksettings-hintQuicksettings Hint
StableDiffusion::DefaultApirefresh_checkpoints_sdapi_v1_refresh_checkpoints_postPOST /sdapi/v1/refresh-checkpointsRefresh Checkpoints
StableDiffusion::DefaultApirefresh_loras_sdapi_v1_refresh_loras_postPOST /sdapi/v1/refresh-lorasRefresh Loras
StableDiffusion::DefaultApirefresh_vae_sdapi_v1_refresh_vae_postPOST /sdapi/v1/refresh-vaeRefresh Vae
StableDiffusion::DefaultApireloadapi_sdapi_v1_reload_checkpoint_postPOST /sdapi/v1/reload-checkpointReloadapi
StableDiffusion::DefaultApireset_iterator_reset_postPOST /resetReset Iterator
StableDiffusion::DefaultApireset_iterator_reset_post_0POST /reset/Reset Iterator
StableDiffusion::DefaultApireverse_proxy_proxy_url_path_getGET /proxy={url_path}Reverse Proxy
StableDiffusion::DefaultApireverse_proxy_proxy_url_path_headHEAD /proxy={url_path}Reverse Proxy
StableDiffusion::DefaultApirobots_txt_robots_txt_getGET /robots.txtRobots Txt
StableDiffusion::DefaultApiset_config_sdapi_v1_options_postPOST /sdapi/v1/optionsSet Config
StableDiffusion::DefaultApiskip_sdapi_v1_skip_postPOST /sdapi/v1/skipSkip
StableDiffusion::DefaultApistartup_events_startup_events_getGET /startup-eventsStartup Events
StableDiffusion::DefaultApistatic_resource_static_path_getGET /static/{path}Static Resource
StableDiffusion::DefaultApistream_stream_session_hash_run_component_id_getGET /stream/{session_hash}/{run}/{component_id}Stream
StableDiffusion::DefaultApitext2imgapi_sdapi_v1_txt2img_postPOST /sdapi/v1/txt2imgText2Imgapi
StableDiffusion::DefaultApitheme_css_theme_css_getGET /theme.cssTheme Css
StableDiffusion::DefaultApitrain_embedding_sdapi_v1_train_embedding_postPOST /sdapi/v1/train/embeddingTrain Embedding
StableDiffusion::DefaultApitrain_hypernetwork_sdapi_v1_train_hypernetwork_postPOST /sdapi/v1/train/hypernetworkTrain Hypernetwork
StableDiffusion::DefaultApiunloadapi_sdapi_v1_unload_checkpoint_postPOST /sdapi/v1/unload-checkpointUnloadapi
StableDiffusion::DefaultApiupload_file_upload_postPOST /uploadUpload File

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

FAQs

Package last updated on 11 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc