Skip to main content
POST
generate image
MCP tool: podcast_generate_image. OAuth scope: podcast.generate.

Authorizations

X-Api-Key
string
header
required

Headers

Idempotency-Key
string

Replay a completed identical request without repeating side effects.

Maximum string length: 128

Body

application/json

请求体

number_of_images
integer
required

生成图片张数 1-4

age
string

年纪

aspect_ratio
integer

宽高比 0:9比16/1:16比9/2:1比1;podcast_cover 额外支持 3:3比4/4:4比3

avatar_library_id
integer

avatar_library 表ID

avatar_type
enum<string>

数字人类型,可选,不传默认 default;支持 default/pet/cartoon

Available options:
default,
pet,
cartoon
background
string

提示词,长度上限1500英文字符

base_photo_url
string

基础图片(向后兼容,建议使用 reference_images)

detail
string

生图提示词,最多16000个Unicode字符

Maximum string length: 16000
gender
string

性别

lora_unique_id
string

lora 模型 id

model
integer

模型: 1:modern-flair/2:timeless-charm

origin
string

人种

photo_real
boolean

真实感开关:true-开启;false-关闭

podcastTyp
integer

对话数字人类型 0:默认值,非对话数字人/1:左/2:右

podcastVersion
integer

podcast版本 目前有效值为 10 和 20

preset_style
string

风格

quality
string

生图质量 medium/high,仅 gpt-image2 使用

reference_images
object[]

参考图列表

remix_avatar_unique_id
string

remix ugcAvatar 表的 uniqueId

resolution
string

生图分辨率 1K/2K/4K

seed
integer

随机种子

source
enum<string>

来源,目前支持 podcast/background/image/podcast_background/podcast_cover

Available options:
podcast,
background,
image,
podcast_background,
podcast_cover
talking_pose
string

提示词,长度上限1500英文字符

task_from
integer

任务来源:1-aigc;3-packs;99-代表工具生成,无需扣费和队列限制

typ
enum<integer>

Podcast 背景分类;source=podcast_background 时必填,0:Speaker Focus/2:Alternating shots

Available options:
0,
2

Response

200 - application/json

OK

cause
string
code
integer
data
object
details
any
msg
string
rid
string