
pipeline-examples/outpainter

Create hybrid photos with text prompts using this outpainting tool
Public
22
runs
Run pipeline-examples/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
|
|
Prompt to use for outpainting
|
outpaint |
None
|
None
|
Outpainting options
|
model |
None
|
ideogram-ai/ideogram-v2
|
Model to use
|
max_dimension |
integer
|
1536
Min: 64 Max: 4096 |
Maximum dimension of output image
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Image to outpaint"
},
"model": {
"enum": [
"ideogram-ai/ideogram-v2",
"ideogram-ai/ideogram-v2-turbo",
"black-forest-labs/flux-fill-pro",
"black-forest-labs/flux-fill-dev",
"stability-ai/sdxl"
],
"type": "string",
"title": "model",
"description": "Model to use",
"default": "ideogram-ai/ideogram-v2",
"x-order": 3
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 1,
"description": "Prompt to use for outpainting"
},
"outpaint": {
"enum": [
"None",
"Zoom out 1.5x",
"Zoom out 2x",
"Make square",
"Left outpaint",
"Right outpaint",
"Top outpaint",
"Bottom outpaint"
],
"type": "string",
"title": "outpaint",
"description": "Outpainting options",
"default": "None",
"x-order": 2
},
"max_dimension": {
"type": "integer",
"title": "Max Dimension",
"default": 1536,
"maximum": 4096,
"minimum": 64,
"x-order": 4,
"description": "Maximum dimension of output image"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/Pu8jLQc3rXZeECzcQlTJcgSTyjJMeo8CWfAcLnx3JcIGSnWqA/tmpaa6bf7sv.png'