| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {
- "version": "1.0",
- "inputs": {
- "images": { "type": "STRING_ARRAY" }
- },
- "outputs": {
- "images": "$s5.files"
- },
- "order": ["s1", "s2", "s3", "s4","s5"],
- "s1": {
- "type": "file_download",
- "resources": "",
- "inputs": {
- "files": "$inputs.images"
- },
- "outputs": {
- "files": {
- "type": "STRING_ARRAY"
- }
- }
- },
- "s2": {
- "type": "base64_encode",
- "resources": "",
- "inputs": {
- "files": "$s1.files"
- },
- "outputs": {
- "files": {
- "type": "STRING_ARRAY"
- }
- }
- },
- "s3": {
- "type": "nano_banana",
- "resources": "",
- "inputs": {
- "contents": [{
- "parts": [{
- "text": "Using the uploaded face image as reference, generate an ultra-realistic winter candid portrait that matches the provided reference scene as closely as possible. Do not change identity, facial structure, skin tone, or age. Scene: outdoors in fresh snow under a pale, overcast winter sky, minimal background (mostly soft icy blue-white). Subject: lying on the snow and photographed from above in a close-up, filling most of the frame. Expression: genuine joyful laughter, eyes closed, wide natural smile showing teeth, cheeks slightly flushed from cold. Hair: hair slightly messy and wind-tossed, a few strands across the face, small snowflakes caught in hair. Outfit: thick oversized gray wool scarf wrapped around the neck and lower face with visible knit texture, plus a cream/ivory teddy shearling jacket with rich curly fleece texture. Atmosphere: light snow falling with visible snow specks on scarf and hair, crisp cold air feeling. Lighting: soft diffused overcast daylight, natural skin texture, realistic pores, gentle contrast, cool neutral color grade, no beauty filter, no heavy retouching, premium photoreal detail."
- }, {
- "inline_data": {
- "mime_type": "image/jpeg",
- "data": "$s2.files[0]"
- }
- }]
- }]
- },
- "outputs": {
- "images": {
- "type": "STRING_ARRAY"
- }
- }
- },
- "s4": {
- "type": "base64_decode",
- "resources": "",
- "inputs": {
- "files": "[ $s3.images[0] ]"
- },
- "outputs": {
- "files": {
- "type": "STRING_ARRAY"
- }
- }
- },
- "s5": {
- "type": "file_upload",
- "inputs": {
- "files": "$s4.files",
- "provider": "aliyun",
- "prefix": "0000",
- "date_folder": "yyyy-MM-dd"
- },
- "outputs": {
- "files": {
- "type": "STRING_ARRAY"
- }
- }
- }
- }
-
|