nicholascelestin
/
glid-3-xl
Making public for the sake of API calls
- Public
- 1.3K runs
Run nicholascelestin/glid-3-xl with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
|
Your text prompt.
|
negative |
string
|
|
(optional) Negate the model's prediction for this text from the model's prediction for the target text.
|
init_image |
string
|
(optional) Initial image to use for the model's prediction.
|
|
init_skip_fraction |
number
|
0
Max: 1 |
Fraction of sampling steps to skip when using an init image.
|
batch_size |
integer
(enum)
|
4
Options: 1, 2, 3, 4, 6, 8 |
Batch size.
|
width |
integer
(enum)
|
256
Options: 128, 192, 256, 320, 384 |
Target width
|
height |
integer
(enum)
|
256
Options: 128, 192, 256, 320, 384 |
Target height
|
seed |
integer
|
-1
Min: -1 Max: 4294967295 |
Seed for random number generator.
|
guidance_scale |
number
|
5
Min: -20 Max: 100 |
Classifier-free guidance scale. Higher values will result in more guidance toward caption, with diminishing returns. Try values between 1.0 and 40.0.
|
steps |
integer
|
50
Min: 15 Max: 250 |
Number of diffusion steps to run.
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"maximum": 4294967295,
"minimum": -1,
"x-order": 7,
"description": "Seed for random number generator."
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 50,
"maximum": 250,
"minimum": 15,
"x-order": 9,
"description": "Number of diffusion steps to run."
},
"width": {
"enum": [
128,
192,
256,
320,
384
],
"type": "integer",
"title": "width",
"description": "Target width",
"default": 256,
"x-order": 5
},
"height": {
"enum": [
128,
192,
256,
320,
384
],
"type": "integer",
"title": "height",
"description": "Target height",
"default": 256,
"x-order": 6
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 0,
"description": "Your text prompt."
},
"negative": {
"type": "string",
"title": "Negative",
"default": "",
"x-order": 1,
"description": "(optional) Negate the model's prediction for this text from the model's prediction for the target text."
},
"batch_size": {
"enum": [
1,
2,
3,
4,
6,
8
],
"type": "integer",
"title": "batch_size",
"description": "Batch size.",
"default": 4,
"x-order": 4
},
"init_image": {
"type": "string",
"title": "Init Image",
"format": "uri",
"x-order": 2,
"description": "(optional) Initial image to use for the model's prediction."
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 5,
"maximum": 100,
"minimum": -20,
"x-order": 8,
"description": "Classifier-free guidance scale. Higher values will result in more guidance toward caption, with diminishing returns. Try values between 1.0 and 40.0."
},
"init_skip_fraction": {
"type": "number",
"title": "Init Skip Fraction",
"default": 0,
"maximum": 1,
"minimum": 0,
"x-order": 3,
"description": "Fraction of sampling steps to skip when using an init image."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"title": "Output",
"x-cog-array-type": "iterator"
}