
zsxkib/outpainter

🎨 Outpaint in each direction (top, bottom, left, right)
Run zsxkib/outpainter 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 |
---|---|---|---|
image |
string
|
Image to outpaint
|
|
prompt |
string
|
Continue the image
|
Describe what should fill the new areas
|
preset |
None
|
none
|
Quick outpaint presets
|
extend_left |
integer
|
0
Max: 2000 |
Pixels to extend left
|
extend_right |
integer
|
0
Max: 2000 |
Pixels to extend right
|
extend_top |
integer
|
0
Max: 2000 |
Pixels to extend top
|
extend_bottom |
integer
|
0
Max: 2000 |
Pixels to extend bottom
|
steps |
integer
|
50
Min: 15 Max: 50 |
Quality vs speed
|
guidance |
number
|
30
Min: 1.5 Max: 100 |
Prompt adherence
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Image to outpaint"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 50,
"maximum": 50,
"minimum": 15,
"x-order": 7,
"description": "Quality vs speed"
},
"preset": {
"enum": [
"none",
"zoom_out_1.5x",
"zoom_out_2x",
"make_square",
"left",
"right",
"top",
"bottom"
],
"type": "string",
"title": "preset",
"description": "Quick outpaint presets",
"default": "none",
"x-order": 2
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "Continue the image",
"x-order": 1,
"description": "Describe what should fill the new areas"
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 30,
"maximum": 100,
"minimum": 1.5,
"x-order": 8,
"description": "Prompt adherence"
},
"extend_top": {
"type": "integer",
"title": "Extend Top",
"default": 0,
"maximum": 2000,
"minimum": 0,
"x-order": 5,
"description": "Pixels to extend top"
},
"extend_left": {
"type": "integer",
"title": "Extend Left",
"default": 0,
"maximum": 2000,
"minimum": 0,
"x-order": 3,
"description": "Pixels to extend left"
},
"extend_right": {
"type": "integer",
"title": "Extend Right",
"default": 0,
"maximum": 2000,
"minimum": 0,
"x-order": 4,
"description": "Pixels to extend right"
},
"extend_bottom": {
"type": "integer",
"title": "Extend Bottom",
"default": 0,
"maximum": 2000,
"minimum": 0,
"x-order": 6,
"description": "Pixels to extend bottom"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}
{'image': 'https://replicate.delivery/xezq/AmVvqYnL0MIrENLZakS7DvijAItFXzRv0QxHqY0ld9xrIwSF/tmpq0mtcjkz.jpg'}