TheFluxTrain

Product photography

Place a product image onto a background scene with a text prompt.

Composite a product cutout onto a background image using a text prompt for lighting and scene. Built for e‑commerce and marketing pipelines.

URL: POST https://api.thefluxtrain.com/api/v1/image-generate/product-photography/generate

Authentication: x-api-key

Request body

FieldTypeRequiredDefaultDescription
product_photostringYesProduct image URL or data URI
background_photostringYesBackground image URL or data URI
promptstringYesScene / lighting description
lora_strengthnumberNo0.70LoRA strength (0.0–1.0)
guidance_scalenumberNo4.5Guidance scale
output_formatstringNopngjpg or png
folder_idstringNoFolder UUID in your account
message_idstringNoYour own tracking ID

Example

{
  "product_photo": "https://example.com/product.png",
  "background_photo": "https://example.com/studio-bg.jpg",
  "prompt": "soft studio lighting, subtle shadow under product",
  "folder_id": "your-folder-uuid"
}

Response

FieldTypeDescription
idstringJob ID
urlstringComposited product photo URL
statusstringGeneration status
media_typestringIMAGE
metaobjectMetadata
folder_idstring | nullFolder UUID
created_atstring | nullISO 8601 timestamp
message_idstring | nullYour tracking ID if sent

Example

{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://storage.example/product-shot.png",
    "status": "SUCCESS",
    "media_type": "IMAGE",
    "meta": {},
    "folder_id": "your-folder-uuid"
  },
  "error": null
}