Re-run a finished pipeline job from a later step
Changed onRegenerates one step of a finished multi-step pipeline job ("redo part 2") without paying for the earlier steps again. Creates a new job with the source job's input (plus overrides); the steps before step are carried over from the source job at no cost, and only step and the steps after it run and bill. The source job is not changed.
The source job must be finished (completed, failed or cancelled) and be a multi-step pipeline job. step must be a later step of that pipeline, not the first one (re-running the first step is a new pipeline job). overrides cannot switch the pipeline model.
The response is the same as creating a pipeline job: 202 with the new job, or 200 when Idempotency-Key matches an existing job. Errors of the pipeline create path (insufficient balance, rate limits) apply too.
Request
- Base URL: https://api.varg.ai/v2
- URL: https://api.varg.ai/v2/jobs/{id}/rerun
- Auth: HTTP bearer
Path parameters
Headers
Any unique string. Retrying a request with the same key returns the existing job (HTTP 200) instead of creating and charging a new one (HTTP 202).
Folder id (uuid) or slug. The job's output is filed into this folder when the job completes. An unknown folder returns 404 workspace_not_found and no job is created. If you cannot set headers, send a top-level workspace_id field in the JSON body instead. Not part of the generation input, so it does not affect caching.
Request body
Example request
{
"step": "extend"
}Response
Idempotency replay — the existing job for this Idempotency-Key (no new charge).
Example response
{
"id": "job_a1b2c3d4e5f6",
"attempts": [
{
"n": 1,
"provider": "byteplus",
"model_key": "byteplus:dreamina-seedance-2-5-260628",
"reason": "real person in the reference images"
}
],
"tool": "tool_2001a2b3c4d5",
"tool_key": "video",
"output": {
"outputs": [
{
"media_type": "video/mp4"
}
]
},
"progress_message": "stitching 3/8 (40%)",
"step_state": {
"current_step": "extend"
},
"pricing": {
"billed_units": {
"images": 1
}
},
"provider": "fal",
"provider_model": "fal:flux_schnell"
}Changes
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info
- info
endpoint added
- info