跳至正文
全部 API 文档

Seedream 5.5 API

账户和部署可用性

需要符合条件的旧版计费账户,并已配置对应服务商。美元扩展生成不包含此模型。

使用你的 API 密钥调用 GET /api/v1/models,查看账户可用的模型及选项。

请求字段

modelPreset
seedream-5-5
服务商
apimart
mode
text-to-image, image-to-image
aspectRatio
1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9
resolution
1k, 2k
referenceAssetIds
0 · 1–10
各分辨率的最大输出数量
1k → 1, 2k → 1
提示词长度上限
5000

文生图使用空的 referenceAssetIds 数组。图生图使用本账户下互不重复的素材 ID。没有有效会员的旧版计费账户仅可使用 1k,输出数量上限也可能更低。

参考图片限制 image/jpeg, image/png, image/webp · 15+ px · ≤ 36,000,000 px² · 0.0625–16.0 (W:H)

报价示例

将 REPLACE_WITH_* 替换为你的账户完成上传后返回的素材 ID,再将草稿发送到报价接口。 上传参考素材

text-to-image

curl --fail-with-body "$GAPTI_ORIGIN/api/v1/quotes" \
  -H "Authorization: Bearer $GAPTI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "draft": {
    "kind": "image",
    "modelPreset": "seedream-5-5",
    "mode": "text-to-image",
    "prompt": "Photograph a yellow ceramic mug on a pale blue background. Light it from the left.",
    "aspectRatio": "1:1",
    "resolution": "1k",
    "outputCount": 1,
    "toolId": null,
    "negativePrompt": "",
    "referenceAssetIds": [],
    "generationQuality": null,
    "seed": null,
    "imageSetMode": false
  }
}'
image-to-image
curl --fail-with-body "$GAPTI_ORIGIN/api/v1/quotes" \
  -H "Authorization: Bearer $GAPTI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "draft": {
    "kind": "image",
    "modelPreset": "seedream-5-5",
    "mode": "image-to-image",
    "prompt": "Keep the mug and change the background to warm gray.",
    "aspectRatio": "1:1",
    "resolution": "1k",
    "outputCount": 1,
    "toolId": null,
    "negativePrompt": "",
    "referenceAssetIds": [
      "REPLACE_WITH_FIRST_IMAGE_ASSET_ID"
    ],
    "generationQuality": null,
    "seed": null,
    "imageSetMode": false
  }
}'

提交与下载

将 normalizedDraft 作为 draft,并将完整报价作为 quoteAcknowledgement。提交前请确认返回的积分。

提交任务