API介绍
生成不同风格的自拍头像
API调试台
登录后,探索更多精彩功能! 点击登录
API列表 (2)
| API描述 | 接口地址 | 请求方法 | 稳定性 | 参数说明 | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
生成头像(json传参示例) | POST | 稳定 | 查看详情 | |||||||||||||||||||||||||||||||||||||
文档详情 价格:优化提示词产生的token+头像接口费用( 请求参数 application/json Note: 用户自定义提示词的优先级大于预设风格,如果custom_prompt参数非空, style参数无效 预设风格列表(接口传参请输入对应的id):
请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 application/jsonimagestring必需 支持公网可以访问的图片链接或者data:image开头的base64图片 styleinteger可选 具体列表见接口文档说明 person_typeenum<string>必需 枚举值: femalemalekidcustom_promptstring可选 这个字段有值的话, style参数不生效 widthinteger可选 不在范围内的值视为1024 heightinteger可选 不在范围内的值视为1024 modelstring可选 | ||||||||||||||||||||||||||||||||||||||||
生成头像(form-data传参示例) | POST | 稳定 | 查看详情 | |||||||||||||||||||||||||||||||||||||
文档详情 价格:优化提示词产生的token+头像接口费用( 请求参数 application/json Note: 用户自定义提示词的优先级大于预设风格,如果custom_prompt参数非空, style参数无效 预设风格列表(接口传参请输入对应的id):
请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 stylestring可选 预设的头像风格id,具体列表见接口文档说明 示例值: 1person_typeenum<string>必需 人物类型 枚举值: femalemalekidcustom_promptstring可选 用户自定义的风格提示词, 这个字段有值的话, style参数不生效 widthinteger可选 头像宽度, 不在范围内的值视为1024 示例值: 1024heightinteger可选 头像高度, 不在范围内的值视为1024 示例值: 768modelstring可选 优化生成头像描述词使用的语言模型 | ||||||||||||||||||||||||||||||||||||||||
API价格表
$¥ 円 ₽
| 模型 | 说明 | 302.AI价格 |
|---|
生成头像 | json传参示例 |
优化提示词产生的token+头像接口费用 |
生成头像 | form-data传参示例 |
优化提示词产生的token+头像接口费用 |
