ImageGenTool interface
一個利用 GPT 影像模型生成影像的工具。
- Extends
屬性
| background | 所產生影像的背景類型。
|
| input_fidelity | |
| input_image_mask | 選擇性遮罩以進行貼圖。 包含 |
| model | |
| moderation | 生成影像的審核層級。 預設值: |
| output_compression | 輸出影像的壓縮層級。 預設值 = 100。 |
| output_format | 產生的影像輸出格式。
|
| partial_images | 在串流模式中產生的部分影像數目,從 0(預設值)到 3。 |
| quality | 產生的影像品質。
|
| size | 產生的影像大小。
|
| type | 影像產生工具的類型。 一律為 |
屬性詳細資料
background
所產生影像的背景類型。
transparent、opaque 或 auto 的其中之一。 預設值:auto。
background?: "auto" | "transparent" | "opaque"
屬性值
"auto" | "transparent" | "opaque"
input_fidelity
input_image_mask
選擇性遮罩以進行貼圖。 包含 image_url (字串,選擇性) 和 file_id (字串,選擇性)。
input_image_mask?: ImageGenToolInputImageMask
屬性值
model
model?: "gpt-image-1" | "gpt-image-1-mini"
屬性值
"gpt-image-1" | "gpt-image-1-mini"
moderation
生成影像的審核層級。 預設值:auto。
moderation?: "auto" | "low"
屬性值
"auto" | "low"
output_compression
輸出影像的壓縮層級。 預設值 = 100。
output_compression?: number
屬性值
number
output_format
產生的影像輸出格式。
png、webp 或 jpeg 的其中之一。 預設值:png。
output_format?: "png" | "webp" | "jpeg"
屬性值
"png" | "webp" | "jpeg"
partial_images
在串流模式中產生的部分影像數目,從 0(預設值)到 3。
partial_images?: number
屬性值
number
quality
產生的影像品質。
low、medium、high 或 auto 的其中之一。。 預設值:auto。
quality?: "auto" | "low" | "medium" | "high"
屬性值
"auto" | "low" | "medium" | "high"
size
產生的影像大小。
1024x1024、1024x1536、1536x1024 或 auto 的其中之一。。 預設值:auto。
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024"
屬性值
"auto" | "1024x1024" | "1024x1536" | "1536x1024"
type
影像產生工具的類型。 一律為 image_generation。
type: "image_generation"
屬性值
"image_generation"