Class: StableDiffusion::DefaultApi

Inherits:
Object
  • Object
show all
Defined in:
lib/stable_diffusion/api/default_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ DefaultApi

Returns a new instance of DefaultApi.



16
17
18
# File 'lib/stable_diffusion/api/default_api.rb', line 16

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



14
15
16
# File 'lib/stable_diffusion/api/default_api.rb', line 14

def api_client
  @api_client
end

Instance Method Details

#api_info_info_get(opts = {}) ⇒ nil

Api Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :serialize (BOOLEAN) — default: default to true

Returns:

  • (nil)


23
24
25
26
# File 'lib/stable_diffusion/api/default_api.rb', line 23

def api_info_info_get(opts = {})
  api_info_info_get_with_http_info(opts)
  nil
end

#api_info_info_get_0(opts = {}) ⇒ nil

Api Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :serialize (BOOLEAN) — default: default to true

Returns:

  • (nil)


74
75
76
77
# File 'lib/stable_diffusion/api/default_api.rb', line 74

def api_info_info_get_0(opts = {})
  api_info_info_get_0_with_http_info(opts)
  nil
end

#api_info_info_get_0_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Api Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :serialize (BOOLEAN)

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/stable_diffusion/api/default_api.rb', line 83

def api_info_info_get_0_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_info_info_get_0 ...'
  end
  # resource path
  local_var_path = '/info/'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'serialize'] = opts[:'serialize'] if !opts[:'serialize'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_info_info_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#api_info_info_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Api Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :serialize (BOOLEAN)

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/stable_diffusion/api/default_api.rb', line 32

def api_info_info_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_info_info_get ...'
  end
  # resource path
  local_var_path = '/info'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'serialize'] = opts[:'serialize'] if !opts[:'serialize'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_info_info_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#app_id_app_id_get(opts = {}) ⇒ Object

App Id

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


124
125
126
127
# File 'lib/stable_diffusion/api/default_api.rb', line 124

def app_id_app_id_get(opts = {})
  data, _status_code, _headers = app_id_app_id_get_with_http_info(opts)
  data
end

#app_id_app_id_get_0(opts = {}) ⇒ Object

App Id

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


172
173
174
175
# File 'lib/stable_diffusion/api/default_api.rb', line 172

def app_id_app_id_get_0(opts = {})
  data, _status_code, _headers = app_id_app_id_get_0_with_http_info(opts)
  data
end

#app_id_app_id_get_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

App Id

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/stable_diffusion/api/default_api.rb', line 180

def app_id_app_id_get_0_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.app_id_app_id_get_0 ...'
  end
  # resource path
  local_var_path = '/app_id'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Object' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#app_id_app_id_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#app_id_app_id_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

App Id

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/stable_diffusion/api/default_api.rb', line 132

def app_id_app_id_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.app_id_app_id_get ...'
  end
  # resource path
  local_var_path = '/app_id/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Object' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#app_id_app_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#build_resource_assets_path_get(path, opts = {}) ⇒ nil

Build Resource

Parameters:

  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


221
222
223
224
# File 'lib/stable_diffusion/api/default_api.rb', line 221

def build_resource_assets_path_get(path, opts = {})
  build_resource_assets_path_get_with_http_info(path, opts)
  nil
end

#build_resource_assets_path_get_with_http_info(path, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Build Resource

Parameters:

  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/stable_diffusion/api/default_api.rb', line 230

def build_resource_assets_path_get_with_http_info(path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.build_resource_assets_path_get ...'
  end
  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling DefaultApi.build_resource_assets_path_get"
  end
  # resource path
  local_var_path = '/assets/{path}'.sub('{' + 'path' + '}', path.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#build_resource_assets_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_embedding_sdapi_v1_create_embedding_post(body, opts = {}) ⇒ CreateResponse

Create Embedding

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



275
276
277
278
# File 'lib/stable_diffusion/api/default_api.rb', line 275

def create_embedding_sdapi_v1_create_embedding_post(body, opts = {})
  data, _status_code, _headers = create_embedding_sdapi_v1_create_embedding_post_with_http_info(body, opts)
  data
end

#create_embedding_sdapi_v1_create_embedding_post_with_http_info(body, opts = {}) ⇒ Array<(CreateResponse, Integer, Hash)>

Create Embedding

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(CreateResponse, Integer, Hash)>)

    CreateResponse data, response status code and response headers



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/stable_diffusion/api/default_api.rb', line 284

def create_embedding_sdapi_v1_create_embedding_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.create_embedding_sdapi_v1_create_embedding_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.create_embedding_sdapi_v1_create_embedding_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/create/embedding'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'CreateResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#create_embedding_sdapi_v1_create_embedding_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_hypernetwork_sdapi_v1_create_hypernetwork_post(body, opts = {}) ⇒ CreateResponse

Create Hypernetwork

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



331
332
333
334
# File 'lib/stable_diffusion/api/default_api.rb', line 331

def create_hypernetwork_sdapi_v1_create_hypernetwork_post(body, opts = {})
  data, _status_code, _headers = create_hypernetwork_sdapi_v1_create_hypernetwork_post_with_http_info(body, opts)
  data
end

#create_hypernetwork_sdapi_v1_create_hypernetwork_post_with_http_info(body, opts = {}) ⇒ Array<(CreateResponse, Integer, Hash)>

Create Hypernetwork

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(CreateResponse, Integer, Hash)>)

    CreateResponse data, response status code and response headers



340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
# File 'lib/stable_diffusion/api/default_api.rb', line 340

def create_hypernetwork_sdapi_v1_create_hypernetwork_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.create_hypernetwork_sdapi_v1_create_hypernetwork_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.create_hypernetwork_sdapi_v1_create_hypernetwork_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/create/hypernetwork'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'CreateResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#create_hypernetwork_sdapi_v1_create_hypernetwork_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#download_sysinfo_internal_sysinfo_get(opts = {}) ⇒ nil

Download Sysinfo

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • [] (Object)

    :attachment (default to false)

Returns:

  • (nil)


387
388
389
390
# File 'lib/stable_diffusion/api/default_api.rb', line 387

def download_sysinfo_internal_sysinfo_get(opts = {})
  download_sysinfo_internal_sysinfo_get_with_http_info(opts)
  nil
end

#download_sysinfo_internal_sysinfo_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Download Sysinfo

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • [] (Object)

    :attachment

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
# File 'lib/stable_diffusion/api/default_api.rb', line 396

def download_sysinfo_internal_sysinfo_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.download_sysinfo_internal_sysinfo_get ...'
  end
  # resource path
  local_var_path = '/internal/sysinfo'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'attachment'] = opts[:'attachment'] if !opts[:'attachment'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#download_sysinfo_internal_sysinfo_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#extras_batch_images_api_sdapi_v1_extra_batch_images_post(body, opts = {}) ⇒ ExtrasBatchImagesResponse

Extras Batch Images Api

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



438
439
440
441
# File 'lib/stable_diffusion/api/default_api.rb', line 438

def extras_batch_images_api_sdapi_v1_extra_batch_images_post(body, opts = {})
  data, _status_code, _headers = extras_batch_images_api_sdapi_v1_extra_batch_images_post_with_http_info(body, opts)
  data
end

#extras_batch_images_api_sdapi_v1_extra_batch_images_post_with_http_info(body, opts = {}) ⇒ Array<(ExtrasBatchImagesResponse, Integer, Hash)>

Extras Batch Images Api

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ExtrasBatchImagesResponse, Integer, Hash)>)

    ExtrasBatchImagesResponse data, response status code and response headers



447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
# File 'lib/stable_diffusion/api/default_api.rb', line 447

def extras_batch_images_api_sdapi_v1_extra_batch_images_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.extras_batch_images_api_sdapi_v1_extra_batch_images_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.extras_batch_images_api_sdapi_v1_extra_batch_images_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/extra-batch-images'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'ExtrasBatchImagesResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#extras_batch_images_api_sdapi_v1_extra_batch_images_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#extras_single_image_api_sdapi_v1_extra_single_image_post(body, opts = {}) ⇒ ExtrasSingleImageResponse

Extras Single Image Api

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



494
495
496
497
# File 'lib/stable_diffusion/api/default_api.rb', line 494

def extras_single_image_api_sdapi_v1_extra_single_image_post(body, opts = {})
  data, _status_code, _headers = extras_single_image_api_sdapi_v1_extra_single_image_post_with_http_info(body, opts)
  data
end

#extras_single_image_api_sdapi_v1_extra_single_image_post_with_http_info(body, opts = {}) ⇒ Array<(ExtrasSingleImageResponse, Integer, Hash)>

Extras Single Image Api

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ExtrasSingleImageResponse, Integer, Hash)>)

    ExtrasSingleImageResponse data, response status code and response headers



503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
# File 'lib/stable_diffusion/api/default_api.rb', line 503

