imagestringobrigatório
The input image to be processed
bytedance/seedvr/upscale/imageSeedvr Upscale Image by Bytedance - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"image": "https://static.sandbase.ai/examples/e9063ae5-ae76-45df-ba78-5b81c56d1157/input/99a0d455-36a3-421d-a064-48062fa13691.jpg",
"target_resolution": "4k"
}SeedVR2 restores and upscales a single image to 2K or 4K, sharpening detail without changing content.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Image to upscale. JPEG, PNG, or WebP URL. |
target_resolution | 2k / 4k | 4k | Output long-side tier. |
output_format | png / jpg | jpg | Output file format. |
$0.01 per image.
| Request | Price |
|---|---|
| One image | $0.01 |
Failed runs are not charged.
Related: bytedance/seedvr/upscale/video, topaz/upscale/image (Topaz).
Comece a construir
Envie este modelo pela SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bytedance/seedvr/upscale/image",
"image": "https://static.sandbase.ai/examples/bytedance/seedvr/upscale/image/input_image_0.png",
"output_format": "jpg",
"target_resolution": "4k"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
imagestringobrigatórioThe input image to be processed
output_formatstringThe format of the output image.
Padrão: "jpg"
Valores possíveis: "png", "jpg"
target_resolutionstringThe target resolution to upscale to.
Padrão: "4k"
Valores possíveis: "2k", "4k"
{
"model": "bytedance/seedvr/upscale/image",
"image": "https://static.sandbase.ai/examples/bytedance/seedvr/upscale/image/input_image_0.png",
"output_format": "jpg",
"target_resolution": "4k"
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/e9063ae5-ae76-45df-ba78-5b81c56d1157/output/c057704f-92a4-4408-bedb-a544514bc173.jpg"
}
]