public class SubmitDrawPortraitJobRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SubmitDrawPortraitJobRequest() |
SubmitDrawPortraitJobRequest(SubmitDrawPortraitJobRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefinition()
Get 清晰度,支持以下选项:
sd:基础版,分辨率512:640
hd:高清畅享版,分辨率1024:1280
hdpro:高清优享版,分辨率1024:1280(推荐)
uhd:超清版,分辨率2048:2560
不填默认为sd。
|
Long |
getImageNum()
Get 本次生成的图片数量,取值范围[1,4]
|
Long |
getLogoAdd()
Get 为生成结果图添加标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图是 AI 生成的图片。
|
LogoParam |
getLogoParam()
Get 标识内容设置。
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
String |
getModelId()
Get 写真模型 ID。
|
String |
getStyleId()
Get 写真风格模板。
请在[ AI 写真风格列表](https://cloud.tencent.com/document/product/1668/105740) 中选择期望的风格,传入风格编号。
|
void |
setDefinition(String Definition)
Set 清晰度,支持以下选项:
sd:基础版,分辨率512:640
hd:高清畅享版,分辨率1024:1280
hdpro:高清优享版,分辨率1024:1280(推荐)
uhd:超清版,分辨率2048:2560
不填默认为sd。
|
void |
setImageNum(Long ImageNum)
Set 本次生成的图片数量,取值范围[1,4]
|
void |
setLogoAdd(Long LogoAdd)
Set 为生成结果图添加标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图是 AI 生成的图片。
|
void |
setLogoParam(LogoParam LogoParam)
Set 标识内容设置。
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
void |
setModelId(String ModelId)
Set 写真模型 ID。
|
void |
setStyleId(String StyleId)
Set 写真风格模板。
请在[ AI 写真风格列表](https://cloud.tencent.com/document/product/1668/105740) 中选择期望的风格,传入风格编号。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SubmitDrawPortraitJobRequest()
public SubmitDrawPortraitJobRequest(SubmitDrawPortraitJobRequest source)
public String getModelId()
public void setModelId(String ModelId)
ModelId
- 写真模型 ID。public String getStyleId()
public void setStyleId(String StyleId)
StyleId
- 写真风格模板。
请在[ AI 写真风格列表](https://cloud.tencent.com/document/product/1668/105740) 中选择期望的风格,传入风格编号。public Long getImageNum()
public void setImageNum(Long ImageNum)
ImageNum
- 本次生成的图片数量,取值范围[1,4]public Long getLogoAdd()
public void setLogoAdd(Long LogoAdd)
LogoAdd
- 为生成结果图添加标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图是 AI 生成的图片。public LogoParam getLogoParam()
public void setLogoParam(LogoParam LogoParam)
LogoParam
- 标识内容设置。
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。public String getDefinition()
public void setDefinition(String Definition)
Definition
- 清晰度,支持以下选项:
sd:基础版,分辨率512:640
hd:高清畅享版,分辨率1024:1280
hdpro:高清优享版,分辨率1024:1280(推荐)
uhd:超清版,分辨率2048:2560
不填默认为sd。Copyright © 2024. All rights reserved.