ข้ามไปยังเนื้อหา

Video Prompt Generator

ผสานการทำงาน

ID โมเดล video-prompt-generator
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/video-prompt-generator?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

คำขอนี้: $0.001 1 เครดิต API เรียกใช้ในหน้านี้

รับคีย์ API
Utility LLM #motion#transformation#chat#claude

เขียนพรอมต์สำหรับสร้างวิดีโอจากแนวคิด พร้อมตัวเลือกกล้อง จังหวะ และเอฟเฟกต์

Utility · ข้อมูล (JSON)

ผลลัพธ์แรกของคุณจะแสดงที่นี่

สร้างคำขอด้านล่างและเรียกใช้ด้วยคีย์ API ของคุณ เอาต์พุตจะถูกคัดลอกไปยังพื้นที่จัดเก็บของเรา และเก็บไว้ตลอดไปหรือฟรี 7 วัน

สร้างคำขอ

ตัวควบคุมสร้างจากสคีมาของโมเดล โค้ดและราคาจะอัปเดตเมื่อคุณเปลี่ยนค่า

image_url
วางไฟล์ หรือ

รูปภาพเสริมที่ระบุด้วย URL โดยเนื้อหาที่วิเคราะห์แล้วจะกลายเป็นส่วนหนึ่งของพรอมต์วิดีโอ

•จำเป็น

แนวคิดหลักหรือธีมที่ใช้สร้างพรอมต์วิดีโอ

ขั้นสูง prompt_length · style · camera_style · camera_direction · pacing · special_effects · custom_elements · model
prompt_length ค่าเริ่มต้น Medium

ความยาวพรอมต์ที่ต้องการ

ค่าเริ่มต้น Simple

สไตล์ที่ใช้กับพรอมต์วิดีโอ

ค่าเริ่มต้น None

สไตล์การเคลื่อนที่ของกล้อง

ค่าเริ่มต้น None

ทิศทางการเคลื่อนกล้อง

ค่าเริ่มต้น None

จังหวะของการดำเนินเรื่อง

ค่าเริ่มต้น None

แนวทางที่ใช้สำหรับเอฟเฟกต์พิเศษ

ค่าเริ่มต้น

รายละเอียดทางเทคนิคที่กำหนดเอง (ไม่บังคับ)

ค่าเริ่มต้น google/gemini-2.5-fla...

โมเดลที่เลือกใช้

POST /run/video-prompt-generator?wait=20 ใบเสนอราคา → $0.001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/video-prompt-generator?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

เรียกใช้คำขอนี้

คีย์ของคุณจะอยู่ในเบราว์เซอร์นี้ โดยส่งไปยัง Doitong API เท่านั้น และจะบันทึกใน localStorage ก็ต่อเมื่อคุณเลือกจดจำ รับคีย์ API

เกี่ยวกับ Video Prompt Generator

รับ `input_concept` และสร้างพรอมต์โดยใช้ `style`, `camera_style`, `camera_direction`, `pacing` และ `special_effects` ที่เลือกไว้ คุณสามารถเพิ่ม `custom_elements` หรือ `image_url` เพื่อรวมไว้ในพรอมต์ เลือกโมเดลภาษา และตั้ง `prompt_length` เป็น Short, Medium หรือ Long ได้ ระบบส่งคืนพรอมต์เป็นข้อความ

พารามิเตอร์

