Upscale or retime a video

POST/v1/videos/upscale

Upscale a video (precise or creative), slow it down 2× or 4×, or raise it to 60 fps.

Needs the generate scope. Creates a job of type video.upscale; send an Idempotency-Key to retry safely.

Body

FieldTypeDescription
videorequiredstringA video: a file id from POST /v1/files (file_…), the id of an earlier video job (job_…), or a public https:// URL (MP4, MOV or WebM).
moderequiredstringWhat to do.One of "upscale_precise", "upscale_creative", "slowmo", "fps_boost".
resolutionstringFor upscale_precise: Full HD or 4K. (upscale_creative is always 4K.)One of "fhd", "4k".Default "fhd".
slowmo_factorintegerFor slowmo.One of 2, 4.Default 2.
metadataobjectUp to 20 keys of your own (string → string, values up to 500 characters). Stored on the job and returned with it and in webhooks.

Example

curl -X POST https://www.luce.space/api/v1/videos/upscale \
  -H "Authorization: Bearer $LUCE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "video": "file_logTEX0hbvuvsL7x",
  "mode": "upscale_precise",
  "resolution": "4k"
}'

Response

HTTP 202. The job starts queued or running; GET /v1/jobs/{id} or a webhook tells you when it ends.

{
  "id": "job_api7QmVZk2rT9wXs1bYc",
  "object": "job",
  "type": "video.upscale",
  "status": "queued",
  "livemode": true,
  "created_at": "2026-11-24T10:15:02.114Z",
  "completed_at": null,
  "cost": {
    "credits": 50,
    "prepaid": 50,
    "pay_as_you_go": 0
  },
  "output": null,
  "error": null,
  "metadata": {
    "order_id": "A-1042"
  }
}

Errors

codeWhen
invalid_bodyThe body isn't valid JSON or misses a required field.
invalid_paramA field has a wrong type or an out-of-range value; param names it.
invalid_inputAn input image or video can't be used (unreachable, too large, wrong type, or an upload not completed).
mode_unavailableThis mode isn't offered on the API.
insufficient_balancePrepaid AI Credits can't cover the job and pay as you go is off.
monthly_cap_reachedThe job would pass this month's pay-as-you-go cap.
payment_past_duePay as you go is paused after a failed payment.
idempotency_conflictThe Idempotency-Key was used before with a different body.
rate_limitedToo many requests; wait for Retry-After seconds.
Upscale or retime a video — Luce API reference