def extras_single_image_api_sdapi_v1_extra_single_image_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.extras_single_image_api_sdapi_v1_extra_single_image_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.extras_single_image_api_sdapi_v1_extra_single_image_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/extra-single-image'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'ExtrasSingleImageResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#extras_single_image_api_sdapi_v1_extra_single_image_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#favicon_favicon_ico_get(opts = {}) ⇒ nil

Favicon

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


549
550
551
552
# File 'lib/stable_diffusion/api/default_api.rb', line 549

def favicon_favicon_ico_get(opts = {})
  favicon_favicon_ico_get_with_http_info(opts)
  nil
end

#favicon_favicon_ico_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Favicon

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/stable_diffusion/api/default_api.rb', line 557

def favicon_favicon_ico_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.favicon_favicon_ico_get ...'
  end
  # resource path
  local_var_path = '/favicon.ico'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#favicon_favicon_ico_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#fetch_file_sd_extra_networks_thumb_get(opts = {}) ⇒ nil

Fetch File

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filename (String)

Returns:

  • (nil)


598
599
600
601
# File 'lib/stable_diffusion/api/default_api.rb', line 598

def fetch_file_sd_extra_networks_thumb_get(opts = {})
  fetch_file_sd_extra_networks_thumb_get_with_http_info(opts)
  nil
end

#fetch_file_sd_extra_networks_thumb_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Fetch File

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filename (String)

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
# File 'lib/stable_diffusion/api/default_api.rb', line 607

def fetch_file_sd_extra_networks_thumb_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_file_sd_extra_networks_thumb_get ...'
  end
  # resource path
  local_var_path = '/sd_extra_networks/thumb'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#fetch_file_sd_extra_networks_thumb_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#file_deprecated_file_path_get(path, opts = {}) ⇒ nil

File Deprecated

Parameters:

  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


649
650
651
652
# File 'lib/stable_diffusion/api/default_api.rb', line 649

def file_deprecated_file_path_get(path, opts = {})
  file_deprecated_file_path_get_with_http_info(path, opts)
  nil
end

#file_deprecated_file_path_get_with_http_info(path, opts = {}) ⇒ Array<(nil, Integer, Hash)>

File Deprecated

Parameters:

  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
# File 'lib/stable_diffusion/api/default_api.rb', line 658

def file_deprecated_file_path_get_with_http_info(path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.file_deprecated_file_path_get ...'
  end
  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling DefaultApi.file_deprecated_file_path_get"
  end
  # resource path
  local_var_path = '/file/{path}'.sub('{' + 'path' + '}', path.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#file_deprecated_file_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#file_file_path_or_url_get(path_or_url, opts = {}) ⇒ nil

File

Parameters:

  • path_or_url
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


703
704
705
706
# File 'lib/stable_diffusion/api/default_api.rb', line 703

def file_file_path_or_url_get(path_or_url, opts = {})
  file_file_path_or_url_get_with_http_info(path_or_url, opts)
  nil
end

#file_file_path_or_url_get_with_http_info(path_or_url, opts = {}) ⇒ Array<(nil, Integer, Hash)>

File

Parameters:

  • path_or_url
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# File 'lib/stable_diffusion/api/default_api.rb', line 712

def file_file_path_or_url_get_with_http_info(path_or_url, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.file_file_path_or_url_get ...'
  end
  # verify the required parameter 'path_or_url' is set
  if @api_client.config.client_side_validation && path_or_url.nil?
    fail ArgumentError, "Missing the required parameter 'path_or_url' when calling DefaultApi.file_file_path_or_url_get"
  end
  # resource path
  local_var_path = '/file={path_or_url}'.sub('{' + 'path_or_url' + '}', path_or_url.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#file_file_path_or_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#file_file_path_or_url_head(path_or_url, opts = {}) ⇒ nil

File

Parameters:

  • path_or_url
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


757
758
759
760
# File 'lib/stable_diffusion/api/default_api.rb', line 757

def file_file_path_or_url_head(path_or_url, opts = {})
  file_file_path_or_url_head_with_http_info(path_or_url, opts)
  nil
end

#file_file_path_or_url_head_with_http_info(path_or_url, opts = {}) ⇒ Array<(nil, Integer, Hash)>

File

Parameters:

  • path_or_url
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
# File 'lib/stable_diffusion/api/default_api.rb', line 766

def file_file_path_or_url_head_with_http_info(path_or_url, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.file_file_path_or_url_head ...'
  end
  # verify the required parameter 'path_or_url' is set
  if @api_client.config.client_side_validation && path_or_url.nil?
    fail ArgumentError, "Missing the required parameter 'path_or_url' when calling DefaultApi.file_file_path_or_url_head"
  end
  # resource path
  local_var_path = '/file={path_or_url}'.sub('{' + 'path_or_url' + '}', path_or_url.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:HEAD, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#file_file_path_or_url_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_cmd_flags_sdapi_v1_cmd_flags_get(opts = {}) ⇒ Flags

Get Cmd Flags

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



810
811
812
813
# File 'lib/stable_diffusion/api/default_api.rb', line 810

def get_cmd_flags_sdapi_v1_cmd_flags_get(opts = {})
  data, _status_code, _headers = get_cmd_flags_sdapi_v1_cmd_flags_get_with_http_info(opts)
  data
end

#get_cmd_flags_sdapi_v1_cmd_flags_get_with_http_info(opts = {}) ⇒ Array<(Flags, Integer, Hash)>

Get Cmd Flags

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Flags, Integer, Hash)>)

    Flags data, response status code and response headers



818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
# File 'lib/stable_diffusion/api/default_api.rb', line 818

def get_cmd_flags_sdapi_v1_cmd_flags_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_cmd_flags_sdapi_v1_cmd_flags_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/cmd-flags'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Flags' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_cmd_flags_sdapi_v1_cmd_flags_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_config_config_get(opts = {}) ⇒ nil

Get Config

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


858
859
860
861
# File 'lib/stable_diffusion/api/default_api.rb', line 858

def get_config_config_get(opts = {})
  get_config_config_get_with_http_info(opts)
  nil
end

#get_config_config_get_0(opts = {}) ⇒ nil

Get Config

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


906
907
908
909
# File 'lib/stable_diffusion/api/default_api.rb', line 906

def get_config_config_get_0(opts = {})
  get_config_config_get_0_with_http_info(opts)
  nil
end

#get_config_config_get_0_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Get Config

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
# File 'lib/stable_diffusion/api/default_api.rb', line 914

def get_config_config_get_0_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_config_config_get_0 ...'
  end
  # resource path
  local_var_path = '/config/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_config_config_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_config_config_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Get Config

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
# File 'lib/stable_diffusion/api/default_api.rb', line 866

def get_config_config_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_config_config_get ...'
  end
  # resource path
  local_var_path = '/config'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_config_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_config_sdapi_v1_options_get(opts = {}) ⇒ Options

Get Config

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



954
955
956
957
# File 'lib/stable_diffusion/api/default_api.rb', line 954

def get_config_sdapi_v1_options_get(opts = {})
  data, _status_code, _headers = get_config_sdapi_v1_options_get_with_http_info(opts)
  data
end

#get_config_sdapi_v1_options_get_with_http_info(opts = {}) ⇒ Array<(Options, Integer, Hash)>

Get Config

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Options, Integer, Hash)>)

    Options data, response status code and response headers



962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
# File 'lib/stable_diffusion/api/default_api.rb', line 962

def get_config_sdapi_v1_options_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_config_sdapi_v1_options_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/options'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Options' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_config_sdapi_v1_options_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_current_user_user_get(opts = {}) ⇒ String

Get Current User

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


1002
1003
1004
1005
# File 'lib/stable_diffusion/api/default_api.rb', line 1002

def get_current_user_user_get(opts = {})
  data, _status_code, _headers = get_current_user_user_get_with_http_info(opts)
  data
end

#get_current_user_user_get_0(opts = {}) ⇒ String

Get Current User

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


1050
1051
1052
1053
# File 'lib/stable_diffusion/api/default_api.rb', line 1050

def get_current_user_user_get_0(opts = {})
  data, _status_code, _headers = get_current_user_user_get_0_with_http_info(opts)
  data
end

#get_current_user_user_get_0_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Get Current User

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
# File 'lib/stable_diffusion/api/default_api.rb', line 1058

def get_current_user_user_get_0_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_current_user_user_get_0 ...'
  end
  # resource path
  local_var_path = '/user'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'String' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_current_user_user_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_current_user_user_get_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Get Current User

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/stable_diffusion/api/default_api.rb', line 1010

def get_current_user_user_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_current_user_user_get ...'
  end
  # resource path
  local_var_path = '/user/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'String' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_current_user_user_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_embeddings_sdapi_v1_embeddings_get(opts = {}) ⇒ EmbeddingsResponse

Get Embeddings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1098
1099
1100
1101
# File 'lib/stable_diffusion/api/default_api.rb', line 1098

def get_embeddings_sdapi_v1_embeddings_get(opts = {})
  data, _status_code, _headers = get_embeddings_sdapi_v1_embeddings_get_with_http_info(opts)
  data
end

#get_embeddings_sdapi_v1_embeddings_get_with_http_info(opts = {}) ⇒ Array<(EmbeddingsResponse, Integer, Hash)>

Get Embeddings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EmbeddingsResponse, Integer, Hash)>)

    EmbeddingsResponse data, response status code and response headers



