
字节跳动图像
Seedream 4.0
Seedream 4.0 是 字节跳动 提供的图像生成模型。通过 AITREE 的 /v1/images/generations 接口调用,返回图片链接,按实际用量计费。
价格
每次请求$0.029每次
价格以美元计,按实际用量从余额扣除。充值达到档位另有赠送。
$100+ · +3%$200+ · +5%$500+ · +8%$1000+ · +10%
API 调用
- 接口地址
- https://aitree.ai/v1
- 认证方式
- 请求头 Authorization: Bearer <你的 API Key>
curl https://aitree.ai/v1/images/generations \
-H "Authorization: Bearer $AITREE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-4-0-250828",
"prompt": "a glowing compute tree at night, cinematic",
"size": "1024x1024"
}'参数
| 参数 | 类型 | 说明 |
|---|---|---|
| model | string | 模型 ID,填写 doubao-seedream-4-0-250828 |
| prompt | string | 描述画面或镜头内容的提示词 |
| size | string | 输出尺寸,例如 1024x1024 |
| n | integer | 生成数量 |