1 / 6
typescript経由
interface ImageDescription { scene: string; elements: { character: { hairColor: string; hairStyle: string; eyeColor: string; expression: string; accessories: string[]; clothing: { type: string; color: string; accessories: string[]; }; }; vehicle: { type: string; color: string; condition: string; }; background: { setting: string; lighting: string; visibleFeatures: string[]; }; additionalItems: { type: string; color: string; }[]; }[]; } const imageDescription: ImageDescription = { scene: \"cityscape\", elements: [ { character: { hairColor: \"brown\", hairStyle: \"long and flowing with a cap\", eyeColor: \"hidden by hair (mekakure)\", expression: \"neutral\", accessories: [\"black cap\", \"bracelet\"], clothing: { type: \"leather jacket and denim shorts\", color: \"black and blue\", accessories: [\"patches on jacket\", \"black boots\"] } } }, { vehicle: { type: \"motorcycle\", color: \"black\", condition: \"worn and rugged\" } }, { background: { setting: \"futuristic city with tall skyscrapers\", lighting: \"daytime\", visibleFeatures: [\"modern buildings\", \"skyline\"] } }, { additionalItems: [ { type: \"coffee cup\", color: \"white with brown lid\" } ] } ] };