Lumina AIModel guides

Nano Banana 2 Lite reference-to-image API integration

Use a turntable clip as a visual reference with nano-banana-2-lite/reference-to-image. Prepare the assets, submit the request and check the result.

Use a turntable clip as a visual reference

Pick a short section of the turntable shot in which the lamp stays unobstructed. Scrub through the selection to check that both shade and base remain visible. Compare the result with the clearest frame.

Production settings

Choose the moments you want before adjusting start, ends and fps. Begin with a single reference clip. Check whether the product details match that time range before adding more footage.

Each video_clips entry includes url, start, ends and fps. Check the selected start and end points in a local player first.

Submit the task

Set LUMINA_API_KEY on the server to an API key that can call this model. Replace each example media URL with an HTTPS link that serves the actual file.

curl -sS -X POST 'https://luminaai.cloud/lumina/v1/images/edits' \
  -H "Authorization: Bearer $LUMINA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2-lite/reference-to-image",
  "prompt": "Create a front-facing product image of the lamp in the reference. Keep the curve of its shade, the base and the finish. Use a warm backdrop and illuminate the bulb.",
  "video_clips": [
    {
      "url": "https://example.org/ref.mp4",
      "start": 0,
      "ends": 1,
      "fps": 1
    }
  ]
}
JSON

Fields for this request

FieldType, limits or values
promptstring
video_clipsmin items 1 · max items 1
resolution1k · default "1k"
seeddefault -1

Retrieve the result

Save the id from the submission response. Replace TASK_ID below with that value and use the same key. If the status is IN_PROGRESS, poll this task again.

curl -sS 'https://luminaai.cloud/lumina/v1/tasks/TASK_ID' \
  -H "Authorization: Bearer $LUMINA_API_KEY"

Read the generated files when the task reaches SUCCESS. If it returns FAILURE, retain the task ID and error so you can trace the exact inputs and model used.