namespace BlazorDiffusion.ServiceInterface
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type QueueCreative() =
[<Required>]
member val UserPrompt:String = null with get,set
member val Images:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Width:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Height:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Steps:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Seed:Nullable<Int64> = new Nullable<Int64>() with get,set
member val EngineId:String = null with get,set
member val ArtistIds:ResizeArray<Int32> = null with get,set
member val ModifierIds:ResizeArray<Int32> = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/QueueCreative HTTP/1.1
Host: blazordiffusion.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
userPrompt: String,
images: 0,
width: 0,
height: 0,
steps: 0,
seed: 0,
engineId: String,
artistIds:
[
0
],
modifierIds:
[
0
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { }