Photograph a tea tin for a product page
Decide where the image will appear before composing the prompt. Check both the full image and a thumbnail cropped to the product grid. The lid, the base and the shadow should still fit, with enough clear space for the page title.
Production settings
Record size with the delivery artboard. For a narrow card placement, preview at the actual card ratio before changing the image dimensions. Check the crop for any loss of product detail.
Submit the task
Set LUMINA_API_KEY on the server to an API key that can call this model.
curl -sS -X POST 'https://luminaai.cloud/lumina/v1/images/generations' \
-H "Authorization: Bearer $LUMINA_API_KEY" \
-H 'Content-Type: application/json' \
--data-binary @- <<'JSON'
{
"model": "seedream-v5.0-pro/text-to-image",
"prompt": "A matte teal tea tin on a pale grey table, photographed at label height. Soft window light from the left, the entire tin in frame and clear space on the right for copy."
}
JSONFields for this request
| Field | Type, limits or values |
|---|---|
| prompt | string |
| size | 2048*2048 / 2304*1728 / 1728*2304 / 2720*1530 / 1530*2720 / 2496*1664 / 1664*2496 / 1024*1024 / 1536*1536 / 1776*1328 / 1328*1776 / 2048*1152 / 1152*2048 · default "2048*2048" |
| output_format | jpeg / png · default "jpeg" |
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.