Developer API
Video API
Ставьте AI video jobs в очередь, отслеживайте generation status, режьте длинные видео на clips и запускайте studio tools для images, audio, lipsync, edits и ads.
#Create jobs
Запускайте long-running video generation и repurpose jobs. Create requests должны включать Idempotency-Key.
curl -X POST https://grik.io/api/v1/generate/video \
-H "Authorization: Bearer GRIK_API_KEY" \
-H "Idempotency-Key: video_job_123" \
-H "Content-Type: application/json" \
-d '{
"model": "kling",
"prompt": "A cinematic product reveal on a black reflective table",
"aspect_ratio": "16:9",
"duration": "5s",
"mode": "standard",
"sound": "on"
}'/generate/videoЗапускает text-to-video или image-to-video generation с model, aspect ratio, duration, mode, image URL и sound options.
/repurposeЗапускает repurposing pipeline из YouTube или file URL с optional language.
#Проверить status
Опрашивайте generation и repurpose records, пока job не достигнет terminal status.
/generation/:idВозвращает generation record, status, output video URL, metadata, file size и error message.
/repurpose/:idВозвращает repurposing task с clips, transcripts, segments, viral scores и output URLs.
#Image tools
Generate, edit, enhance, faceswap, character и 3D-angle assets для video workflows.
/images/generateГенерирует images по prompt, reference image, palette, model и resolution.
/images/editРедактирует image по prompt и source image URL.
/images/enhanceУлучшает или upscale image asset.
/images/faceswapДелает face swap между target и source images.
/images/3d-anglesГенерирует 3D/360-style video из image.
/images/character-genСоздает consistent character из prompt и optional reference image.
#Studio tools
Запускайте speech, audio enhancement, lipsync, recast, transition, edit и ad generation operations.
/repurpose/ttsГенерирует speech audio из text и voice selection.
/repurpose/enhance-audioСтавит audio enhancement для source video в очередь.
/repurpose/lipsyncСинхронизирует video с переданным audio track.
/repurpose/recastЗаменяет или recast персонажа в source video по target image.
/video/transitionsСоздает transitions между двумя или более input video URLs.
/video/editРедактирует existing video по natural-language prompt.
/ads/generateГенерирует ad creative из product URL.