1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
# File 'lib/stable_diffusion/api/default_api.rb', line 1106

def get_embeddings_sdapi_v1_embeddings_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_embeddings_sdapi_v1_embeddings_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/embeddings'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'EmbeddingsResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_embeddings_sdapi_v1_embeddings_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_extensions_list_sdapi_v1_extensions_get(opts = {}) ⇒ Array<ExtensionItem>

Get Extensions List

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1146
1147
1148
1149
# File 'lib/stable_diffusion/api/default_api.rb', line 1146

def get_extensions_list_sdapi_v1_extensions_get(opts = {})
  data, _status_code, _headers = get_extensions_list_sdapi_v1_extensions_get_with_http_info(opts)
  data
end

#get_extensions_list_sdapi_v1_extensions_get_with_http_info(opts = {}) ⇒ Array<(Array<ExtensionItem>, Integer, Hash)>

Get Extensions List

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<ExtensionItem>, Integer, Hash)>)

    Array<ExtensionItem> data, response status code and response headers



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
# File 'lib/stable_diffusion/api/default_api.rb', line 1154

def get_extensions_list_sdapi_v1_extensions_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_extensions_list_sdapi_v1_extensions_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/extensions'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<ExtensionItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_extensions_list_sdapi_v1_extensions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_face_restorers_sdapi_v1_face_restorers_get(opts = {}) ⇒ Array<FaceRestorerItem>

Get Face Restorers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1194
1195
1196
1197
# File 'lib/stable_diffusion/api/default_api.rb', line 1194

def get_face_restorers_sdapi_v1_face_restorers_get(opts = {})
  data, _status_code, _headers = get_face_restorers_sdapi_v1_face_restorers_get_with_http_info(opts)
  data
end

#get_face_restorers_sdapi_v1_face_restorers_get_with_http_info(opts = {}) ⇒ Array<(Array<FaceRestorerItem>, Integer, Hash)>

Get Face Restorers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<FaceRestorerItem>, Integer, Hash)>)

    Array<FaceRestorerItem> data, response status code and response headers



1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
# File 'lib/stable_diffusion/api/default_api.rb', line 1202

def get_face_restorers_sdapi_v1_face_restorers_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_face_restorers_sdapi_v1_face_restorers_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/face-restorers'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<FaceRestorerItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_face_restorers_sdapi_v1_face_restorers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_hypernetworks_sdapi_v1_hypernetworks_get(opts = {}) ⇒ Array<HypernetworkItem>

Get Hypernetworks

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1242
1243
1244
1245
# File 'lib/stable_diffusion/api/default_api.rb', line 1242

def get_hypernetworks_sdapi_v1_hypernetworks_get(opts = {})
  data, _status_code, _headers = get_hypernetworks_sdapi_v1_hypernetworks_get_with_http_info(opts)
  data
end

#get_hypernetworks_sdapi_v1_hypernetworks_get_with_http_info(opts = {}) ⇒ Array<(Array<HypernetworkItem>, Integer, Hash)>

Get Hypernetworks

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<HypernetworkItem>, Integer, Hash)>)

    Array<HypernetworkItem> data, response status code and response headers



1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
# File 'lib/stable_diffusion/api/default_api.rb', line 1250

def get_hypernetworks_sdapi_v1_hypernetworks_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_hypernetworks_sdapi_v1_hypernetworks_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/hypernetworks'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<HypernetworkItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_hypernetworks_sdapi_v1_hypernetworks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get(opts = {}) ⇒ Array<LatentUpscalerModeItem>

Get Latent Upscale Modes

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1290
1291
1292
1293
# File 'lib/stable_diffusion/api/default_api.rb', line 1290

def get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get(opts = {})
  data, _status_code, _headers = get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get_with_http_info(opts)
  data
end

#get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get_with_http_info(opts = {}) ⇒ Array<(Array<LatentUpscalerModeItem>, Integer, Hash)>

Get Latent Upscale Modes

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<LatentUpscalerModeItem>, Integer, Hash)>)

    Array<LatentUpscalerModeItem> data, response status code and response headers



1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
# File 'lib/stable_diffusion/api/default_api.rb', line 1298

def get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/latent-upscale-modes'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<LatentUpscalerModeItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_latent_upscale_modes_sdapi_v1_latent_upscale_modes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_loras_sdapi_v1_loras_get(opts = {}) ⇒ nil

Get Loras

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1338
1339
1340
1341
# File 'lib/stable_diffusion/api/default_api.rb', line 1338

def get_loras_sdapi_v1_loras_get(opts = {})
  get_loras_sdapi_v1_loras_get_with_http_info(opts)
  nil
end

#get_loras_sdapi_v1_loras_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Get Loras

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
# File 'lib/stable_diffusion/api/default_api.rb', line 1346

def get_loras_sdapi_v1_loras_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_loras_sdapi_v1_loras_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/loras'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_loras_sdapi_v1_loras_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_memory_sdapi_v1_memory_get(opts = {}) ⇒ MemoryResponse

Get Memory

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1386
1387
1388
1389
# File 'lib/stable_diffusion/api/default_api.rb', line 1386

def get_memory_sdapi_v1_memory_get(opts = {})
  data, _status_code, _headers = get_memory_sdapi_v1_memory_get_with_http_info(opts)
  data
end

#get_memory_sdapi_v1_memory_get_with_http_info(opts = {}) ⇒ Array<(MemoryResponse, Integer, Hash)>

Get Memory

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(MemoryResponse, Integer, Hash)>)

    MemoryResponse data, response status code and response headers



1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
# File 'lib/stable_diffusion/api/default_api.rb', line 1394

def get_memory_sdapi_v1_memory_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_memory_sdapi_v1_memory_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/memory'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'MemoryResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_memory_sdapi_v1_memory_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_metadata_sd_extra_networks_metadata_get(opts = {}) ⇒ nil

Get Metadata

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (String)
  • :item (String)

Returns:

  • (nil)


1436
1437
1438
1439
# File 'lib/stable_diffusion/api/default_api.rb', line 1436

def (opts = {})
  (opts)
  nil
end

#get_metadata_sd_extra_networks_metadata_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Get Metadata

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (String)
  • :item (String)

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
# File 'lib/stable_diffusion/api/default_api.rb', line 1446

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_metadata_sd_extra_networks_metadata_get ...'
  end
  # resource path
  local_var_path = '/sd_extra_networks/metadata'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'item'] = opts[:'item'] if !opts[:'item'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_metadata_sd_extra_networks_metadata_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_prompt_styles_sdapi_v1_prompt_styles_get(opts = {}) ⇒ Array<PromptStyleItem>

Get Prompt Styles

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1488
1489
1490
1491
# File 'lib/stable_diffusion/api/default_api.rb', line 1488

def get_prompt_styles_sdapi_v1_prompt_styles_get(opts = {})
  data, _status_code, _headers = get_prompt_styles_sdapi_v1_prompt_styles_get_with_http_info(opts)
  data
end

#get_prompt_styles_sdapi_v1_prompt_styles_get_with_http_info(opts = {}) ⇒ Array<(Array<PromptStyleItem>, Integer, Hash)>

Get Prompt Styles

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<PromptStyleItem>, Integer, Hash)>)

    Array<PromptStyleItem> data, response status code and response headers



1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
# File 'lib/stable_diffusion/api/default_api.rb', line 1496

def get_prompt_styles_sdapi_v1_prompt_styles_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_prompt_styles_sdapi_v1_prompt_styles_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/prompt-styles'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<PromptStyleItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_prompt_styles_sdapi_v1_prompt_styles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_queue_status_queue_status_get(opts = {}) ⇒ Estimation

Get Queue Status

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1536
1537
1538
1539
# File 'lib/stable_diffusion/api/default_api.rb', line 1536

def get_queue_status_queue_status_get(opts = {})
  data, _status_code, _headers = get_queue_status_queue_status_get_with_http_info(opts)
  data
end

#get_queue_status_queue_status_get_with_http_info(opts = {}) ⇒ Array<(Estimation, Integer, Hash)>

Get Queue Status

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Estimation, Integer, Hash)>)

    Estimation data, response status code and response headers



1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
# File 'lib/stable_diffusion/api/default_api.rb', line 1544

def get_queue_status_queue_status_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_queue_status_queue_status_get ...'
  end
  # resource path
  local_var_path = '/queue/status'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Estimation' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_queue_status_queue_status_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_realesrgan_models_sdapi_v1_realesrgan_models_get(opts = {}) ⇒ Array<RealesrganItem>

Get Realesrgan Models

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1584
1585
1586
1587
# File 'lib/stable_diffusion/api/default_api.rb', line 1584

