> ## 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.

# ImageGenerationProviderPreferencesOrder

## Supported Types

### ProviderName

```go theme={null}
imageGenerationProviderPreferencesOrder := components.CreateImageGenerationProviderPreferencesOrderProviderName(components.ProviderName{/* values here */})
```

###

```go theme={null}
imageGenerationProviderPreferencesOrder := components.CreateImageGenerationProviderPreferencesOrderStr(string{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go theme={null}
switch imageGenerationProviderPreferencesOrder.Type {
	case components.ImageGenerationProviderPreferencesOrderTypeProviderName:
		// imageGenerationProviderPreferencesOrder.ProviderName is populated
	case components.ImageGenerationProviderPreferencesOrderTypeStr:
		// imageGenerationProviderPreferencesOrder.Str is populated
}
```
