SuperAPI AI 工具集

garment-lifestyle-photography

设计与创作

查看项目

更新于 10-16 02:44

技能介绍

用途

该技能用于生成服装在真实生活场景中的生活方式摄影(lifestyle photography),即让模特在自然环境中穿着服装,产出具有向往感且贴近真实生活的时尚图像。适用于创建向往型时尚内容、社交媒体素材、编辑风格时尚摄影、广告活动,以及展示服装在日常场景中穿着效果的内容。

主要能力

  • 分析服装类型、风格、目标人群、品牌定位、场合与季节气候。
  • 选择生活方式场景,包括城市、休闲、运动、职业、社交五类。
  • 定义模特特征与造型方案,突出服装为主角。
  • 构建包含环境元素、模特姿态与摄影参数的完整场景。
  • 生成结构化的生活方式摄影提示词,涵盖场景与背景、模特、服装、造型、环境、摄影参数与情绪。
  • 提供 TypeScript 工具调用实现与 Claude 工具定义,支持程序化调用。

使用方式

技能以提示词模板为核心,按以下步骤操作:

  1. 分析服装与目标受众:提取服装类型与风格、目标人群、品牌定位、场合、季节气候。
  2. 选择生活方式场景:根据服装与受众选择城市、休闲、运动、职业或社交场景。
  3. 定义模特与造型:确定模特特征、造型方案与配饰。
  4. 构建场景:描述环境元素、模特位置与摄影方式。
  5. 构建提示词:按模板填入模特描述、服装、具体地点、场景与背景、造型、环境、摄影参数与情绪。

工具调用接口 generate_garment_lifestyle_photo 接受以下参数:

  • garment_image:服装产品图片 URL(必填)
  • garment_type:服装类型,如 sweater、blazer、jacket、dress(必填)
  • target_audience:目标受众对象,包含 age、gender、lifestyle(必填)
  • context:生活方式场景,可选 urban、casual、active、professional、social(必填)
  • time_of_day:一天中的时间,可选 morning、afternoon、evening、golden-hour(可选)

TypeScript 实现示例:

interface LifestylePhotoParams {
  garmentImage: string;
  garmentType: string;
  targetAudience: {
    age: string;
    gender: string;
    lifestyle: string;
  };
  context: 'urban' | 'casual' | 'active' | 'professional' | 'social';
  timeOfDay?: 'morning' | 'afternoon' | 'evening' | 'golden-hour';
}

async function generateLifestylePhoto(params: LifestylePhotoParams) {
  // 1. Analyze garment
  const garmentAnalysis = await analyzeGarment(params.garmentImage);
  
  // 2. Select appropriate lifestyle context
  const lifestyleContext = selectLifestyleContext(
    garmentAnalysis,
    params.targetAudience,
    params.context
  );
  
  // 3. Construct lifestyle prompt
  const prompt = constructLifestylePrompt({
    garment: garmentAnalysis,
    context: lifestyleContext,
    audience: params.targetAudience,
    timeOfDay: params.timeOfDay || 'afternoon'
  });
  
  // 4. Generate image
  const result = await imageGenTool({
    prompt: prompt,
    images: [{ url: params.garmentImage, name: 'Garment' }],
    aspectRatio: '2:3', // Portrait for lifestyle
    outputFormat: 'jpeg'
  });
  
  return result;
}

Claude 工具定义示例:

const garmentLifestylePhotoTool = {
  name: 'generate_garment_lifestyle_photo',
  description: 'Generate lifestyle fashion photography showing garments in real-world contexts with models in natural environments',
  input_schema: {
    type: 'object',
    properties: {
      garment_image: {
        type: 'string',
        description: 'URL of the garment product image'
      },
      garment_type: {
        type: 'string',
        description: 'Type of garment (e.g., sweater, blazer, jacket, dress)'
      },
      target_audience: {
        type: 'object',
        properties: {
          age: { type: 'string', description: 'Age range (e.g., 25-35)' },
          gender: { type: 'string', description: 'Target gender' },
          lifestyle: { type: 'string', description: 'Lifestyle category' }
        },
        required: ['age', 'gender', 'lifestyle']
      },
      context: {
        type: 'string',
        enum: ['urban', 'casual', 'active', 'professional', 'social'],
        description: 'Lifestyle context for the photography'
      },
      time_of_day: {
        type: 'string',
        enum: ['morning', 'afternoon', 'evening', 'golden-hour'],
        description: 'Time of day for natural lighting'
      }
    },
    required: ['garment_image', 'garment_type', 'target_audience', 'context']
  }
};

适用场景

  • 创建带模特的自然场景生活方式时尚摄影。
  • 生成展示服装在真实场景中穿着的向往型内容。
  • 制作具有真实感、贴近生活的社交媒体内容。
  • 为广告活动创建编辑风格时尚摄影。
  • 展示服装在日常场景中的穿着效果。
  • 生成围绕产品讲述生活方式故事的内容。

限制

  • 资料未提供具体支持的图像生成模型、平台或服务。
  • 资料未提供收费、价格或授权信息。
  • 资料未提供实际生成效果、分辨率保证或性能数据。
  • 资料未提供安装命令或依赖安装步骤。
  • 资料未提供 API 端点、认证方式或部署要求。
  • 资料未提供对生成图像版权或商用许可的说明。