List Models
POST//localhost:11337/model-svc/models
Retrieves a list of models.
Requires model-svc:model:view
permission.
Responses
- 200
- 401
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
models object[]
{
"models": [
{
"assets": [
{
"envVarKey": "string",
"url": "string"
}
],
"bits": 0,
"description": "string",
"extension": "string",
"flavour": "string",
"fullName": "string",
"id": "string",
"maxBits": 0,
"maxRam": 0,
"mirrors": [
"string"
],
"name": "string",
"parameters": "string",
"platformId": "string",
"promptTemplate": "string",
"quality": "string",
"quantComment": "string",
"size": 0,
"tags": [
"string"
],
"uncensored": true,
"version": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
errorstring
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (auto)
Schema
errorstring
{
"error": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeydescription: Type "Bearer" followed by a space and token acquired from the User Svc Login endpoint.in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "//localhost:11337/model-svc/models");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear