Seedream 3.0 文生圖 API
描述圖片內容(最多 300 個中文字或 600 個英文單字)
Output image size preset, or use width/height for custom. Range: 648x648 to 2048x2048, 64-aligned
遵循提示詞的緊密程度 (1-10)
結果
結果將顯示在此處
費用: $0.03/張圖片
Seedream 3.0 API 實作指南
Seedream 3.0 關鍵資訊
Seedream 3.0 API 文件
請先在演練場執行,再開啟完整 API 文件查看整合細節。
簡介
具備高性價比的文字生成圖片功能,支援種子值 (Seed) 與引導係數 (Guidance) 控制
程式碼範例
1curl -X POST https://api.modelhunter.ai/api/v1/seedream/text-to-image \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "seedream-3-0-t2i",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"size": "1024x1024"9}10}'
Schema
查看完整 API 文件輸入
model此能力對應的模型 ID。
值: seedream-3-0-t2i
prompt描述圖片內容(最多 300 個中文字或 600 個英文單字)
sizeOutput image size preset, or use width/height for custom. Range: 648x648 to 2048x2048, 64-aligned
選項: 1024x1024, 1152x864, 864x1152, 1280x720, 720x1280, 1248x832, 832x1248, 1512x648
預設值: 1024x1024
widthCustom width in pixels (alternative to size). Range: 648-2048, 64-aligned
範圍: 648 到 2048
heightCustom height in pixels (alternative to size). Range: 648-2048, 64-aligned
範圍: 648 到 2048
guidance_scale遵循提示詞的緊密程度 (1-10)
預設值: 7
範圍: 1 到 10
seed用於重現結果的隨機種子值。輸入 -1 代表隨機
預設值: -1
範圍: -1 到 2147483647
watermark浮水印
預設值: true
response_format回應格式
選項: url
預設值: url
webhookUrl任務完成時接收 Webhook 通知的 URL。
metadata附加到任務上用於追蹤的自訂鍵值中繼資料。
回應 (HTTP 202)
success請求是否已成功受理。
data.id唯一任務 ID,可輪詢 GET /api/v1/tasks/{id} 取得結果。
data.status任務狀態: pending, processing, completed, failed.
data.type生成類型: text-to-image.
data.provider供應商: seedream.
data.model本次生成使用的模型 ID。
data.created_at任務建立時間(ISO 8601)。
data.estimated_seconds任務完成前的預估秒數。