Explore models
Videofrom $0.0875 / s

SeraStudio Fix

Remakes only the seconds of a video that went wrong and puts them back into the original. Frames outside the range and all of the sound stay as they were, and only the seconds remade are billed. Videos up to 60 s.

View docs
const res = await fetch('https://serastudio.app/api/v1/fix/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.SERA_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': 'fix-2041',
  },
  body: JSON.stringify({"source": {"upload_id": "vid_…"}, "kind": "retouch", "start_s": 8.5, "end_s": 9.9, "source_duration_s": 14, "resolution": "720p", "prompt": "Give the right hand five natural fingers."}),
});
const fix = await res.json();
console.log(fix.id, fix.status);

1. Calling the API

POST https://serastudio.app/api/v1/fix/generations
POST https://serastudio.app/api/v1/fix/estimate

2. Authentication

Send your API key in the Authorization: Bearer header on every request.

3. Generation request parameters

ParameterTypeRequiredDefaultDescription
sourceobjectYAn uploaded video {upload_id} or a finished generation {generation_id}
kindstringYretouch (Fix a part) · swap (Swap an object) · fill (Fill a gap)
start_snumberYStart of the range to fix, in seconds
end_snumberYEnd of the range to fix, in seconds
source_duration_snumber-Measured length of the video in seconds, up to 60. Required for an uploaded video
promptstring-What to fix. Required for retouch
imagesarray-Up to 4 uploaded photos {upload_id}. swap needs at least 1, fill takes none
resolutionstring-720p480p · 720p · 1080p
on_versionstring-Id of the fix to build on. Leave it out to build on the newest one

4. Estimate request

const res = await fetch('https://serastudio.app/api/v1/fix/estimate', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.SERA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"kind": "retouch", "start_s": 8.5, "end_s": 9.9, "source_duration_s": 14, "resolution": "720p"}),
});
console.log(await res.json());

5. Estimate response

{
  "model": "fix",
  "kind": "retouch",
  "currency": "usd",
  "resolution": "720p",
  "range": {
    "start_s": 8.5,
    "end_s": 9.9
  },
  "window_seconds": 2,
  "billable_seconds": 4,
  "usd_per_second": 0.175,
  "list_usd_per_second": 0.175,
  "discount_pct": 0,
  "usd": 0.7,
  "retry": {
    "discount_pct": 50,
    "times": 1,
    "usd": 0.35
  },
  "note": "A fix sends whole seconds to the model: the range rounded out to full seconds, at least the minimum for the kind. Only those seconds are billed. The amount is held when the fix is queued and restored in full if it fails."
}

View docs