Jevrouter Video API · video-to-video
ai video editor · auto clip
jev/ai-video-editor/auto-clip:video
AI Video Editor Auto Clip cuts long or raw footage down to a short highlight clip: it reviews one or several videos end to end, picks the moments that matter, follows your prompt for topic, style and length, and delivers a captioned clip of roughly 15 to 60 seconds. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Create an API keyOptions and pricing
Task: video-to-video. Catalog base price: $0.5. The exact quote depends on your inputs; the catalog price is not a fixed per-task charge.
We reserve the quoted maximum before submission, settle the actual generation cost and release the remainder. Set jev.max_cost_usd to your maximum reservation. A quote above this limit is rejected before generation.
| Input field | Type | Required | Options / default |
|---|---|---|---|
prompt | string | No | See schema |
videos | array | Yes | See schema |
duration | integer | No | See schema |
language | string | No | ["auto","en","fr","es","pt","it","ru","zh-CN","zh-TW","ja","ko"] |
aspect_ratio | string | No | ["16:9","9:16","1:1","4:5","5:4","4:3","3:4","3:2","2:3","21:9"] |
caption_style | string | No | ["highlight","plain","none"] |
Complete input schema
{
"type": "object",
"required": [
"videos"
],
"properties": {
"prompt": {
"type": "string",
"description": "Optional. What the edit should be about, its style and its length, for example \"a 30-second highlight of the finished result\"."
},
"videos": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 8,
"minItems": 1,
"description": "One to eight source videos. Up to 2 hours of each video is processed."
},
"duration": {
"type": "integer",
"maximum": 120,
"minimum": 5,
"x-hidden": true,
"description": "Approximate length of the edit in seconds (5-120). Decided by the prompt or by the editor if not specified.",
"x-ui-component": "slider"
},
"language": {
"enum": [
"auto",
"en",
"fr",
"es",
"pt",
"it",
"ru",
"zh-CN",
"zh-TW",
"ja",
"ko"
],
"type": "string",
"default": "auto",
"description": "Language spoken in the source video. \"auto\" detects it; set it when detection is unreliable, for example with heavy accents, background music or very short speech.",
"x-ui-component": "select"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"1:1",
"4:5",
"5:4",
"4:3",
"3:4",
"3:2",
"2:3",
"21:9"
],
"type": "string",
"description": "Aspect ratio of the output video. Auto-detected from the source video if not specified. The whole frame is kept and the remaining area is filled with a blurred copy.",
"x-placeholder": "Select aspect ratio",
"x-ui-component": "select"
},
"caption_style": {
"enum": [
"highlight",
"plain",
"none"
],
"type": "string",
"default": "highlight",
"description": "Burned-in captions. \"highlight\" lights up each word as it is spoken, \"plain\" shows static caption lines, \"none\" adds no captions.",
"x-ui-component": "select"
}
},
"x-order-properties": [
"videos",
"prompt",
"aspect_ratio",
"caption_style",
"language",
"duration"
],
"additionalProperties": false
}Required fields and conditional rules come from the published schema. Catalog support does not mean every option has been independently tested by Jevrouter. Synchronous generation, base64 output and customer callbacks are unavailable.
1. Submit a video task
Allow this model on your Jevrouter key. Replace every placeholder below with a value of the correct type, set a USD limit, and supply any conditional fields required by the schema. Media inputs must use your own accessible URLs; this endpoint does not upload files.
curl https://api.jevrouter.io/v1/videos \
-H "Authorization: Bearer $JEVROUTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: video-demo-001" \
-d @- <<'JSON'
{
"model": "jev/ai-video-editor/auto-clip:video",
"input": {
"videos": "<videos: provide array>",
"language": "auto",
"caption_style": "highlight"
},
"jev": {
"max_cost_usd": "YOUR_USD_LIMIT"
}
}
JSONSave data.id and data.urls.get. An accepted task continues even if you disconnect.
Let Jevrouter choose
Use jev/auto as the model and set task to video-to-video. Your project must enable Auto, and both the project and key must allow Auto and the candidate models.
Auto checks the task type and all supplied input fields against each candidate. It compares live quotes for up to eight compatible candidates, shortlisted by catalog base price. It selects the lowest quote within that shortlist and your budget; this is not a quality ranking or a guarantee of the cheapest model in the entire catalog.
Use common options such as duration, resolution and aspect_ratio at the top level where available. Model-specific options belong in input and may narrow the pool. Unsupported options are rejected, never silently dropped. Without task, Auto defaults to text-to-video.
2. Check the result
curl https://api.jevrouter.io/v1/videos/REQUEST_ID \ -H "Authorization: Bearer $JEVROUTER_API_KEY"
Replace REQUEST_ID with your task ID. Wait at least three seconds between checks. Status progresses from queued to processing, then completed or failed. Results appear in data.outputs as media URLs or structured output objects.
If the submission response is lost, repeat the original request with the same idempotency key. A new key may create another billed task.
Results and billing
View the request in your dashboard or query /v1/requests/REQUEST_ID for reservation and settlement details. Results may be ready before the bill arrives.
Result links are retained for up to seven days and may expire earlier. Save your video while it is available. Anyone with a media URL may be able to access it. Cancellation and customer webhooks are not available.