> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # ImageConfig ## Supported Types ### ```go theme={null} imageConfig := components.CreateImageConfigStr(string{/* values here */}) ``` ### ```go theme={null} imageConfig := components.CreateImageConfigNumber(float64{/* values here */}) ``` ### ```go theme={null} imageConfig := components.CreateImageConfigArrayOfAny([]any{/* values here */}) ``` ## Union Discrimination Use the `Type` field to determine which variant is active, then access the corresponding field: ```go theme={null} switch imageConfig.Type { case components.ImageConfigTypeStr: // imageConfig.Str is populated case components.ImageConfigTypeNumber: // imageConfig.Number is populated case components.ImageConfigTypeArrayOfAny: // imageConfig.ArrayOfAny is populated } ```