> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AnthropicImageBlockParamSource - Go SDK

> AnthropicImageBlockParamSource type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

## Supported Types

### AnthropicBase64ImageSource

```go lines theme={null}
anthropicImageBlockParamSource := components.CreateAnthropicImageBlockParamSourceBase64(components.AnthropicBase64ImageSource{/* values here */})
```

### AnthropicURLImageSource

```go lines theme={null}
anthropicImageBlockParamSource := components.CreateAnthropicImageBlockParamSourceURLObj(components.AnthropicURLImageSource{/* values here */})
```

## Union Discrimination

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

```go lines theme={null}
switch anthropicImageBlockParamSource.Type {
	case components.AnthropicImageBlockParamSourceTypeBase64:
		// anthropicImageBlockParamSource.AnthropicBase64ImageSource is populated
	case components.AnthropicImageBlockParamSourceTypeURLObj:
		// anthropicImageBlockParamSource.AnthropicURLImageSource is populated
}
```
