jlamoreaux/image-in-image

Intelligently composite one generated image into another with natural lighting and perspective matching, perfect for creating mockups and visualizations.

Public
2 runs

Run jlamoreaux/image-in-image 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
composition_type
None
billboard
Type of image composition to create
scene_description
string
Describe the main scene (e.g., 'desert highway', 'person holding photo', 'living room wall')
overlay_content
string
What should be in the overlaid image (e.g., 'band photo', 'advertisement', 'artwork')
overlay_image
string
Custom image to use as overlay (leave empty to generate from overlay_content)
style
None
realistic
Overall style of the composition
integration_quality
None
high
Quality level of AI integration (higher = more processing time)
main_aspect_ratio
None
16:9
Aspect ratio for the final composition
lighting_match
boolean
True
Match lighting between main scene and overlay
perspective_correction
boolean
True
Apply perspective correction to overlay
seed
integer
Random seed for reproducible generation

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "main_image",
    "composite_image",
    "enhanced_main_prompt",
    "enhanced_overlay_prompt",
    "overlay_image"
  ],
  "properties": {
    "main_image": {
      "type": "string",
      "title": "Main Image",
      "format": "uri"
    },
    "overlay_image": {
      "type": "string",
      "title": "Overlay Image",
      "format": "uri"
    },
    "composite_image": {
      "type": "string",
      "title": "Composite Image",
      "format": "uri"
    },
    "enhanced_main_prompt": {
      "type": "string",
      "title": "Enhanced Main Prompt"
    },
    "enhanced_overlay_prompt": {
      "type": "string",
      "title": "Enhanced Overlay Prompt"
    }
  }
}