def get_realesrgan_models_sdapi_v1_realesrgan_models_get(opts = {})
  data, _status_code, _headers = get_realesrgan_models_sdapi_v1_realesrgan_models_get_with_http_info(opts)
  data
end

#get_realesrgan_models_sdapi_v1_realesrgan_models_get_with_http_info(opts = {}) ⇒ Array<(Array<RealesrganItem>, Integer, Hash)>

Get Realesrgan Models

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<RealesrganItem>, Integer, Hash)>)

    Array<RealesrganItem> data, response status code and response headers



1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
# File 'lib/stable_diffusion/api/default_api.rb', line 1592

def get_realesrgan_models_sdapi_v1_realesrgan_models_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_realesrgan_models_sdapi_v1_realesrgan_models_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/realesrgan-models'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<RealesrganItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_realesrgan_models_sdapi_v1_realesrgan_models_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_samplers_sdapi_v1_samplers_get(opts = {}) ⇒ Array<SamplerItem>

Get Samplers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1632
1633
1634
1635
# File 'lib/stable_diffusion/api/default_api.rb', line 1632

def get_samplers_sdapi_v1_samplers_get(opts = {})
  data, _status_code, _headers = get_samplers_sdapi_v1_samplers_get_with_http_info(opts)
  data
end

#get_samplers_sdapi_v1_samplers_get_with_http_info(opts = {}) ⇒ Array<(Array<SamplerItem>, Integer, Hash)>

Get Samplers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<SamplerItem>, Integer, Hash)>)

    Array<SamplerItem> data, response status code and response headers



1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
# File 'lib/stable_diffusion/api/default_api.rb', line 1640

def get_samplers_sdapi_v1_samplers_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_samplers_sdapi_v1_samplers_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/samplers'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<SamplerItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_samplers_sdapi_v1_samplers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_script_info_sdapi_v1_script_info_get(opts = {}) ⇒ Array<ScriptInfo>

Get Script Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1680
1681
1682
1683
# File 'lib/stable_diffusion/api/default_api.rb', line 1680

def get_script_info_sdapi_v1_script_info_get(opts = {})
  data, _status_code, _headers = get_script_info_sdapi_v1_script_info_get_with_http_info(opts)
  data
end

#get_script_info_sdapi_v1_script_info_get_with_http_info(opts = {}) ⇒ Array<(Array<ScriptInfo>, Integer, Hash)>

Get Script Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<ScriptInfo>, Integer, Hash)>)

    Array<ScriptInfo> data, response status code and response headers



1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
# File 'lib/stable_diffusion/api/default_api.rb', line 1688

def get_script_info_sdapi_v1_script_info_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_script_info_sdapi_v1_script_info_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/script-info'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<ScriptInfo>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_script_info_sdapi_v1_script_info_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scripts_list_sdapi_v1_scripts_get(opts = {}) ⇒ ScriptsList

Get Scripts List

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1728
1729
1730
1731
# File 'lib/stable_diffusion/api/default_api.rb', line 1728

def get_scripts_list_sdapi_v1_scripts_get(opts = {})
  data, _status_code, _headers = get_scripts_list_sdapi_v1_scripts_get_with_http_info(opts)
  data
end

#get_scripts_list_sdapi_v1_scripts_get_with_http_info(opts = {}) ⇒ Array<(ScriptsList, Integer, Hash)>

Get Scripts List

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScriptsList, Integer, Hash)>)

    ScriptsList data, response status code and response headers



1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
# File 'lib/stable_diffusion/api/default_api.rb', line 1736

def get_scripts_list_sdapi_v1_scripts_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_scripts_list_sdapi_v1_scripts_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/scripts'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ScriptsList' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_scripts_list_sdapi_v1_scripts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_sd_models_sdapi_v1_sd_models_get(opts = {}) ⇒ Array<SDModelItem>

Get Sd Models

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1776
1777
1778
1779
# File 'lib/stable_diffusion/api/default_api.rb', line 1776

def get_sd_models_sdapi_v1_sd_models_get(opts = {})
  data, _status_code, _headers = get_sd_models_sdapi_v1_sd_models_get_with_http_info(opts)
  data
end

#get_sd_models_sdapi_v1_sd_models_get_with_http_info(opts = {}) ⇒ Array<(Array<SDModelItem>, Integer, Hash)>

Get Sd Models

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<SDModelItem>, Integer, Hash)>)

    Array<SDModelItem> data, response status code and response headers



1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
# File 'lib/stable_diffusion/api/default_api.rb', line 1784

def get_sd_models_sdapi_v1_sd_models_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_sd_models_sdapi_v1_sd_models_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/sd-models'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<SDModelItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_sd_models_sdapi_v1_sd_models_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_sd_vaes_sdapi_v1_sd_vae_get(opts = {}) ⇒ Array<SDVaeItem>

Get Sd Vaes

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1824
1825
1826
1827
# File 'lib/stable_diffusion/api/default_api.rb', line 1824

def get_sd_vaes_sdapi_v1_sd_vae_get(opts = {})
  data, _status_code, _headers = get_sd_vaes_sdapi_v1_sd_vae_get_with_http_info(opts)
  data
end

#get_sd_vaes_sdapi_v1_sd_vae_get_with_http_info(opts = {}) ⇒ Array<(Array<SDVaeItem>, Integer, Hash)>

Get Sd Vaes

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<SDVaeItem>, Integer, Hash)>)

    Array<SDVaeItem> data, response status code and response headers



1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
# File 'lib/stable_diffusion/api/default_api.rb', line 1832

def get_sd_vaes_sdapi_v1_sd_vae_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_sd_vaes_sdapi_v1_sd_vae_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/sd-vae'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<SDVaeItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_sd_vaes_sdapi_v1_sd_vae_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_single_card_sd_extra_networks_get_single_card_get(opts = {}) ⇒ nil

Get Single Card

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (String)
  • :tabname (String)
  • :name (String)

Returns:

  • (nil)


1875
1876
1877
1878
# File 'lib/stable_diffusion/api/default_api.rb', line 1875

def get_single_card_sd_extra_networks_get_single_card_get(opts = {})
  get_single_card_sd_extra_networks_get_single_card_get_with_http_info(opts)
  nil
end

#get_single_card_sd_extra_networks_get_single_card_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Get Single Card

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (String)
  • :tabname (String)
  • :name (String)

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
# File 'lib/stable_diffusion/api/default_api.rb', line 1886

def get_single_card_sd_extra_networks_get_single_card_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_single_card_sd_extra_networks_get_single_card_get ...'
  end
  # resource path
  local_var_path = '/sd_extra_networks/get-single-card'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'tabname'] = opts[:'tabname'] if !opts[:'tabname'].nil?
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_single_card_sd_extra_networks_get_single_card_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_token_token_get(opts = {}) ⇒ Object

Get Token

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1929
1930
1931
1932
# File 'lib/stable_diffusion/api/default_api.rb', line 1929

def get_token_token_get(opts = {})
  data, _status_code, _headers = get_token_token_get_with_http_info(opts)
  data
end

#get_token_token_get_0(opts = {}) ⇒ Object

Get Token

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1977
1978
1979
1980
# File 'lib/stable_diffusion/api/default_api.rb', line 1977

def get_token_token_get_0(opts = {})
  data, _status_code, _headers = get_token_token_get_0_with_http_info(opts)
  data
end

#get_token_token_get_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Get Token

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
# File 'lib/stable_diffusion/api/default_api.rb', line 1985

def get_token_token_get_0_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_token_token_get_0 ...'
  end
  # resource path
  local_var_path = '/token'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Object' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_token_token_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_token_token_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Get Token

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
# File 'lib/stable_diffusion/api/default_api.rb', line 1937

def get_token_token_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_token_token_get ...'
  end
  # resource path
  local_var_path = '/token/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Object' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_token_token_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_upscalers_sdapi_v1_upscalers_get(opts = {}) ⇒ Array<UpscalerItem>

Get Upscalers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2025
2026
2027
2028
# File 'lib/stable_diffusion/api/default_api.rb', line 2025

def get_upscalers_sdapi_v1_upscalers_get(opts = {})
  data, _status_code, _headers = get_upscalers_sdapi_v1_upscalers_get_with_http_info(opts)
  data
end

#get_upscalers_sdapi_v1_upscalers_get_with_http_info(opts = {}) ⇒ Array<(Array<UpscalerItem>, Integer, Hash)>

Get Upscalers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<UpscalerItem>, Integer, Hash)>)

    Array<UpscalerItem> data, response status code and response headers



2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
# File 'lib/stable_diffusion/api/default_api.rb', line 2033

def get_upscalers_sdapi_v1_upscalers_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_upscalers_sdapi_v1_upscalers_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/upscalers'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<UpscalerItem>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#get_upscalers_sdapi_v1_upscalers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#img2imgapi_sdapi_v1_img2img_post(body, opts = {}) ⇒ ImageToImageResponse

Img2Imgapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2074
2075
2076
2077
# File 'lib/stable_diffusion/api/default_api.rb', line 2074

