- サードパーティ
Seedream 5 Pro は ByteDance の高品質な画像生成・編集モデルです。テキストプロンプト、最大 10 枚の参照画像、1K・2K またはピクセルサイズ指定の出力に対応します。
| モデル情報 | |
|---|---|
| 詳細情報 | リンク ↗ |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'bytedance/seedream-5-pro',
{
prompt:
'Premium studio product render of a transparent mechanical wristwatch suspended above matte black stone, visible gears, sapphire reflections, razor-sharp lighting, luxury advertising style',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedream-5-pro",
"input": {
"prompt": "Premium studio product render of a transparent mechanical wristwatch suspended above matte black stone, visible gears, sapphire reflections, razor-sharp lighting, luxury advertising style"
}
}'
{
"state": "Completed",
"result": {
"images": [
"https://examples.aig.cloudflare.com/bytedance/seedream-5-pro/mechanical-watch-0.jpeg"
]
},
"gatewayMetadata": {
"keySource": "Unified"
}
}レッサーパンダのベーカリー — かなり異なる視覚スタイルの、遊び心あるイラストシーンです。
const response = await env.AI.run(
'bytedance/seedream-5-pro',
{
prompt:
"A cozy children's book illustration of a red panda baker frosting moon-shaped cakes inside a tiny snowy mountain bakery, soft gouache texture, warm window light",
size: '1536x864',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedream-5-pro",
"input": {
"prompt": "A cozy children'\''s book illustration of a red panda baker frosting moon-shaped cakes inside a tiny snowy mountain bakery, soft gouache texture, warm window light",
"size": "1536x864"
}
}'
{
"state": "Completed",
"result": {
"images": [
"https://examples.aig.cloudflare.com/bytedance/seedream-5-pro/red-panda-bakery-0.jpeg"
]
},
"gatewayMetadata": {
"keySource": "Unified"
}
}クレイアニメ参照 — クレイアニメ風の変換に参照画像を使います。
const response = await env.AI.run(
'bytedance/seedream-5-pro',
{
image: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg',
prompt:
'Transform this reference into a handcrafted claymation diorama, rounded clay forms, visible fingerprints, miniature set lighting, playful stop-motion film look',
size: '1K',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedream-5-pro",
"input": {
"image": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg",
"prompt": "Transform this reference into a handcrafted claymation diorama, rounded clay forms, visible fingerprints, miniature set lighting, playful stop-motion film look",
"size": "1K"
}
}'
{
"state": "Completed",
"result": {
"images": [
"https://examples.aig.cloudflare.com/bytedance/seedream-5-pro/claymation-reference-0.jpeg"
]
},
"gatewayMetadata": {
"keySource": "Unified"
}
}prompt
string必須▶image
いずれかsize
string▶images[]
arrayminItems: 1format: uri