Blazor Diffusion

<back to all web services

QueueCreative

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

F# QueueCreative DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/QueueCreative HTTP/1.1 
Host: blazordiffusion.com 
Accept: application/json
Content-Type: application/json
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: application/json
Content-Length: length

{}