உள்ளடக்கத்திற்குச் செல்க

Grok Imagine Reference to Video

ஒருங்கிணை

மாடல் id xai/grok-imagine-video/reference-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

எடுத்துக்காட்டு போன்ற கோப்புகள்: $0.402 402 API கிரெடிட்கள் இயக்குவதற்கு முன் உங்கள் கோப்புகள் அளவிடப்படும் இந்தப் பக்கத்தில் இயக்குங்கள்

API விசையைப் பெறுக
xAI குறிப்பிலிருந்து வீடியோவிற்கு குறிப்பு உள்ளீடுகள்1–10 s720p வரை #video-edit#v2v#grok#xai

ப்ராம்ப்டில் @Image1, @Image2 எனக் குறியிடப்பட்ட 1 முதல் 7 வரையிலான குறிப்புப் படங்களின் வழிகாட்டுதலுடன் வீடியோவை உருவாக்குகிறது

xAI · வீடியோ

உங்கள் முதல் முடிவு இங்கே வரும்

கீழே ஒரு கோரிக்கையை உருவாக்கி, உங்கள் API விசையுடன் இயக்குங்கள். வெளியீடுகள் எங்கள் சேமிப்பகத்தில் நகலெடுக்கப்பட்டு, நிரந்தரமாக அல்லது இலவசமாக 7 நாட்கள் வைக்கப்படும்.

கோரிக்கையை உருவாக்கு

மாடல் ஸ்கீமாவிலிருந்து கட்டுப்பாடுகள் உருவாக்கப்படுகின்றன. அவற்றை மாற்றும்போது குறியீடும் விலையும் புதுப்பிக்கப்படும்.

•தேவை 88 / 4096

வரிசைப்படுத்தப்பட்ட படக் குறிப்புகளைக் கொண்ட வீடியோ உருவாக்கப் ப்ராம்ப்ட்: reference_image_urls-இல் முதல் பதிவை @Image1, இரண்டாவது பதிவை @Image2 எனக் குறிப்பிடலாம்.

•தேவை reference_image_urls
கோப்பை விடுங்கள் அல்லது · 7 வரை

வீடியோவுக்கான பாணி மற்றும் உள்ளடக்க வழிகாட்டுதலை வழங்கும் குறிப்பு படம் URL-கள். 1 முதல் 7 படங்கள் வரை வழங்கி, அவற்றை ப்ராம்ப்ட்டில் @Image1, @Image2 எனக் குறிப்பிடவும்.

resolution இயல்புநிலை 480p

வெளியீட்டு வீடியோவின் தெளிவுத்திறன்.

aspect_ratio இயல்புநிலை 16:9

விளைவாக வரும் வீடியோவின் aspect ratio.

இயல்புநிலை 8

வினாடிகளில் அளவிடப்படும் வீடியோ நீளம்.

மேம்பட்டவை enable_safety_checker
POST /run/xai/grok-imagine-video/reference-to-video?wait=20 விலை → $0.402
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

இந்தக் கோரிக்கையை இயக்கு

உங்கள் key இந்த உலாவியில் மட்டுமே இருக்கும்: அது Doitong API-க்கு மட்டும் அனுப்பப்படும்; Remember-ஐத் தேர்ந்தெடுத்தால் மட்டுமே (localStorage)-ல் சேமிக்கப்படும். API விசையைப் பெறுங்கள்

Grok Imagine Reference to Video பற்றி

`reference_image_urls`-இல் உள்ள 1 முதல் 7 குறிப்பு படங்களுடன் உரை ப்ராம்ப்டிலிருந்து ஒரு கிளிப்பை உருவாக்குகிறது; அவை பாணி மற்றும் உள்ளடக்க வழிகாட்டிகளாகச் செயல்படுகின்றன. அவற்றை ப்ராம்ப்டில் @Image1, @Image2 என வரிசையாகக் குறிப்பிடவும். கால அளவு 1 முதல் 10 வினாடிகள் வரை (இயல்புநிலை 8), தெளிவுத்திறன் 480p அல்லது 720p, மேலும் 16:9 முதல் 9:16 வரையிலான பல காட்சி விகிதங்கள் கிடைக்கின்றன.