ส่งชื่อมาตรฐานหรือชื่อดั้งเดิมอย่างใดอย่างหนึ่งเท่านั้น ห้ามส่งทั้งสองชื่อ ชื่อมาตรฐาน

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
input_conceptจำเป็น
ประเภทstring
แนวคิดหลักหรือธีมที่ใช้สร้างพรอมต์วิดีโอ
styleไม่บังคับ
ประเภทenum
ค่าเริ่มต้นSimple
MinimalistSimpleDetailedDescriptiveDynamicCinematicDocumentaryAnimationActionExperimental
สไตล์ที่ใช้กับพรอมต์วิดีโอ
camera_styleไม่บังคับ
ประเภทenum
ค่าเริ่มต้นNone
NoneSteadicam flowDrone aerialsHandheld urgencyCrane eleganceDolly precisionVR 360Multi-angle rigStatic tripodGimbal smoothnessSlider motionJib sweepPOV immersionTime-slice arrayMacro extremeTilt-shift miniature
เพิ่มเติมอีก 5 ค่าSnorricam characterWhip pan dynamicsDutch angle tensionUnderwater housingPeriscope lens
สไตล์การเคลื่อนที่ของกล้อง
camera_directionไม่บังคับ
ประเภทenum
ค่าเริ่มต้นNone
NoneZoom inZoom outPan leftPan rightTilt upTilt downOrbital rotationPush inPull outTrack forwardTrack backwardSpiral inSpiral outArc movementDiagonal traverse
เพิ่มเติมอีก 2 ค่าVertical riseVertical descent
ทิศทางการเคลื่อนกล้อง
pacingไม่บังคับ
ประเภทenum
ค่าเริ่มต้นNone
NoneSlow burnRhythmic pulseFrantic energyEbb and flowHypnotic driftTime-lapse rushStop-motion staccatoGradual buildQuick cut rhythmLong take meditationJump cut energyMatch cut flowCross-dissolve dreamscapeParallel actionSlow motion impact
เพิ่มเติมอีก 4 ค่าRamping dynamicsMontage tempoContinuous flowEpisodic breaks
จังหวะของการดำเนินเรื่อง
special_effectsไม่บังคับ
ประเภทenum
ค่าเริ่มต้นNone
NonePractical effectsCGI enhancementAnalog glitchesLight paintingProjection mappingNanosecond exposuresDouble exposureSmoke diffusionLens flare artistryParticle systemsHolographic overlayChromatic aberrationDigital distortionWire removalMotion capture
เพิ่มเติมอีก 5 ค่าMiniature integrationWeather simulationColor gradingMixed media compositeNeural style transfer
แนวทางที่ใช้สำหรับเอฟเฟกต์พิเศษ
custom_elementsไม่บังคับ
ประเภทstring
ค่าเริ่มต้น
รายละเอียดทางเทคนิคที่กำหนดเอง (ไม่บังคับ)
image_urlไม่บังคับ image
ประเภทurl · image
รูปภาพเสริมที่ระบุด้วย URL โดยเนื้อหาที่วิเคราะห์แล้วจะกลายเป็นส่วนหนึ่งของพรอมต์วิดีโอ
modelไม่บังคับ
ประเภทenum
ค่าเริ่มต้นgoogle/gemini-2.5-flash-lite
anthropic/claude-3-haikugoogle/gemini-2.5-flashgoogle/gemini-2.5-flash-litemeta-llama/llama-3.1-8b-instructmeta-llama/llama-3.1-70b-instructopenai/gpt-4o-miniopenai/gpt-4o
โมเดลที่เลือกใช้
prompt_lengthไม่บังคับ
ประเภทenum
ค่าเริ่มต้นMedium
ShortMediumLong
ความยาวพรอมต์ที่ต้องการ
จำเป็น ชื่อมาตรฐาน ซึ่งรองรับเช่นกัน

พารามิเตอร์ไฟล์รับ URL https:// สาธารณะ, data: URI ขนาดไม่เกิน 10 MB หรือ file_url ของไฟล์ที่อัปโหลด ไฟล์

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "video-prompt-generator",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "prompt": "A futuristic city glows softly at dusk, captured with smooth gimbal movements and a slow burn pacing, enhanced by subtle holographic overlays."
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ไฟล์ของคุณ คุณเลือกเองทุก outputs[].url คือสำเนาบนพื้นที่จัดเก็บของเรา: เก็บไว้ตลอดไป (คิดค่าบริการต่อ GB-เดือน) หรือฟรี 7 วัน โดยกำหนดได้ในการตั้งค่าบัญชีหรือ ?storage=
รูปแบบเดียวกันในทุกโมเดลtype, url, content_type, width, height และ duration สำหรับภาพ วิดีโอ และเสียงเหมือนกันทั้งหมด ส่วน output คือออบเจ็กต์ผลลัพธ์ของโมเดลเอง
ฟิลด์ของเอาต์พุต
prompt
stringพรอมต์วิดีโอที่สร้างโดยโมเดล

สำหรับเอเจนต์ AI: หน้า Markdown นี้อยู่ที่ https://doitong.com/th/developers/models/video-prompt-generator.md. โมเดลและคู่มือทั้งหมด: https://doitong.com/developers/llms.txt