跳转到内容

Bria Product Shot

集成

模型 id bria/product-shot
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/product-shot?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此请求: $0.04 40 API 积分 在此页面运行

获取 API 密钥
Bria AI · 图像

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填 image_url
拖放文件,或

用于放置到生活方式场景中的产品照片 URL;图像必须为 jpeg、jpg、png、webp,且不超过 12 MB。如果同时提供 `image_file`,则优先使用 `image_url`。

默认 1

每个放置位置的生活方式产品图像数量(`num_results`)。总数为所需放置位置数 × `num_results`(当 `placement_type=manual_placement` 时),或 `num_results` × 10(当 `placement_type=automatic` 时)。

高级 ref_image_url · placement_type · scene_description · manual_placement_selection · optimize_description · fast · original_quality · shot_size · padding_values
默认
拖放文件,或

用于生成产品图新背景或场景的参考图像 URL,支持 jpeg、jpg、png 和 webp。必须在 `scene_description` 或 `ref_image_url` 中恰好提供一个;空 URL 写作 ""。如果同时提供 `ref_image_file`,则优先使用 `ref_image_url`。

placement_type 默认 manual_placement

产品定位模式,包含两种手动选项:'manual_placement' 使用通过 'manual_placement_selection' 选择的预定义位置,而 'manual_padding' 通过产品周围的像素留白调整图像位置和大小。要保留源位置,请选择 'original';要在 10 个推荐产品位置上生成结果,请选择 'automatic'。

仅限英文且不含特殊字符的提示词,用于描述要为所提供产品照片创建的场景或背景。

默认 bottom_center

选择 placement_type=manual_placement 时使用的预设位置。请从列表中选择;可以同时请求多个位置。

默认 [1000,1000]

最终产品图像的目标尺寸,仅适用于 placement_type=automatic 或 placement_type=manual_placement。为获得最佳结果,整体像素数应接近 1,000,000。

`placement_type=manual_padding` 的像素留白,以 [left, right, top, bottom] 提供。要确定这些值,请先使用产品抠图 API 获取产品抠图并检查其尺寸,然后将该抠图及所需留白传递给此 API。为获得最佳结果,留白后的总像素数应约为 1,000,000。

POST /run/bria/product-shot?wait=20 报价 → $0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/product-shot?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Bria Product Shot

将 `image_url` 中的产品放入由 `scene_description` 描述或由 `ref_image_url` 展示的场景中,但不能同时使用二者。`placement_type` 可选 original、automatic、manual_placement 或 manual_padding,`manual_placement_selection` 提供十个位置,`shot_size` 约为 1,000,000 像素。`num_results` 范围为 1 到 4,并提供 `fast` 模式。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
image_url必填 image
类型url · image
用于放置到生活方式场景中的产品照片 URL;图像必须为 jpeg、jpg、png、webp,且不超过 12 MB。如果同时提供 `image_file`,则优先使用 `image_url`。
scene_description可选
类型string | null
仅限英文且不含特殊字符的提示词,用于描述要为所提供产品照片创建的场景或背景。
ref_image_url可选
类型url · image
默认值
用于生成产品图新背景或场景的参考图像 URL,支持 jpeg、jpg、png 和 webp。必须在 `scene_description` 或 `ref_image_url` 中恰好提供一个;空 URL 写作 ""。如果同时提供 `ref_image_file`,则优先使用 `ref_image_url`。
optimize_description可选
类型boolean
默认值true
是否启用场景描述优化。
num_results可选
类型integer
默认值1
1 – 4
每个放置位置的生活方式产品图像数量(`num_results`)。总数为所需放置位置数 × `num_results`(当 `placement_type=manual_placement` 时),或 `num_results` × 10(当 `placement_type=automatic` 时)。
fast可选
类型boolean
默认值true
控制是否选择快速模型。
placement_type可选
类型enum
默认值manual_placement
originalautomaticmanual_placementmanual_padding
产品定位模式,包含两种手动选项:'manual_placement' 使用通过 'manual_placement_selection' 选择的预定义位置,而 'manual_padding' 通过产品周围的像素留白调整图像位置和大小。要保留源位置,请选择 'original';要在 10 个推荐产品位置上生成结果,请选择 'automatic'。
original_quality可选
类型boolean
默认值false
仅与 `placement_type=original` 搭配使用的输出尺寸选项:false 会在不改变宽高比的情况下将图像缩放到 1 百万像素(1MP),true 则保留输入尺寸。
shot_size可选
类型integer[]
默认值[1000,1000]
最终产品图像的目标尺寸,仅适用于 placement_type=automatic 或 placement_type=manual_placement。为获得最佳结果,整体像素数应接近 1,000,000。
manual_placement_selection可选
类型enum
默认值bottom_center
upper_leftupper_rightbottom_leftbottom_rightright_centerleft_centerupper_centerbottom_centercenter_verticalcenter_horizontal
选择 placement_type=manual_placement 时使用的预设位置。请从列表中选择;可以同时请求多个位置。
padding_values可选
类型integer[]
`placement_type=manual_padding` 的像素留白,以 [left, right, top, bottom] 提供。要确定这些值,请先使用产品抠图 API 获取产品抠图并检查其尺寸,然后将该抠图及所需留白传递给此 API。为获得最佳结果,留白后的总像素数应约为 1,000,000。
必填 规范名称,也可接受

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/product-shot",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
images
array of object {url, content_type, file_name, file_size, width, height}模型生成的图像。

更多模型:图像编辑

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/bria/product-shot.md. 所有模型和指南: https://doitong.com/developers/llms.txt