content.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "version": "1.0",
  3. "inputs": {
  4. "images": { "type": "STRING_ARRAY" }
  5. },
  6. "outputs": {
  7. "images": "$s5.files"
  8. },
  9. "order": ["s1", "s2", "s3", "s4","s5"],
  10. "s1": {
  11. "type": "file_download",
  12. "resources": "",
  13. "inputs": {
  14. "files": "$inputs.images"
  15. },
  16. "outputs": {
  17. "files": {
  18. "type": "STRING_ARRAY"
  19. }
  20. }
  21. },
  22. "s2": {
  23. "type": "base64_encode",
  24. "resources": "",
  25. "inputs": {
  26. "files": "$s1.files"
  27. },
  28. "outputs": {
  29. "files": {
  30. "type": "STRING_ARRAY"
  31. }
  32. }
  33. },
  34. "s3": {
  35. "type": "nano_banana",
  36. "resources": "",
  37. "inputs": {
  38. "contents": [{
  39. "parts": [{
  40. "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."
  41. }, {
  42. "inline_data": {
  43. "mime_type": "image/jpeg",
  44. "data": "$s2.files[0]"
  45. }
  46. }]
  47. }]
  48. },
  49. "outputs": {
  50. "images": {
  51. "type": "STRING_ARRAY"
  52. }
  53. }
  54. },
  55. "s4": {
  56. "type": "base64_decode",
  57. "resources": "",
  58. "inputs": {
  59. "files": "[ $s3.images[0] ]"
  60. },
  61. "outputs": {
  62. "files": {
  63. "type": "STRING_ARRAY"
  64. }
  65. }
  66. },
  67. "s5": {
  68. "type": "file_upload",
  69. "inputs": {
  70. "files": "$s4.files",
  71. "provider": "aliyun",
  72. "prefix": "0000",
  73. "date_folder": "yyyy-MM-dd"
  74. },
  75. "outputs": {
  76. "files": {
  77. "type": "STRING_ARRAY"
  78. }
  79. }
  80. }
  81. }