smoretalk
/
flamel-outpainting
- Public
- 37 runs
Run smoretalk/flamel-outpainting 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 |
---|---|---|---|
init_image |
string
|
Input original image for outpainting.
|
|
vertical_alignment |
string
(enum)
|
middle
Options: top, middle, bottom |
Vertical alignment.
|
horizontal_alignment |
string
(enum)
|
center
Options: left, center, right |
Horizontal alignment.
|
resize_ratio |
string
(enum)
|
100%
Options: 100%, 50%, 33%, 25% |
Resize ratio compared to init image
|
aspect_ratio |
string
(enum)
|
1:1
Options: 9:16, 3:4, 1:1, 4:3, 16:9 |
Aspect ratio of grid image.
|
prompt |
string
|
Input prompt.
|
|
num_inference_steps |
integer
|
8
Min: 1 Max: 50 |
Number of denoising steps.
|
num_images_per_prompt |
integer
|
1
Min: 1 Max: 4 |
Number of outputs.
|
seed |
integer
|
Random seed. Leave blank to randomize the seed.
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 8,
"description": "Random seed. Leave blank to randomize the seed."
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 5,
"description": "Input prompt."
},
"init_image": {
"type": "string",
"title": "Init Image",
"format": "uri",
"x-order": 0,
"description": "Input original image for outpainting."
},
"aspect_ratio": {
"enum": [
"9:16",
"3:4",
"1:1",
"4:3",
"16:9"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of grid image.",
"default": "1:1",
"x-order": 4
},
"resize_ratio": {
"enum": [
"100%",
"50%",
"33%",
"25%"
],
"type": "string",
"title": "resize_ratio",
"description": "Resize ratio compared to init image",
"default": "100%",
"x-order": 3
},
"vertical_alignment": {
"enum": [
"top",
"middle",
"bottom"
],
"type": "string",
"title": "vertical_alignment",
"description": "Vertical alignment.",
"default": "middle",
"x-order": 1
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 8,
"maximum": 50,
"minimum": 1,
"x-order": 6,
"description": "Number of denoising steps."
},
"horizontal_alignment": {
"enum": [
"left",
"center",
"right"
],
"type": "string",
"title": "horizontal_alignment",
"description": "Horizontal alignment.",
"default": "center",
"x-order": 2
},
"num_images_per_prompt": {
"type": "integer",
"title": "Num Images Per Prompt",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 7,
"description": "Number of outputs."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}