> ## 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. # ImageGenerationProviderPreferencesOnly ## Supported Types ### ProviderName ```go theme={null} imageGenerationProviderPreferencesOnly := components.CreateImageGenerationProviderPreferencesOnlyProviderName(components.ProviderName{/* values here */}) ``` ### ```go theme={null} imageGenerationProviderPreferencesOnly := components.CreateImageGenerationProviderPreferencesOnlyStr(string{/* values here */}) ``` ## Union Discrimination Use the `Type` field to determine which variant is active, then access the corresponding field: ```go theme={null} switch imageGenerationProviderPreferencesOnly.Type { case components.ImageGenerationProviderPreferencesOnlyTypeProviderName: // imageGenerationProviderPreferencesOnly.ProviderName is populated case components.ImageGenerationProviderPreferencesOnlyTypeStr: // imageGenerationProviderPreferencesOnly.Str is populated } ```