transparent requires an output_format that supports alpha (png or webp).
ImageGenerationRequestBackground
Background treatment.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
transparent requires an output_format that supports alpha (png or webp).
import (
"github.com/OpenRouterTeam/go-sdk/models/components"
)
value := components.ImageGenerationRequestBackgroundAuto
// Open enum: custom values can be created with a direct type cast
custom := components.ImageGenerationRequestBackground("custom_value")
| Name | Value |
|---|---|
ImageGenerationRequestBackgroundAuto | auto |
ImageGenerationRequestBackgroundTransparent | transparent |
ImageGenerationRequestBackgroundOpaque | opaque |