Templates

Edit your video with a template

Opens a video-agent run: the transcript, then a model watches the video and picks the moments for the template, then ONE render in its look at the level asked. Every extra of the full level is optional — one that fails is left out and not charged. An AI clip is made only inside max_credits, above the plan's price. With max_credits the plan is approved by itself while it stays within it; otherwise approve it with POST /v1/agent/runs/{run}/actions { "action": "approve" }. Follow the run with GET /v1/agent/runs/{run}.

post/v1/templates/{id}/run

Request

  • Base URL: https://apihub.co.il
  • URL: https://apihub.co.il/v1/templates/{id}/run
  • Auth: HTTP bearer

Path parameters

idstring required

The template's id (GET /v1/templates)

Request body

media_urlstring uri required

The video to edit: a public file, or an upload (POST /v1/agent/uploads)

media_namestring nullable
level'captions' | 'hook' | 'full'
locale'he' | 'en' | 'ru' | 'uk' | 'null' nullable
max_creditsinteger nullable

Approve the plan without asking while its total stays within this many credits; the room above the plan's price may pay for AI clips

profile_idstring nullable

Your agent (GET /v1/agent/profiles): its networks and publishing stay; the look is the template's

client_keystring nullable

Your idempotency key: the same key twice returns 409 instead of a second run

Response

The run (as GET /v1/agent/runs/{run}) and template: { id, level }

Changes

No recorded changes to this operation across all 2 revisions of this API.