Edit tools
Edit tools are models whose task works on existing media. They use the same call as any generation, POST /v1/generations, with the media to change in source (and sometimes references). source takes an asset ID, a generation ID, a public HTTPS URL or a small data URI, so the output of one generation can go straight into the next.
Each model’s page lists its exact parameters, limits and an example.
Extend a video
Section titled “Extend a video”Continues a video with new footage. duration is the length added.
# Extends a video by 5 seconds. SOURCE is an asset ID, a generation ID or a public HTTPS URL. Spends at most 400 tokens.set -euo pipefailAPI="${HL_API_BASE:-https://api.halationlab.ai/v1}"SOURCE="${HL_VIDEO:-https://docs.halationlab.ai/media/sample-video.mp4}"
curl -sS --fail-with-body "$API/generations" \ -H "Authorization: Bearer $HALATIONLAB_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Prefer: wait=60" \ -H "Content-Type: application/json" \ -d @- <<JSON{ "model": "seedance-2.5-extend", "input": { "source": "$SOURCE", "prompt": "The ball keeps rolling and slows to a stop", "duration": 5 }, "max_cost": 400}JSON- FLUX.3 Extend (
flux.3-extend) - Gemini Omni Flash 1.1 Extend (
gemini-omni-flash-1.1-extend) - Seedance 2.5 Extend (
seedance-2.5-extend)
Edit a video
Section titled “Edit a video”Changes a video by instruction, keeping what the prompt does not mention.
- FLUX.3 Edit Video [fast] (
flux.3-edit-video-fast) - Gemini Omni Flash 1.1 Edit (
gemini-omni-flash-1.1-edit) - Kling O3 Edit (
kling-o3-edit) - Seedance 2.5 Edit (
seedance-2.5-edit)
Reframe a video
Section titled “Reframe a video”Changes the frame shape of a video, for example from 16:9 to 9:16, generating the new area.
- LTX 2.3 Reframe (
ltx-2.3-reframe) - Wan VACE Long Reframe (
wan-vace-long-reframe)
Upscale a video
Section titled “Upscale a video”Raises the resolution of a video.
- ByteDance Upscaler (
bytedance-upscaler) - FLUX Video Upscale (
flux-video-upscale) - Seedance 2.5 Finish in 1080p (
seedance-2.5-finish-in-1080p)
Edit an image
Section titled “Edit an image”Changes or combines images by instruction. Some image edit models take references as well as source.
- FLUX.2 [pro] Edit (
flux.2-pro-edit) - GPT Image 2.5 Flare Edit (
gpt-image-2.5-flare-edit) - GPT Image 2.5 Flare Region Edit (
gpt-image-2.5-flare-region-edit) - GPT Image 2.5 Sunburst (
gpt-image-2.5-sunburst-edit) - GPT Image 2.5 Sunburst Region Edit (
gpt-image-2.5-sunburst-region-edit) - Grok Imagine Image 2.0 Edit (
grok-imagine-image-2.0-edit) - Nano Banana 2.1 Edit (
nano-banana-2.1-edit) - Nano Banana Pro Edit (
nano-banana-pro-edit) - Seedream 4.0 Edit (
seedream-4.0-edit) - Seedream 4.5 Edit (
seedream-4.5-edit) - Seedream 5.0 Flash Edit (
seedream-5.0-flash-edit) - Seedream 5.0 Flash Layers (
seedream-5.0-flash-layers) - Seedream 5.0 Flash Region Edit (
seedream-5.0-flash-region-edit) - Seedream 5.0 Lite Edit (
seedream-5.0-lite-edit) - Seedream 5.0 Pro Edit (
seedream-5.0-pro-edit) - Seedream 5.0 Pro Layers (
seedream-5.0-pro-layers) - Seedream 5.0 Pro Region Edit (
seedream-5.0-pro-region-edit)
Change a region of an image
Section titled “Change a region of an image”Region edit models change only part of source. They require region: the area to change, in source pixels from the top-left corner, as a rectangle or a polygon of 3 to 500 points.
{ "type": "rectangle", "x": 470, "y": 190, "width": 340, "height": 340 }{ "type": "polygon", "points": [[470, 190], [810, 190], [640, 530]] }# Changes only a rectangle of an image. `region` is in source pixels from the top-left corner. Spends at most 100 tokens.set -euo pipefailAPI="${HL_API_BASE:-https://api.halationlab.ai/v1}"SOURCE="${HL_SAMPLE_IMAGE_URL:-https://docs.halationlab.ai/media/sample-image.png}"
curl -sS --fail-with-body "$API/generations" \ -H "Authorization: Bearer $HALATIONLAB_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Prefer: wait=60" \ -H "Content-Type: application/json" \ -d @- <<JSON{ "model": "gpt-image-2.5-sunburst-region-edit", "input": { "source": "$SOURCE", "prompt": "Turn the ball into a glossy green apple", "region": { "type": "rectangle", "x": 470, "y": 190, "width": 340, "height": 340 }, "quality": "low" }, "max_cost": 100}JSONModels that take region:
- GPT Image 2.5 Flare Region Edit (
gpt-image-2.5-flare-region-edit) - GPT Image 2.5 Sunburst Region Edit (
gpt-image-2.5-sunburst-region-edit) - Seedream 5.0 Flash Region Edit (
seedream-5.0-flash-region-edit) - Seedream 5.0 Pro Region Edit (
seedream-5.0-pro-region-edit)
Expand an image
Section titled “Expand an image”Extends an image beyond its borders to a new frame shape.
- Ideogram 3.0 Reframe (
ideogram-3.0-reframe)
Upscale an image
Section titled “Upscale an image”Raises the resolution of an image.
- Recraft Crisp Upscale (
recraft-crisp-upscale)
Simple transforms
Section titled “Simple transforms”For a plain crop, trim or resize, which needs no model, use POST /v1/assets/{id}/transform. The copy is a new asset. See Uploading media.