Multi-Platform Package Manager for Stable Diffusion
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.

20 lines
545 B

using Refit;
using StabilityMatrix.Core.Models.Api;
namespace StabilityMatrix.Core.Api;
public interface ICivitApi
{
[Get("/api/v1/models")]
Task<CivitModelsResponse> GetModels(CivitModelsRequest request);
[Get("/api/v1/models/{id}")]
Task<CivitModel> GetModelById([AliasAs("id")] int id);
[Get("/api/v1/model-versions/by-hash/{hash}")]
Task<CivitModelVersionResponse> GetModelVersionByHash([Query] string hash);
[Get("/api/v1/model-versions/{id}")]
Task<CivitModelVersion> GetModelVersionById(int id);
}