You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
824 B
24 lines
824 B
1 year ago
|
using Refit;
|
||
1 year ago
|
using StabilityMatrix.Core.Models.Api;
|
||
2 years ago
|
|
||
1 year ago
|
namespace StabilityMatrix.Core.Api;
|
||
2 years ago
|
|
||
|
[Headers("User-Agent: StabilityMatrix")]
|
||
|
public interface IA3WebApi
|
||
|
{
|
||
|
[Get("/internal/ping")]
|
||
1 year ago
|
Task<string> GetPing(CancellationToken cancellationToken = default);
|
||
2 years ago
|
|
||
|
[Post("/sdapi/v1/txt2img")]
|
||
1 year ago
|
Task<ImageResponse> TextToImage([Body] TextToImageRequest request, CancellationToken cancellationToken = default);
|
||
2 years ago
|
|
||
|
[Get("/sdapi/v1/progress")]
|
||
1 year ago
|
Task<ProgressResponse> GetProgress([Body] ProgressRequest request, CancellationToken cancellationToken = default);
|
||
1 year ago
|
|
||
|
[Get("/sdapi/v1/options")]
|
||
1 year ago
|
Task<A3Options> GetOptions(CancellationToken cancellationToken = default);
|
||
1 year ago
|
|
||
|
[Post("/sdapi/v1/options")]
|
||
1 year ago
|
Task SetOptions([Body] A3Options request, CancellationToken cancellationToken = default);
|
||
2 years ago
|
}
|