
flux-kontext-apps/in-scene

InScene is a LoRA by Peter O’Malley (POM) that's designed to generate images that maintain scene consistency with a source image. It is trained on top of Flux.1-Kontext.dev.
Public
1.5K
runs
Run flux-kontext-apps/in-scene 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 |
---|---|---|---|
input_image |
string
|
None
|
|
prompt |
string
|
Make a shot in the same scene of
|
Text prompt for video generation
|
aspect_ratio |
None
|
match_input_image
|
Aspect ratio of the output
|
lora_strength |
number
|
1
|
Strength of the lora
|
output_format |
None
|
webp
|
Format of the output image
|
{
"type": "object",
"title": "Input",
"required": [
"input_image"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"default": "Make a shot in the same scene of",
"x-order": 1,
"description": "Text prompt for video generation"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 0
},
"aspect_ratio": {
"enum": [
"match_input_image",
"1:1",
"16:9",
"9:16",
"3:4",
"4:3",
"3:2",
"2:3",
"21:9",
"9:21"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the output",
"default": "match_input_image",
"x-order": 2
},
"lora_strength": {
"type": "number",
"title": "Lora Strength",
"default": 1,
"x-order": 3,
"description": "Strength of the lora"
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output image",
"default": "webp",
"x-order": 4
}
}
}
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/n3ttHtYVZ2bcGFfJ1kZefiRAWTYz0TL00nBgHycnoN0VSeUUB/output.webp'