def img2imgapi_sdapi_v1_img2img_post(body, opts = {})
  data, _status_code, _headers = img2imgapi_sdapi_v1_img2img_post_with_http_info(body, opts)
  data
end

#img2imgapi_sdapi_v1_img2img_post_with_http_info(body, opts = {}) ⇒ Array<(ImageToImageResponse, Integer, Hash)>

Img2Imgapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ImageToImageResponse, Integer, Hash)>)

    ImageToImageResponse data, response status code and response headers



2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
# File 'lib/stable_diffusion/api/default_api.rb', line 2083

def img2imgapi_sdapi_v1_img2img_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.img2imgapi_sdapi_v1_img2img_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.img2imgapi_sdapi_v1_img2img_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/img2img'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'ImageToImageResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#img2imgapi_sdapi_v1_img2img_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#interrogateapi_sdapi_v1_interrogate_post(body, opts = {}) ⇒ nil

Interrogateapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2130
2131
2132
2133
# File 'lib/stable_diffusion/api/default_api.rb', line 2130

def interrogateapi_sdapi_v1_interrogate_post(body, opts = {})
  interrogateapi_sdapi_v1_interrogate_post_with_http_info(body, opts)
  nil
end

#interrogateapi_sdapi_v1_interrogate_post_with_http_info(body, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Interrogateapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
# File 'lib/stable_diffusion/api/default_api.rb', line 2139

def interrogateapi_sdapi_v1_interrogate_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.interrogateapi_sdapi_v1_interrogate_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.interrogateapi_sdapi_v1_interrogate_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/interrogate'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#interrogateapi_sdapi_v1_interrogate_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#interruptapi_sdapi_v1_interrupt_post(opts = {}) ⇒ nil

Interruptapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2185
2186
2187
2188
# File 'lib/stable_diffusion/api/default_api.rb', line 2185

def interruptapi_sdapi_v1_interrupt_post(opts = {})
  interruptapi_sdapi_v1_interrupt_post_with_http_info(opts)
  nil
end

#interruptapi_sdapi_v1_interrupt_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Interruptapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
# File 'lib/stable_diffusion/api/default_api.rb', line 2193

def interruptapi_sdapi_v1_interrupt_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.interruptapi_sdapi_v1_interrupt_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/interrupt'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#interruptapi_sdapi_v1_interrupt_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#lambda_internal_ping_get(opts = {}) ⇒ nil

<Lambda>

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2233
2234
2235
2236
# File 'lib/stable_diffusion/api/default_api.rb', line 2233

def lambda_internal_ping_get(opts = {})
  lambda_internal_ping_get_with_http_info(opts)
  nil
end

#lambda_internal_ping_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

&lt;Lambda&gt;

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
# File 'lib/stable_diffusion/api/default_api.rb', line 2241

def lambda_internal_ping_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.lambda_internal_ping_get ...'
  end
  # resource path
  local_var_path = '/internal/ping'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#lambda_internal_ping_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#lambda_internal_profile_startup_get(opts = {}) ⇒ nil

<Lambda>

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2281
2282
2283
2284
# File 'lib/stable_diffusion/api/default_api.rb', line 2281

def lambda_internal_profile_startup_get(opts = {})
  lambda_internal_profile_startup_get_with_http_info(opts)
  nil
end

#lambda_internal_profile_startup_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

&lt;Lambda&gt;

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
# File 'lib/stable_diffusion/api/default_api.rb', line 2289

def lambda_internal_profile_startup_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.lambda_internal_profile_startup_get ...'
  end
  # resource path
  local_var_path = '/internal/profile-startup'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#lambda_internal_profile_startup_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#lambda_internal_sysinfo_download_get(opts = {}) ⇒ nil

<Lambda>

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2329
2330
2331
2332
# File 'lib/stable_diffusion/api/default_api.rb', line 2329

def lambda_internal_sysinfo_download_get(opts = {})
  lambda_internal_sysinfo_download_get_with_http_info(opts)
  nil
end

#lambda_internal_sysinfo_download_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

&lt;Lambda&gt;

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
# File 'lib/stable_diffusion/api/default_api.rb', line 2337

def lambda_internal_sysinfo_download_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.lambda_internal_sysinfo_download_get ...'
  end
  # resource path
  local_var_path = '/internal/sysinfo-download'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#lambda_internal_sysinfo_download_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#login_check_login_check_get(opts = {}) ⇒ nil

Login Check

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2377
2378
2379
2380
# File 'lib/stable_diffusion/api/default_api.rb', line 2377

def (opts = {})
  (opts)
  nil
end

#login_check_login_check_get_0(opts = {}) ⇒ nil

Login Check

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2425
2426
2427
2428
# File 'lib/stable_diffusion/api/default_api.rb', line 2425

def (opts = {})
  (opts)
  nil
end

#login_check_login_check_get_0_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Login Check

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
# File 'lib/stable_diffusion/api/default_api.rb', line 2433

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.login_check_login_check_get_0 ...'
  end
  # resource path
  local_var_path = '/login_check'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#login_check_login_check_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#login_check_login_check_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Login Check

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
# File 'lib/stable_diffusion/api/default_api.rb', line 2385

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.login_check_login_check_get ...'
  end
  # resource path
  local_var_path = '/login_check/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#login_check_login_check_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#login_login_post(grant_type, username, password, scope, client_id, client_secret, opts = {}) ⇒ nil

Login

Parameters:

  • grant_type
  • username
  • password
  • scope
  • client_id
  • client_secret
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2479
2480
2481
2482
# File 'lib/stable_diffusion/api/default_api.rb', line 2479

def (grant_type, username, password, scope, client_id, client_secret, opts = {})
  (grant_type, username, password, scope, client_id, client_secret, opts)
  nil
end

#login_login_post_0(grant_type, username, password, scope, client_id, client_secret, opts = {}) ⇒ nil

Login

Parameters:

  • grant_type
  • username
  • password
  • scope
  • client_id
  • client_secret
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2571
2572
2573
2574
# File 'lib/stable_diffusion/api/default_api.rb', line 2571

def (grant_type, username, password, scope, client_id, client_secret, opts = {})
  (grant_type, username, password, scope, client_id, client_secret, opts)
  nil
end

#login_login_post_0_with_http_info(grant_type, username, password, scope, client_id, client_secret, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Login

Parameters:

  • grant_type
  • username
  • password
  • scope
  • client_id
  • client_secret
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
# File 'lib/stable_diffusion/api/default_api.rb', line 2585

