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

# CreateImagesResponse

## Supported Types

### ImageGenerationResponse

```go theme={null}
createImagesResponse := operations.CreateCreateImagesResponseImageGenerationResponse(components.ImageGenerationResponse{/* values here */})
```

###

```go theme={null}
createImagesResponse := operations.CreateCreateImagesResponseEventStream(*stream.EventStream[components.ImageStreamingResponse]{/* values here */})
```

## Union Discrimination

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

```go theme={null}
switch createImagesResponse.Type {
	case operations.CreateImagesResponseTypeImageGenerationResponse:
		// createImagesResponse.ImageGenerationResponse is populated
	case operations.CreateImagesResponseTypeEventStream:
		// createImagesResponse.EventStream is populated
}
```
