mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 21:23:10 +00:00
26 lines
355 B
Plaintext
26 lines
355 B
Plaintext
|
meta {
|
||
|
name: Generate image
|
||
|
type: http
|
||
|
seq: 1
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/v1/images/generations
|
||
|
body: json
|
||
|
auth: none
|
||
|
}
|
||
|
|
||
|
headers {
|
||
|
Content-Type: application/json
|
||
|
}
|
||
|
|
||
|
body:json {
|
||
|
{
|
||
|
"prompt": "<positive prompt>|<negative prompt>",
|
||
|
"model": "model-name",
|
||
|
"step": 51,
|
||
|
"size": "1024x1024",
|
||
|
"image": ""
|
||
|
}
|
||
|
}
|