Skip to main content

Class: Automatic1111ApiConfiguration

Creates an API configuration for the AUTOMATIC1111 Stable Diffusion Web UI API. It calls the API at http://127.0.0.1:7860/sdapi/v1 by default.

Hierarchy

Constructors

constructor

new Automatic1111ApiConfiguration(settings?): Automatic1111ApiConfiguration

Parameters

NameType
settingsPartialBaseUrlPartsApiConfigurationOptions

Returns

Automatic1111ApiConfiguration

Overrides

BaseUrlApiConfigurationWithDefaults.constructor

Defined in

packages/modelfusion/src/model-provider/automatic1111/Automatic1111ApiConfiguration.ts:11

Methods

assembleUrl

assembleUrl(path): string

Parameters

NameType
pathstring

Returns

string

Inherited from

BaseUrlApiConfigurationWithDefaults.assembleUrl

Defined in

packages/modelfusion/src/core/api/BaseUrlApiConfiguration.ts:47


fixedHeaders

fixedHeaders(): Record<string, string>

Returns

Record<string, string>

Inherited from

BaseUrlApiConfigurationWithDefaults.fixedHeaders

Defined in

packages/modelfusion/src/core/api/BaseUrlApiConfiguration.ts:43


headers

headers(params): Record<string, string>

Parameters

NameType
paramsHeaderParameters

Returns

Record<string, string>

Inherited from

BaseUrlApiConfigurationWithDefaults.headers

Defined in

packages/modelfusion/src/core/api/AbstractApiConfiguration.ts:31

Properties

baseUrl

Readonly baseUrl: UrlParts

Inherited from

BaseUrlApiConfigurationWithDefaults.baseUrl

Defined in

packages/modelfusion/src/core/api/BaseUrlApiConfiguration.ts:27


retry

Optional Readonly retry: RetryFunction

Inherited from

BaseUrlApiConfigurationWithDefaults.retry

Defined in

packages/modelfusion/src/core/api/AbstractApiConfiguration.ts:7


throttle

Optional Readonly throttle: ThrottleFunction

Inherited from

BaseUrlApiConfigurationWithDefaults.throttle

Defined in

packages/modelfusion/src/core/api/AbstractApiConfiguration.ts:8