# Function ImageGenerator

- ImageGenerator(
  settings?: TImageGeneratorSettings,
  agent?: Agent,
  ): {
  in: (inputs: TImageGeneratorInputs) => void;
  out: TImageGeneratorOutputs;
  }

  #### Parameters

  - `Optional` settings: TImageGeneratorSettings
  - `Optional` agent: Agent

  #### Returns { in: (inputs: TImageGeneratorInputs) => void; out: TImageGeneratorOutputs }

  - ##### in: (inputs: TImageGeneratorInputs) => void

    Create or Connect the component inputs if the input does not exist, it will be created

    #### Examples

    - component.in({ Input: source.out.data })
      - component.in({ Input: { type: 'string', source:source.out.data } })

  - ##### out: TImageGeneratorOutputs

    Component outputs - access via .out.OutputName

  - Defined in src/Components/generated/ImageGenerator.ts:39