அளவுருக்கள்

நியமப் பெயர் அல்லது நேட்டிவ் பெயர் இரண்டில் ஒன்றை மட்டும் அனுப்பவும். நியமப் பெயர்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
promptதேவை
வகைstring
≤ 4,096 எழுத்துகள்
வரிசைப்படுத்தப்பட்ட படக் குறிப்புகளைக் கொண்ட வீடியோ உருவாக்கப் ப்ராம்ப்ட்: reference_image_urls-இல் முதல் பதிவை @Image1, இரண்டாவது பதிவை @Image2 எனக் குறிப்பிடலாம்.
reference_image_urlsதேவை images
வகைurl[] · image
≤ 7 உருப்படிகள்
வீடியோவுக்கான பாணி மற்றும் உள்ளடக்க வழிகாட்டுதலை வழங்கும் குறிப்பு படம் URL-கள். 1 முதல் 7 படங்கள் வரை வழங்கி, அவற்றை ப்ராம்ப்ட்டில் @Image1, @Image2 எனக் குறிப்பிடவும்.
durationவிருப்பத்தேர்வு
வகைinteger
இயல்புநிலை8
1 – 10
வினாடிகளில் அளவிடப்படும் வீடியோ நீளம்.
resolutionவிருப்பத்தேர்வு
வகைenum
இயல்புநிலை480p
480p720p
வெளியீட்டு வீடியோவின் தெளிவுத்திறன்.
aspect_ratioவிருப்பத்தேர்வு
வகைenum
இயல்புநிலை16:9
16:94:33:21:12:33:49:16
விளைவாக வரும் வீடியோவின் aspect ratio.
enable_safety_checkerவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைtrue
அழைப்பாளர் அங்கீகரிக்கப்பட்டிருந்தால், false என அமைப்பதன் மூலம் திரையிடலைத் தளர்த்தலாம்.
தேவை நியமப் பெயர், இதுவும் ஏற்கப்படும்

கோப்பு அளவுருக்கள் பொதுவான https:// URL, 10 MB வரையிலான data: URI அல்லது பதிவேற்றத்தின் file_url-ஐ ஏற்கும். கோப்புகள்

வெளியீடு

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/reference-to-video",
  "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": 402,
    "usd": "0.402",
    "charged": 402,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
உங்கள் கோப்புகள், உங்கள் தேர்வுஒவ்வொரு outputs[].url-ம் எங்கள் சேமிப்பகத்தில் உள்ள ஒரு நகல்: நிரந்தரமாக (GB-மாதத்திற்கு கட்டணம்) அல்லது உங்கள் கணக்கு அமைப்பு அல்லது ?storage= மூலம் இலவசமாக 7 நாட்கள் வைக்கப்படும்.
ஒவ்வொரு மாடலிலும் ஒரே வடிவம்படங்கள், வீடியோ மற்றும் ஆடியோ ஆகிய அனைத்திற்குமான type, url, content_type, width, height மற்றும் duration. output என்பது மாதிரியின் சொந்த முடிவு பொருளாகும்.
வெளியீட்டின் புலங்கள்
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}மாதிரியால் உருவாக்கப்பட்ட வீடியோ.

மேலும் மாதிரிகள்: குறிப்பிலிருந்து வீடியோவிற்கு

AI ஏஜெண்டுகளுக்கு: இந்தப் பக்கம் Markdown வடிவில் இங்கே உள்ளது https://doitong.com/ta/developers/models/xai/grok-imagine-video/reference-to-video.md. அனைத்து மாடல்களும் வழிகாட்டிகளும்: https://doitong.com/developers/llms.txt