อินพุตสคีมาจริง
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
Run the form on the left. Results, polling status and cURL appear under the form.
This model is priced by the usage dimensions listed here. เปรียบเทียบราคาทั้งหมด.
List prices in USD. Your effective price also depends on the billing group attached to your API key.
veo-3.1-fastveo-3.1-fastveo-3.1-fastveo-3.1-fastveo-3.1-fastveo-3.1-fast/v1/jobsconst BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;
const headers = {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
};
const payload = {
"model": "veo-3.1-fast",
"input": {
"prompt": "一段自然纪录片风格的雪山航拍镜头",
"image": "https://example.com/image.png",
"lastframe": [
"https://example.com/ref.png"
],
"referenceImages": [
"https://example.com/ref.png"
],
"video": [
"https://example.com/ref.mp4"
],
"aspectratio": "16:9,9:16",
"resolution": "720p,1080p,4k",
"generate_audio": false,
"negative_prompt": "低清晰度、闪烁、变形",
"durationseconds": "4,6,8"
}
};
const submit = await fetch(`${BASE_URL}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify(payload),
}).then((r) => r.json());
const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
.then((r) => r.json());
console.log(status);
Create a key in Console → API Keys and replace the placeholder in the sample.
README
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
promptstring | จำเป็น | คำอธิบายข้อความของสิ่งที่ต้องการสร้าง |
aspectratiostring | จำเป็น | 画幅比例 ค่าเริ่มต้น: 16:9. |
resolutionstring | จำเป็น | ความละเอียดของผลลัพธ์ ค่าเริ่มต้น: 720p. |
durationsecondsstring | จำเป็น | 时长 ค่าเริ่มต้น: 4. |
imageimage | ไม่บังคับ | ภาพอ้างอิงเพื่อกำหนดทิศทางผลลัพธ์ |
lastframeimage | ไม่บังคับ | 参考图 URL |
referenceImagesstring | ไม่บังคับ | 参考图 URL |
videovideo | ไม่บังคับ | 参考视频 URL |
generate_audioboolean | ไม่บังคับ | สร้างเสียงที่ซิงก์กับวิดีโอ |
negative_promptstring | ไม่บังคับ | สิ่งที่ไม่ต้องการให้มีในผลลัพธ์ |
เขียนพรอมต์เหมือนรายการช็อต ยิ่งกำกับละเอียด โมเดลยิ่งทำได้ดี
เริ่มด้วยวัตถุ สถานที่ การกระทำ สไตล์ และกล้องในประโยคเดียว
นักปั่นจักรยานขี่ไปบนถนนในป่าที่มีหมอกยามรุ่งเช้า สไตล์ภาพยนตร์ แทร็กกิ้งช็อตด้านข้างช้า ๆ
แบ่งคลิปเป็นช่วงเวลา เช่น 0–3 วินาที และ 3–6 วินาที แต่ละช่วงให้มีการกระทำที่ชัดเจนเพียงหนึ่งอย่าง
ใช้ขนาดช็อต (ไวด์ มีเดียม โคลสอัป) และการเคลื่อนกล้อง (ดันเข้า แพน โคจร ถือกล้อง) ได้โดยตรง
ปิดท้ายด้วยสิ่งที่คงที่ตลอดคลิป: แสง โทนสี อารมณ์ และเสียง
| พรอมต์ | |
|---|---|
| อ่อน | สุนัขกำลังวิ่ง |
| ดี | โกลเดนรีทรีฟเวอร์วิ่งเต็มฝีเท้าบนชายหาดเปียกยามพระอาทิตย์ตก ไล่ตามลูกบอลสีแดง 0–2 วินาที: แทร็กกิ้งช็อตมุมต่ำข้างสุนัข ทรายกระจาย 2–5 วินาที: คาบลูกบอลแล้วหันมาทางกล้อง ดันกล้องเข้าช้า ๆ แสงย้อนอุ่น ละอองทะเลบาง ๆ ระยะชัดตื้น มีเพียงเสียงคลื่น |
| รายการคิดเงิน | ราคา | ราคาทางการ |
|---|---|---|
| 4 - 720p | $0.32 ต่อคำขอ | |
| 6 - 720p | $0.48 ต่อคำขอ | |
| 8 - 720p | $0.64 ต่อคำขอ | |
| 4 - 1080p | $0.384 ต่อคำขอ | |
| 6 - 1080p | $0.576 ต่อคำขอ | |
| 8 - 1080p | $0.768 ต่อคำขอ |
ถูกกว่าราคาทางการ 20%
ตัวอย่าง: รัน 10 ครั้งด้วย 4 - 720p มีค่าใช้จ่าย $3.20
List prices in USD. Your effective price also depends on the billing group attached to your API key. เปรียบเทียบราคาทั้งหมด
gemini-3-1-flash-lite-imagegemini-3-1-flash-imagenano-banana-2nano-banana-proดูโมเดลวิดีโอทั้งหมดเรียกดู API Market
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。
ส่ง POST /v1/jobs พร้อม ID โมเดล veo-3.1-fast และ API คีย์ของคุณ ตัวอย่างพร้อมรันอยู่ในส่วน API ด้านบน
Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.
Create one in Console → API Keys. The same key works for every model on the gateway.
ได้ คุณนำสิ่งที่สร้างไปใช้ในโปรเจกต์เชิงพาณิชย์ได้ ภายใต้ข้อกำหนดของผู้ให้บริการโมเดล
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。