def (grant_type, username, password, scope, client_id, client_secret, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.login_login_post_0 ...'
  end
  # verify the required parameter 'grant_type' is set
  if @api_client.config.client_side_validation && grant_type.nil?
    fail ArgumentError, "Missing the required parameter 'grant_type' when calling DefaultApi.login_login_post_0"
  end
  # verify the required parameter 'username' is set
  if @api_client.config.client_side_validation && username.nil?
    fail ArgumentError, "Missing the required parameter 'username' when calling DefaultApi.login_login_post_0"
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.login_login_post_0"
  end
  # verify the required parameter 'scope' is set
  if @api_client.config.client_side_validation && scope.nil?
    fail ArgumentError, "Missing the required parameter 'scope' when calling DefaultApi.login_login_post_0"
  end
  # verify the required parameter 'client_id' is set
  if @api_client.config.client_side_validation && client_id.nil?
    fail ArgumentError, "Missing the required parameter 'client_id' when calling DefaultApi.login_login_post_0"
  end
  # verify the required parameter 'client_secret' is set
  if @api_client.config.client_side_validation && client_secret.nil?
    fail ArgumentError, "Missing the required parameter 'client_secret' when calling DefaultApi.login_login_post_0"
  end
  # resource path
  local_var_path = '/login'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['grant_type'] = grant_type
  form_params['username'] = username
  form_params['password'] = password
  form_params['scope'] = scope
  form_params['client_id'] = client_id
  form_params['client_secret'] = client_secret

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#login_login_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#login_login_post_with_http_info(grant_type, username, password, scope, client_id, client_secret, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Login

Parameters:

  • grant_type
  • username
  • password
  • scope
  • client_id
  • client_secret
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
# File 'lib/stable_diffusion/api/default_api.rb', line 2493

def (grant_type, username, password, scope, client_id, client_secret, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.login_login_post ...'
  end
  # verify the required parameter 'grant_type' is set
  if @api_client.config.client_side_validation && grant_type.nil?
    fail ArgumentError, "Missing the required parameter 'grant_type' when calling DefaultApi.login_login_post"
  end
  # verify the required parameter 'username' is set
  if @api_client.config.client_side_validation && username.nil?
    fail ArgumentError, "Missing the required parameter 'username' when calling DefaultApi.login_login_post"
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.login_login_post"
  end
  # verify the required parameter 'scope' is set
  if @api_client.config.client_side_validation && scope.nil?
    fail ArgumentError, "Missing the required parameter 'scope' when calling DefaultApi.login_login_post"
  end
  # verify the required parameter 'client_id' is set
  if @api_client.config.client_side_validation && client_id.nil?
    fail ArgumentError, "Missing the required parameter 'client_id' when calling DefaultApi.login_login_post"
  end
  # verify the required parameter 'client_secret' is set
  if @api_client.config.client_side_validation && client_secret.nil?
    fail ArgumentError, "Missing the required parameter 'client_secret' when calling DefaultApi.login_login_post"
  end
  # resource path
  local_var_path = '/login/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['grant_type'] = grant_type
  form_params['username'] = username
  form_params['password'] = password
  form_params['scope'] = scope
  form_params['client_id'] = client_id
  form_params['client_secret'] = client_secret

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#login_login_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#main_get(opts = {}) ⇒ String

Main

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


2657
2658
2659
2660
# File 'lib/stable_diffusion/api/default_api.rb', line 2657

def main_get(opts = {})
  data, _status_code, _headers = main_get_with_http_info(opts)
  data
end

#main_get_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Main

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
# File 'lib/stable_diffusion/api/default_api.rb', line 2665

def main_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.main_get ...'
  end
  # resource path
  local_var_path = '/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'String' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#main_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#main_head(opts = {}) ⇒ String

Main

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


2705
2706
2707
2708
# File 'lib/stable_diffusion/api/default_api.rb', line 2705

def main_head(opts = {})
  data, _status_code, _headers = main_head_with_http_info(opts)
  data
end

#main_head_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Main

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
# File 'lib/stable_diffusion/api/default_api.rb', line 2713

def main_head_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.main_head ...'
  end
  # resource path
  local_var_path = '/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'String' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:HEAD, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#main_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#pnginfoapi_sdapi_v1_png_info_post(body, opts = {}) ⇒ PNGInfoResponse

Pnginfoapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2754
2755
2756
2757
# File 'lib/stable_diffusion/api/default_api.rb', line 2754

def pnginfoapi_sdapi_v1_png_info_post(body, opts = {})
  data, _status_code, _headers = pnginfoapi_sdapi_v1_png_info_post_with_http_info(body, opts)
  data
end

#pnginfoapi_sdapi_v1_png_info_post_with_http_info(body, opts = {}) ⇒ Array<(PNGInfoResponse, Integer, Hash)>

Pnginfoapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(PNGInfoResponse, Integer, Hash)>)

    PNGInfoResponse data, response status code and response headers



2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
# File 'lib/stable_diffusion/api/default_api.rb', line 2763

def pnginfoapi_sdapi_v1_png_info_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.pnginfoapi_sdapi_v1_png_info_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.pnginfoapi_sdapi_v1_png_info_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/png-info'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'PNGInfoResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#pnginfoapi_sdapi_v1_png_info_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#predict_api_api_name_post(body, api_name, opts = {}) ⇒ nil

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2811
2812
2813
2814
# File 'lib/stable_diffusion/api/default_api.rb', line 2811

def predict_api_api_name_post(body, api_name, opts = {})
  predict_api_api_name_post_with_http_info(body, api_name, opts)
  nil
end

#predict_api_api_name_post_0(body, api_name, opts = {}) ⇒ nil

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2873
2874
2875
2876
# File 'lib/stable_diffusion/api/default_api.rb', line 2873

def predict_api_api_name_post_0(body, api_name, opts = {})
  predict_api_api_name_post_0_with_http_info(body, api_name, opts)
  nil
end

#predict_api_api_name_post_0_with_http_info(body, api_name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
# File 'lib/stable_diffusion/api/default_api.rb', line 2883

def predict_api_api_name_post_0_with_http_info(body, api_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.predict_api_api_name_post_0 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.predict_api_api_name_post_0"
  end
  # verify the required parameter 'api_name' is set
  if @api_client.config.client_side_validation && api_name.nil?
    fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_api_api_name_post_0"
  end
  # resource path
  local_var_path = '/api/{api_name}'.sub('{' + 'api_name' + '}', api_name.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#predict_api_api_name_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#predict_api_api_name_post_with_http_info(body, api_name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
# File 'lib/stable_diffusion/api/default_api.rb', line 2821

def predict_api_api_name_post_with_http_info(body, api_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.predict_api_api_name_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.predict_api_api_name_post"
  end
  # verify the required parameter 'api_name' is set
  if @api_client.config.client_side_validation && api_name.nil?
    fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_api_api_name_post"
  end
  # resource path
  local_var_path = '/api/{api_name}/'.sub('{' + 'api_name' + '}', api_name.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#predict_api_api_name_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#predict_run_api_name_post(body, api_name, opts = {}) ⇒ nil

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2935
2936
2937
2938
# File 'lib/stable_diffusion/api/default_api.rb', line 2935

def predict_run_api_name_post(body, api_name, opts = {})
  predict_run_api_name_post_with_http_info(body, api_name, opts)
  nil
end

#predict_run_api_name_post_0(body, api_name, opts = {}) ⇒ nil

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2997
2998
2999
3000
# File 'lib/stable_diffusion/api/default_api.rb', line 2997

def predict_run_api_name_post_0(body, api_name, opts = {})
  predict_run_api_name_post_0_with_http_info(body, api_name, opts)
  nil
end

#predict_run_api_name_post_0_with_http_info(body, api_name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
# File 'lib/stable_diffusion/api/default_api.rb', line 3007

def predict_run_api_name_post_0_with_http_info(body, api_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.predict_run_api_name_post_0 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.predict_run_api_name_post_0"
  end
  # verify the required parameter 'api_name' is set
  if @api_client.config.client_side_validation && api_name.nil?
    fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_run_api_name_post_0"
  end
  # resource path
  local_var_path = '/run/{api_name}'.sub('{' + 'api_name' + '}', api_name.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#predict_run_api_name_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#predict_run_api_name_post_with_http_info(body, api_name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Predict

Parameters:

  • body
  • api_name
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
# File 'lib/stable_diffusion/api/default_api.rb', line 2945

def predict_run_api_name_post_with_http_info(body, api_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.predict_run_api_name_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.predict_run_api_name_post"
  end
  # verify the required parameter 'api_name' is set
  if @api_client.config.client_side_validation && api_name.nil?
    fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_run_api_name_post"
  end
  # resource path
  local_var_path = '/run/{api_name}/'.sub('{' + 'api_name' + '}', api_name.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#predict_run_api_name_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#progressapi_internal_progress_post(body, opts = {}) ⇒ ModulesProgressProgressResponse

Progressapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3058
3059
3060
3061
# File 'lib/stable_diffusion/api/default_api.rb', line 3058

def progressapi_internal_progress_post(body, opts = {})
  data, _status_code, _headers = progressapi_internal_progress_post_with_http_info(body, opts)
  data
end

#progressapi_internal_progress_post_with_http_info(body, opts = {}) ⇒ Array<(ModulesProgressProgressResponse, Integer, Hash)>

Progressapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
# File 'lib/stable_diffusion/api/default_api.rb', line 3067

def progressapi_internal_progress_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.progressapi_internal_progress_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.progressapi_internal_progress_post"
  end
  # resource path
  local_var_path = '/internal/progress'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'ModulesProgressProgressResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#progressapi_internal_progress_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#progressapi_sdapi_v1_progress_get(opts = {}) ⇒ ModulesApiModelsProgressResponse

Progressapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :skip_current_image (BOOLEAN) — default: default to false

Returns:



3114
3115
3116
3117
# File 'lib/stable_diffusion/api/default_api.rb', line 3114

def progressapi_sdapi_v1_progress_get(opts = {})
  data, _status_code, _headers = progressapi_sdapi_v1_progress_get_with_http_info(opts)
  data
end

#progressapi_sdapi_v1_progress_get_with_http_info(opts = {}) ⇒ Array<(ModulesApiModelsProgressResponse, Integer, Hash)>

Progressapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :skip_current_image (BOOLEAN)

Returns:



3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
# File 'lib/stable_diffusion/api/default_api.rb', line 3123

def progressapi_sdapi_v1_progress_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.progressapi_sdapi_v1_progress_get ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/progress'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'skip_current_image'] = opts[:'skip_current_image'] if !opts[:'skip_current_image'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ModulesApiModelsProgressResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#progressapi_sdapi_v1_progress_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#quicksettings_hint_internal_quicksettings_hint_get(opts = {}) ⇒ Array<QuicksettingsHint>

Quicksettings Hint

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3164
3165
3166
3167
# File 'lib/stable_diffusion/api/default_api.rb', line 3164

def quicksettings_hint_internal_quicksettings_hint_get(opts = {})
  data, _status_code, _headers = quicksettings_hint_internal_quicksettings_hint_get_with_http_info(opts)
  data
end

#quicksettings_hint_internal_quicksettings_hint_get_with_http_info(opts = {}) ⇒ Array<(Array<QuicksettingsHint>, Integer, Hash)>

Quicksettings Hint

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<QuicksettingsHint>, Integer, Hash)>)

    Array<QuicksettingsHint> data, response status code and response headers



3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
# File 'lib/stable_diffusion/api/default_api.rb', line 3172

def quicksettings_hint_internal_quicksettings_hint_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.quicksettings_hint_internal_quicksettings_hint_get ...'
  end
  # resource path
  local_var_path = '/internal/quicksettings-hint'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<QuicksettingsHint>' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#quicksettings_hint_internal_quicksettings_hint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#refresh_checkpoints_sdapi_v1_refresh_checkpoints_post(opts = {}) ⇒ nil

Refresh Checkpoints

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3212
3213
3214
3215
# File 'lib/stable_diffusion/api/default_api.rb', line 3212

def refresh_checkpoints_sdapi_v1_refresh_checkpoints_post(opts = {})
  refresh_checkpoints_sdapi_v1_refresh_checkpoints_post_with_http_info(opts)
  nil
end

#refresh_checkpoints_sdapi_v1_refresh_checkpoints_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Refresh Checkpoints

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
# File 'lib/stable_diffusion/api/default_api.rb', line 3220

def refresh_checkpoints_sdapi_v1_refresh_checkpoints_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.refresh_checkpoints_sdapi_v1_refresh_checkpoints_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/refresh-checkpoints'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#refresh_checkpoints_sdapi_v1_refresh_checkpoints_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#refresh_loras_sdapi_v1_refresh_loras_post(opts = {}) ⇒ nil

Refresh Loras

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3260
3261
3262
3263
# File 'lib/stable_diffusion/api/default_api.rb', line 3260

def refresh_loras_sdapi_v1_refresh_loras_post(opts = {})
  refresh_loras_sdapi_v1_refresh_loras_post_with_http_info(opts)
  nil
end

#refresh_loras_sdapi_v1_refresh_loras_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Refresh Loras

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
# File 'lib/stable_diffusion/api/default_api.rb', line 3268

def refresh_loras_sdapi_v1_refresh_loras_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.refresh_loras_sdapi_v1_refresh_loras_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/refresh-loras'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#refresh_loras_sdapi_v1_refresh_loras_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#refresh_vae_sdapi_v1_refresh_vae_post(opts = {}) ⇒ nil

Refresh Vae

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3308
3309
3310
3311
# File 'lib/stable_diffusion/api/default_api.rb', line 3308

def refresh_vae_sdapi_v1_refresh_vae_post(opts = {})
  refresh_vae_sdapi_v1_refresh_vae_post_with_http_info(opts)
  nil
end

#refresh_vae_sdapi_v1_refresh_vae_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Refresh Vae

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
# File 'lib/stable_diffusion/api/default_api.rb', line 3316

def refresh_vae_sdapi_v1_refresh_vae_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.refresh_vae_sdapi_v1_refresh_vae_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/refresh-vae'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#refresh_vae_sdapi_v1_refresh_vae_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reloadapi_sdapi_v1_reload_checkpoint_post(opts = {}) ⇒ nil

Reloadapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3356
3357
3358
3359
# File 'lib/stable_diffusion/api/default_api.rb', line 3356

def reloadapi_sdapi_v1_reload_checkpoint_post(opts = {})
  reloadapi_sdapi_v1_reload_checkpoint_post_with_http_info(opts)
  nil
end

#reloadapi_sdapi_v1_reload_checkpoint_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Reloadapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
# File 'lib/stable_diffusion/api/default_api.rb', line 3364

def reloadapi_sdapi_v1_reload_checkpoint_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.reloadapi_sdapi_v1_reload_checkpoint_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/reload-checkpoint'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#reloadapi_sdapi_v1_reload_checkpoint_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reset_iterator_reset_post(body, opts = {}) ⇒ nil

Reset Iterator

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3405
3406
3407
3408
# File 'lib/stable_diffusion/api/default_api.rb', line 3405

def reset_iterator_reset_post(body, opts = {})
  reset_iterator_reset_post_with_http_info(body, opts)
  nil
end

#reset_iterator_reset_post_0(body, opts = {}) ⇒ nil

Reset Iterator

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3461
3462
3463
3464
# File 'lib/stable_diffusion/api/default_api.rb', line 3461

def reset_iterator_reset_post_0(body, opts = {})
  reset_iterator_reset_post_0_with_http_info(body, opts)
  nil
end

#reset_iterator_reset_post_0_with_http_info(body, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Reset Iterator

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
# File 'lib/stable_diffusion/api/default_api.rb', line 3470

def reset_iterator_reset_post_0_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.reset_iterator_reset_post_0 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.reset_iterator_reset_post_0"
  end
  # resource path
  local_var_path = '/reset/'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#reset_iterator_reset_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reset_iterator_reset_post_with_http_info(body, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Reset Iterator

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
# File 'lib/stable_diffusion/api/default_api.rb', line 3414

def reset_iterator_reset_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.reset_iterator_reset_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.reset_iterator_reset_post"
  end
  # resource path
  local_var_path = '/reset'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#reset_iterator_reset_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reverse_proxy_proxy_url_path_get(url_path, opts = {}) ⇒ nil

Reverse Proxy

Parameters:

  • url_path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3517
3518
3519
3520
# File 'lib/stable_diffusion/api/default_api.rb', line 3517

def reverse_proxy_proxy_url_path_get(url_path, opts = {})
  reverse_proxy_proxy_url_path_get_with_http_info(url_path, opts)
  nil
end

#reverse_proxy_proxy_url_path_get_with_http_info(url_path, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Reverse Proxy

Parameters:

  • url_path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
# File 'lib/stable_diffusion/api/default_api.rb', line 3526

def reverse_proxy_proxy_url_path_get_with_http_info(url_path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.reverse_proxy_proxy_url_path_get ...'
  end
  # verify the required parameter 'url_path' is set
  if @api_client.config.client_side_validation && url_path.nil?
    fail ArgumentError, "Missing the required parameter 'url_path' when calling DefaultApi.reverse_proxy_proxy_url_path_get"
  end
  # resource path
  local_var_path = '/proxy={url_path}'.sub('{' + 'url_path' + '}', url_path.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#reverse_proxy_proxy_url_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reverse_proxy_proxy_url_path_head(url_path, opts = {}) ⇒ nil

Reverse Proxy

Parameters:

  • url_path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3571
3572
3573
3574
# File 'lib/stable_diffusion/api/default_api.rb', line 3571

def reverse_proxy_proxy_url_path_head(url_path, opts = {})
  reverse_proxy_proxy_url_path_head_with_http_info(url_path, opts)
  nil
end

#reverse_proxy_proxy_url_path_head_with_http_info(url_path, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Reverse Proxy

Parameters:

  • url_path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
# File 'lib/stable_diffusion/api/default_api.rb', line 3580

def reverse_proxy_proxy_url_path_head_with_http_info(url_path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.reverse_proxy_proxy_url_path_head ...'
  end
  # verify the required parameter 'url_path' is set
  if @api_client.config.client_side_validation && url_path.nil?
    fail ArgumentError, "Missing the required parameter 'url_path' when calling DefaultApi.reverse_proxy_proxy_url_path_head"
  end
  # resource path
  local_var_path = '/proxy={url_path}'.sub('{' + 'url_path' + '}', url_path.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:HEAD, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#reverse_proxy_proxy_url_path_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#robots_txt_robots_txt_get(opts = {}) ⇒ String

Robots Txt

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


3624
3625
3626
3627
# File 'lib/stable_diffusion/api/default_api.rb', line 3624

def robots_txt_robots_txt_get(opts = {})
  data, _status_code, _headers = robots_txt_robots_txt_get_with_http_info(opts)
  data
end

#robots_txt_robots_txt_get_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Robots Txt

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
# File 'lib/stable_diffusion/api/default_api.rb', line 3632

def robots_txt_robots_txt_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.robots_txt_robots_txt_get ...'
  end
  # resource path
  local_var_path = '/robots.txt'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'String' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#robots_txt_robots_txt_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#set_config_sdapi_v1_options_post(body, opts = {}) ⇒ nil

Set Config

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3673
3674
3675
3676
# File 'lib/stable_diffusion/api/default_api.rb', line 3673

def set_config_sdapi_v1_options_post(body, opts = {})
  set_config_sdapi_v1_options_post_with_http_info(body, opts)
  nil
end

#set_config_sdapi_v1_options_post_with_http_info(body, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Set Config

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
# File 'lib/stable_diffusion/api/default_api.rb', line 3682

def set_config_sdapi_v1_options_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.set_config_sdapi_v1_options_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.set_config_sdapi_v1_options_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/options'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#set_config_sdapi_v1_options_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#skip_sdapi_v1_skip_post(opts = {}) ⇒ nil

Skip

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3728
3729
3730
3731
# File 'lib/stable_diffusion/api/default_api.rb', line 3728

def skip_sdapi_v1_skip_post(opts = {})
  skip_sdapi_v1_skip_post_with_http_info(opts)
  nil
end

#skip_sdapi_v1_skip_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Skip

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
# File 'lib/stable_diffusion/api/default_api.rb', line 3736

def skip_sdapi_v1_skip_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.skip_sdapi_v1_skip_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/skip'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#skip_sdapi_v1_skip_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#startup_events_startup_events_get(opts = {}) ⇒ nil

Startup Events

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3776
3777
3778
3779
# File 'lib/stable_diffusion/api/default_api.rb', line 3776

def startup_events_startup_events_get(opts = {})
  startup_events_startup_events_get_with_http_info(opts)
  nil
end

#startup_events_startup_events_get_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Startup Events

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
# File 'lib/stable_diffusion/api/default_api.rb', line 3784

def startup_events_startup_events_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.startup_events_startup_events_get ...'
  end
  # resource path
  local_var_path = '/startup-events'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#startup_events_startup_events_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#static_resource_static_path_get(path, opts = {}) ⇒ nil

Static Resource

Parameters:

  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3825
3826
3827
3828
# File 'lib/stable_diffusion/api/default_api.rb', line 3825

def static_resource_static_path_get(path, opts = {})
  static_resource_static_path_get_with_http_info(path, opts)
  nil
end

#static_resource_static_path_get_with_http_info(path, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Static Resource

Parameters:

  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
# File 'lib/stable_diffusion/api/default_api.rb', line 3834

def static_resource_static_path_get_with_http_info(path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.static_resource_static_path_get ...'
  end
  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling DefaultApi.static_resource_static_path_get"
  end
  # resource path
  local_var_path = '/static/{path}'.sub('{' + 'path' + '}', path.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#static_resource_static_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#stream_stream_session_hash_run_component_id_get(session_hash, run, component_id, opts = {}) ⇒ nil

Stream

Parameters:

  • session_hash
  • run
  • component_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3881
3882
3883
3884
# File 'lib/stable_diffusion/api/default_api.rb', line 3881

def stream_stream_session_hash_run_component_id_get(session_hash, run, component_id, opts = {})
  stream_stream_session_hash_run_component_id_get_with_http_info(session_hash, run, component_id, opts)
  nil
end

#stream_stream_session_hash_run_component_id_get_with_http_info(session_hash, run, component_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Stream

Parameters:

  • session_hash
  • run
  • component_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
# File 'lib/stable_diffusion/api/default_api.rb', line 3892

def stream_stream_session_hash_run_component_id_get_with_http_info(session_hash, run, component_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.stream_stream_session_hash_run_component_id_get ...'
  end
  # verify the required parameter 'session_hash' is set
  if @api_client.config.client_side_validation && session_hash.nil?
    fail ArgumentError, "Missing the required parameter 'session_hash' when calling DefaultApi.stream_stream_session_hash_run_component_id_get"
  end
  # verify the required parameter 'run' is set
  if @api_client.config.client_side_validation && run.nil?
    fail ArgumentError, "Missing the required parameter 'run' when calling DefaultApi.stream_stream_session_hash_run_component_id_get"
  end
  # verify the required parameter 'component_id' is set
  if @api_client.config.client_side_validation && component_id.nil?
    fail ArgumentError, "Missing the required parameter 'component_id' when calling DefaultApi.stream_stream_session_hash_run_component_id_get"
  end
  # resource path
  local_var_path = '/stream/{session_hash}/{run}/{component_id}'.sub('{' + 'session_hash' + '}', session_hash.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'component_id' + '}', component_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#stream_stream_session_hash_run_component_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#text2imgapi_sdapi_v1_txt2img_post(body, opts = {}) ⇒ TextToImageResponse

Text2Imgapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3945
3946
3947
3948
# File 'lib/stable_diffusion/api/default_api.rb', line 3945

def text2imgapi_sdapi_v1_txt2img_post(body, opts = {})
  data, _status_code, _headers = text2imgapi_sdapi_v1_txt2img_post_with_http_info(body, opts)
  data
end

#text2imgapi_sdapi_v1_txt2img_post_with_http_info(body, opts = {}) ⇒ Array<(TextToImageResponse, Integer, Hash)>

Text2Imgapi

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(TextToImageResponse, Integer, Hash)>)

    TextToImageResponse data, response status code and response headers



3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
# File 'lib/stable_diffusion/api/default_api.rb', line 3954

def text2imgapi_sdapi_v1_txt2img_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.text2imgapi_sdapi_v1_txt2img_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.text2imgapi_sdapi_v1_txt2img_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/txt2img'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'TextToImageResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#text2imgapi_sdapi_v1_txt2img_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#theme_css_theme_css_get(opts = {}) ⇒ String

Theme Css

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


4000
4001
4002
4003
# File 'lib/stable_diffusion/api/default_api.rb', line 4000

def theme_css_theme_css_get(opts = {})
  data, _status_code, _headers = theme_css_theme_css_get_with_http_info(opts)
  data
end

#theme_css_theme_css_get_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Theme Css

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
# File 'lib/stable_diffusion/api/default_api.rb', line 4008

def theme_css_theme_css_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.theme_css_theme_css_get ...'
  end
  # resource path
  local_var_path = '/theme.css'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'String' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#theme_css_theme_css_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#train_embedding_sdapi_v1_train_embedding_post(body, opts = {}) ⇒ TrainResponse

Train Embedding

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



4049
4050
4051
4052
# File 'lib/stable_diffusion/api/default_api.rb', line 4049

def train_embedding_sdapi_v1_train_embedding_post(body, opts = {})
  data, _status_code, _headers = train_embedding_sdapi_v1_train_embedding_post_with_http_info(body, opts)
  data
end

#train_embedding_sdapi_v1_train_embedding_post_with_http_info(body, opts = {}) ⇒ Array<(TrainResponse, Integer, Hash)>

Train Embedding

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(TrainResponse, Integer, Hash)>)

    TrainResponse data, response status code and response headers



4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
# File 'lib/stable_diffusion/api/default_api.rb', line 4058

def train_embedding_sdapi_v1_train_embedding_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.train_embedding_sdapi_v1_train_embedding_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.train_embedding_sdapi_v1_train_embedding_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/train/embedding'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'TrainResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#train_embedding_sdapi_v1_train_embedding_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#train_hypernetwork_sdapi_v1_train_hypernetwork_post(body, opts = {}) ⇒ TrainResponse

Train Hypernetwork

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



4105
4106
4107
4108
# File 'lib/stable_diffusion/api/default_api.rb', line 4105

def train_hypernetwork_sdapi_v1_train_hypernetwork_post(body, opts = {})
  data, _status_code, _headers = train_hypernetwork_sdapi_v1_train_hypernetwork_post_with_http_info(body, opts)
  data
end

#train_hypernetwork_sdapi_v1_train_hypernetwork_post_with_http_info(body, opts = {}) ⇒ Array<(TrainResponse, Integer, Hash)>

Train Hypernetwork

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(TrainResponse, Integer, Hash)>)

    TrainResponse data, response status code and response headers



4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
# File 'lib/stable_diffusion/api/default_api.rb', line 4114

def train_hypernetwork_sdapi_v1_train_hypernetwork_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.train_hypernetwork_sdapi_v1_train_hypernetwork_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.train_hypernetwork_sdapi_v1_train_hypernetwork_post"
  end
  # resource path
  local_var_path = '/sdapi/v1/train/hypernetwork'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'TrainResponse' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#train_hypernetwork_sdapi_v1_train_hypernetwork_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#unloadapi_sdapi_v1_unload_checkpoint_post(opts = {}) ⇒ nil

Unloadapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


4160
4161
4162
4163
# File 'lib/stable_diffusion/api/default_api.rb', line 4160

def unloadapi_sdapi_v1_unload_checkpoint_post(opts = {})
  unloadapi_sdapi_v1_unload_checkpoint_post_with_http_info(opts)
  nil
end

#unloadapi_sdapi_v1_unload_checkpoint_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Unloadapi

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
# File 'lib/stable_diffusion/api/default_api.rb', line 4168

def unloadapi_sdapi_v1_unload_checkpoint_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.unloadapi_sdapi_v1_unload_checkpoint_post ...'
  end
  # resource path
  local_var_path = '/sdapi/v1/unload-checkpoint'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#unloadapi_sdapi_v1_unload_checkpoint_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#upload_file_upload_post(files, opts = {}) ⇒ nil

Upload File

Parameters:

  • files
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


4209
4210
4211
4212
# File 'lib/stable_diffusion/api/default_api.rb', line 4209

def upload_file_upload_post(files, opts = {})
  upload_file_upload_post_with_http_info(files, opts)
  nil
end

#upload_file_upload_post_with_http_info(files, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Upload File

Parameters:

  • files
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
# File 'lib/stable_diffusion/api/default_api.rb', line 4218

def upload_file_upload_post_with_http_info(files, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.upload_file_upload_post ...'
  end
  # verify the required parameter 'files' is set
  if @api_client.config.client_side_validation && files.nil?
    fail ArgumentError, "Missing the required parameter 'files' when calling DefaultApi.upload_file_upload_post"
  end
  # resource path
  local_var_path = '/upload'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['files'] = @api_client.build_collection_param(files, :multi)

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#upload_file_upload_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end