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.(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.
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.
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.(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.(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.(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 /
Class | Method | HTTP request | Description |
---|---|---|---|
StableDiffusion::DefaultApi | api_info_info_get | GET /info | Api Info |
StableDiffusion::DefaultApi | api_info_info_get_0 | GET /info/ | Api Info |
StableDiffusion::DefaultApi | app_id_app_id_get | GET /app_id/ | App Id |
StableDiffusion::DefaultApi | app_id_app_id_get_0 | GET /app_id | App Id |
StableDiffusion::DefaultApi | build_resource_assets_path_get | GET /assets/path | Build Resource |
StableDiffusion::DefaultApi | create_embedding_sdapi_v1_create_embedding_post | POST /sdapi/v1/create/embedding | Create Embedding |
StableDiffusion::DefaultApi | create_hypernetwork_sdapi_v1_create_hypernetwork_post | POST /sdapi/v1/create/hypernetwork | Create Hypernetwork |
StableDiffusion::DefaultApi | download_sysinfo_internal_sysinfo_get | GET /internal/sysinfo | Download Sysinfo |
StableDiffusion::DefaultApi | extras_batch_images_api_sdapi_v1_extra_batch_images_post | POST /sdapi/v1/extra-batch-images | Extras Batch Images Api |
StableDiffusion::DefaultApi | extras_single_image_api_sdapi_v1_extra_single_image_post | POST /sdapi/v1/extra-single-image | Extras Single Image Api |
StableDiffusion::DefaultApi | favicon_favicon_ico_get | GET /favicon.ico | Favicon |
StableDiffusion::DefaultApi | fetch_file_sd_extra_networks_thumb_get | GET /sd_extra_networks/thumb | Fetch File |
StableDiffusion::DefaultApi | file_deprecated_file_path_get | GET /file/path | File Deprecated |
StableDiffusion::DefaultApi | file_file_path_or_url_get | GET /file=path_or_url | File |
StableDiffusion::DefaultApi | file_file_path_or_url_head | HEAD /file=path_or_url | File |
StableDiffusion::DefaultApi | get_cmd_flags_sdapi_v1_cmd_flags_get | GET /sdapi/v1/cmd-flags | Get Cmd Flags |
StableDiffusion::DefaultApi | get_config_config_get | GET /config | Get Config |
StableDiffusion::DefaultApi | get_config_config_get_0 | GET /config/ | Get Config |
StableDiffusion::DefaultApi | get_config_sdapi_v1_options_get | GET /sdapi/v1/options | Get Config |
StableDiffusion::DefaultApi | get_current_user_user_get | GET /user/ | Get Current User |
StableDiffusion::DefaultApi | get_current_user_user_get_0 | GET /user | Get Current User |
StableDiffusion::DefaultApi | get_embeddings_sdapi_v1_embeddings_get | GET /sdapi/v1/embeddings | Get Embeddings |
StableDiffusion::DefaultApi | get_extensions_list_sdapi_v1_extensions_get | GET /sdapi/v1/extensions | Get Extensions List |
StableDiffusion::DefaultApi | get_face_restorers_sdapi_v1_face_restorers_get | GET /sdapi/v1/face-restorers | Get Face Restorers |
StableDiffusion::DefaultApi | get_hypernetworks_sdapi_v1_hypernetworks_get | GET /sdapi/v1/hypernetworks | Get Hypernetworks |
StableDiffusion::DefaultApi | get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get | GET /sdapi/v1/latent-upscale-modes | Get Latent Upscale Modes |
StableDiffusion::DefaultApi | get_loras_sdapi_v1_loras_get | GET /sdapi/v1/loras | Get Loras |
StableDiffusion::DefaultApi | get_memory_sdapi_v1_memory_get | GET /sdapi/v1/memory | Get Memory |
StableDiffusion::DefaultApi | get_metadata_sd_extra_networks_metadata_get | GET /sd_extra_networks/metadata | Get Metadata |
StableDiffusion::DefaultApi | get_prompt_styles_sdapi_v1_prompt_styles_get | GET /sdapi/v1/prompt-styles | Get Prompt Styles |
StableDiffusion::DefaultApi | get_queue_status_queue_status_get | GET /queue/status | Get Queue Status |
StableDiffusion::DefaultApi | get_realesrgan_models_sdapi_v1_realesrgan_models_get | GET /sdapi/v1/realesrgan-models | Get Realesrgan Models |
StableDiffusion::DefaultApi | get_samplers_sdapi_v1_samplers_get | GET /sdapi/v1/samplers | Get Samplers |
StableDiffusion::DefaultApi | get_script_info_sdapi_v1_script_info_get | GET /sdapi/v1/script-info | Get Script Info |
StableDiffusion::DefaultApi | get_scripts_list_sdapi_v1_scripts_get | GET /sdapi/v1/scripts | Get Scripts List |
StableDiffusion::DefaultApi | get_sd_models_sdapi_v1_sd_models_get | GET /sdapi/v1/sd-models | Get Sd Models |
StableDiffusion::DefaultApi | get_sd_vaes_sdapi_v1_sd_vae_get | GET /sdapi/v1/sd-vae | Get Sd Vaes |
StableDiffusion::DefaultApi | get_single_card_sd_extra_networks_get_single_card_get | GET /sd_extra_networks/get-single-card | Get Single Card |
StableDiffusion::DefaultApi | get_token_token_get | GET /token/ | Get Token |
StableDiffusion::DefaultApi | get_token_token_get_0 | GET /token | Get Token |
StableDiffusion::DefaultApi | get_upscalers_sdapi_v1_upscalers_get | GET /sdapi/v1/upscalers | Get Upscalers |
StableDiffusion::DefaultApi | img2imgapi_sdapi_v1_img2img_post | POST /sdapi/v1/img2img | Img2Imgapi |
StableDiffusion::DefaultApi | interrogateapi_sdapi_v1_interrogate_post | POST /sdapi/v1/interrogate | Interrogateapi |
StableDiffusion::DefaultApi | interruptapi_sdapi_v1_interrupt_post | POST /sdapi/v1/interrupt | Interruptapi |
StableDiffusion::DefaultApi | lambda_internal_ping_get | GET /internal/ping | |
StableDiffusion::DefaultApi | lambda_internal_profile_startup_get | GET /internal/profile-startup | |
StableDiffusion::DefaultApi | lambda_internal_sysinfo_download_get | GET /internal/sysinfo-download | |
StableDiffusion::DefaultApi | login_check_login_check_get | GET /login_check/ | Login Check |
StableDiffusion::DefaultApi | login_check_login_check_get_0 | GET /login_check | Login Check |
StableDiffusion::DefaultApi | login_login_post | POST /login/ | Login |
StableDiffusion::DefaultApi | login_login_post_0 | POST /login | Login |
StableDiffusion::DefaultApi | main_get | GET / | Main |
StableDiffusion::DefaultApi | main_head | HEAD / | Main |
StableDiffusion::DefaultApi | pnginfoapi_sdapi_v1_png_info_post | POST /sdapi/v1/png-info | Pnginfoapi |
StableDiffusion::DefaultApi | predict_api_api_name_post | POST /api/api_name/ | Predict |
StableDiffusion::DefaultApi | predict_api_api_name_post_0 | POST /api/api_name | Predict |
StableDiffusion::DefaultApi | predict_run_api_name_post | POST /run/api_name/ | Predict |
StableDiffusion::DefaultApi | predict_run_api_name_post_0 | POST /run/api_name | Predict |
StableDiffusion::DefaultApi | progressapi_internal_progress_post | POST /internal/progress | Progressapi |
StableDiffusion::DefaultApi | progressapi_sdapi_v1_progress_get | GET /sdapi/v1/progress | Progressapi |
StableDiffusion::DefaultApi | quicksettings_hint_internal_quicksettings_hint_get | GET /internal/quicksettings-hint | Quicksettings Hint |
StableDiffusion::DefaultApi | refresh_checkpoints_sdapi_v1_refresh_checkpoints_post | POST /sdapi/v1/refresh-checkpoints | Refresh Checkpoints |
StableDiffusion::DefaultApi | refresh_loras_sdapi_v1_refresh_loras_post | POST /sdapi/v1/refresh-loras | Refresh Loras |
StableDiffusion::DefaultApi | refresh_vae_sdapi_v1_refresh_vae_post | POST /sdapi/v1/refresh-vae | Refresh Vae |
StableDiffusion::DefaultApi | reloadapi_sdapi_v1_reload_checkpoint_post | POST /sdapi/v1/reload-checkpoint | Reloadapi |
StableDiffusion::DefaultApi | reset_iterator_reset_post | POST /reset | Reset Iterator |
StableDiffusion::DefaultApi | reset_iterator_reset_post_0 | POST /reset/ | Reset Iterator |
StableDiffusion::DefaultApi | reverse_proxy_proxy_url_path_get | GET /proxy=url_path | Reverse Proxy |
StableDiffusion::DefaultApi | reverse_proxy_proxy_url_path_head | HEAD /proxy=url_path | Reverse Proxy |
StableDiffusion::DefaultApi | robots_txt_robots_txt_get | GET /robots.txt | Robots Txt |
StableDiffusion::DefaultApi | set_config_sdapi_v1_options_post | POST /sdapi/v1/options | Set Config |
StableDiffusion::DefaultApi | skip_sdapi_v1_skip_post | POST /sdapi/v1/skip | Skip |
StableDiffusion::DefaultApi | startup_events_startup_events_get | GET /startup-events | Startup Events |
StableDiffusion::DefaultApi | static_resource_static_path_get | GET /static/path | Static Resource |
StableDiffusion::DefaultApi | stream_stream_session_hash_run_component_id_get | GET /stream/session_hash/run/component_id | Stream |
StableDiffusion::DefaultApi | text2imgapi_sdapi_v1_txt2img_post | POST /sdapi/v1/txt2img | Text2Imgapi |
StableDiffusion::DefaultApi | theme_css_theme_css_get | GET /theme.css | Theme Css |
StableDiffusion::DefaultApi | train_embedding_sdapi_v1_train_embedding_post | POST /sdapi/v1/train/embedding | Train Embedding |
StableDiffusion::DefaultApi | train_hypernetwork_sdapi_v1_train_hypernetwork_post | POST /sdapi/v1/train/hypernetwork | Train Hypernetwork |
StableDiffusion::DefaultApi | unloadapi_sdapi_v1_unload_checkpoint_post | POST /sdapi/v1/unload-checkpoint | Unloadapi |
StableDiffusion::DefaultApi | upload_file_upload_post | POST /upload | Upload File |
Documentation for Models
- StableDiffusion::AnyOfPredictBodyRequest
- StableDiffusion::AnyOfValidationErrorLocItems
- StableDiffusion::BodyLoginLoginPost
- StableDiffusion::BodyUploadFileUploadPost
- StableDiffusion::CreateResponse
- StableDiffusion::EmbeddingItem
- StableDiffusion::EmbeddingsResponse
- StableDiffusion::Estimation
- StableDiffusion::ExtensionItem
- StableDiffusion::ExtrasBatchImagesRequest
- StableDiffusion::ExtrasBatchImagesResponse
- StableDiffusion::ExtrasSingleImageRequest
- StableDiffusion::ExtrasSingleImageResponse
- StableDiffusion::FaceRestorerItem
- StableDiffusion::FileData
- StableDiffusion::Flags
- StableDiffusion::HTTPValidationError
- StableDiffusion::HypernetworkItem
- StableDiffusion::ImageToImageResponse
- StableDiffusion::InterrogateRequest
- StableDiffusion::LatentUpscalerModeItem
- StableDiffusion::MemoryResponse
- StableDiffusion::ModulesApiModelsProgressResponse
- StableDiffusion::ModulesProgressProgressResponse
- StableDiffusion::Options
- StableDiffusion::PNGInfoRequest
- StableDiffusion::PNGInfoResponse
- StableDiffusion::PredictBody
- StableDiffusion::ProgressRequest
- StableDiffusion::PromptStyleItem
- StableDiffusion::QuicksettingsHint
- StableDiffusion::RealesrganItem
- StableDiffusion::ResetBody
- StableDiffusion::SDModelItem
- StableDiffusion::SDVaeItem
- StableDiffusion::SamplerItem
- StableDiffusion::ScriptArg
- StableDiffusion::ScriptInfo
- StableDiffusion::ScriptsList
- StableDiffusion::StableDiffusionProcessingImg2Img
- StableDiffusion::StableDiffusionProcessingTxt2Img
- StableDiffusion::TextToImageResponse
- StableDiffusion::TrainResponse
- StableDiffusion::UpscalerItem
- StableDiffusion::ValidationError
Documentation for Authorization
All endpoints do not require authorization.