功能
Grok Imagine Video 文生影片 API
結果
閒置
結果將顯示在此處
費用: $0.07/秒
Grok Imagine Video API 實作指南
1
2
3
Grok Imagine Video API 文件
請先在演練場執行,再開啟完整 API 文件查看整合細節。
簡介
根據文字提示生成影片
程式碼範例
request.sh
1curl -X POST https://api.modelhunter.ai/api/v1/grok/text-to-video \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "grok-imagine/text-to-video",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"duration": "6",9"resolution": "720p"10}11}'
Schema
查看完整 API 文件輸入
modelstring
必填
此能力對應的模型 ID。
值: grok-imagine/text-to-video
promptstring
必填
描述你想生成的影片內容
durationstring
影片長度(秒)
選項: 6, 10, 15
預設值: 6
resolutionstring
輸出解析度
選項: 480p, 720p
預設值: 720p
aspect_ratiostring
輸出長寬比
選項: 16:9, 9:16, 1:1, 3:2, 2:3
預設值: 16:9
modestring
生成風格預設
選項: normal, fun, spicy
預設值: normal
webhookUrlstring
任務完成時接收 Webhook 通知的 URL。
metadataobject
附加到任務上用於追蹤的自訂鍵值中繼資料。
回應 (HTTP 202)
successboolean
請求是否已成功受理。
data.idstring
唯一任務 ID,可輪詢 GET /api/v1/tasks/{id} 取得結果。
data.statusstring
任務狀態: pending, processing, completed, failed.
data.typestring
生成類型: text-to-video.
data.providerstring
供應商: grok.
data.modelstring
本次生成使用的模型 ID。
data.created_atstring
任務建立時間(ISO 8601)。
data.estimated_secondsnumber
任務完成前的預估秒數。