PopNowDocs de la API
Contenido principal

Referencia de la API de Topaz Gigapixel

Ampliaciones fieles, generativas o transparentes hasta 2K, 4K u 8K

Con una sola clave de API de PopNow puedes llamar a Topaz Gigapixel desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuánto cuesta cada solicitud en USD y una petición que puedes pegar tal cual en la terminal.

Las descripciones de los parámetros vienen del esquema de entrada del modelo y solo están en inglés.

De un vistazo

Creado por
Topaz Labs
Resultado
Imagen
Desde
$0.12 USD por imagen
Tiempo habitual
unos 21 s

Los precios se muestran en USD y se cobran de tu saldo de PopNow. Al aceptar la tarea se reserva el importe máximo; al terminar se cobra el uso real y se libera el resto. Las tareas fallidas no se cobran. Consulta POST /api/v1/jobs/quote para obtener un presupuesto exacto antes de ejecutar.

Mejorar imagen

topaz/gigapixel/upscale

Precio

OpciónUSD
preset = cgi, resolution = 2k$0.12 por imagen
preset = cgi, resolution = 4k$0.12 por imagen
preset = detail, resolution = 2k$0.12 por imagen
preset = detail, resolution = 4k$0.12 por imagen
preset = high_fidelity_v3, resolution = 2k$0.12 por imagen
preset = high_fidelity_v3, resolution = 4k$0.12 por imagen
preset = low_resolution_v2, resolution = 2k$0.12 por imagen
preset = low_resolution_v2, resolution = 4k$0.12 por imagen
preset = standard_v2, resolution = 2k$0.12 por imagen
preset = standard_v2, resolution = 4k$0.12 por imagen
preset = text_refine, resolution = 2k$0.12 por imagen
preset = text_refine, resolution = 4k$0.12 por imagen
preset = transparent, resolution = 2k$0.12 por imagen
preset = transparent, resolution = 4k$0.12 por imagen
preset = wonder_3_5, resolution = 2k$0.12 por imagen
preset = wonder_4, resolution = 2k$0.12 por imagen
preset = recover_3, resolution = 2k$0.24 por imagen
preset = redefine, resolution = 2k$0.24 por imagen
preset = standard_max, resolution = 2k$0.24 por imagen
preset = cgi, resolution = 8k$0.36 por imagen
preset = detail, resolution = 8k$0.36 por imagen
preset = high_fidelity_v3, resolution = 8k$0.36 por imagen
preset = low_resolution_v2, resolution = 8k$0.36 por imagen
preset = standard_v2, resolution = 8k$0.36 por imagen
preset = text_refine, resolution = 8k$0.36 por imagen
preset = transparent, resolution = 8k$0.36 por imagen
preset = wonder_3_5, resolution = 4k$0.36 por imagen
preset = wonder_4, resolution = 4k$0.36 por imagen
preset = recover_3, resolution = 4k$0.6 por imagen
preset = redefine, resolution = 4k$0.6 por imagen
preset = standard_max, resolution = 4k$0.6 por imagen
preset = wonder_3_5, resolution = 8k$1.08 por imagen
preset = wonder_4, resolution = 8k$1.08 por imagen
preset = recover_3, resolution = 8k$2.04 por imagen
preset = redefine, resolution = 8k$2.04 por imagen
preset = standard_max, resolution = 8k$2.04 por imagen

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
image_urlObligatoriostring——The image to enlarge: JPEG, PNG or WebP. Framing and aspect ratio are kept; only the pixel count goes up. Use a PNG with an alpha channel for the transparent preset.
presetOpcionalstringstandard_v2standard_v2, high_fidelity_v3, low_resolution_v2, cgi, text_refine, wonder_4, wonder_3_5, recover_3, standard_max, redefine, detail, transparentWhich Topaz Gigapixel model to run. Precise presets enlarge without inventing content: standard_v2 (general photos), high_fidelity_v3 (already sharp, high-resolution sources), low_resolution_v2 (small or heavily compressed images), cgi (illustrations and renders), text_refine (text, logos and graphics). Generative presets rebuild detail and cost more: wonder_4 (all-purpose enhancement), wonder_3_5, recover_3 (badly degraded photos), standard_max, redefine (adds new detail) and detail (realistic skin and faces in AI images). transparent enlarges a PNG while keeping its alpha channel and always returns PNG.
resolutionOpcionalstring4k2k, 4k, 8kOutput size: a pixel budget of about 4 MP (2k), 16.8 MP (4k) or 67 MP (8k) with the source aspect ratio kept. The price depends on this tier and the preset.
output_formatOpcionalstringjpegjpeg, pngFile type of the returned image. png avoids another round of lossy compression but is several times larger. The format does not change the price.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en POPNOW_API_KEY.

El ejemplo usa archivos de muestra de PopNow en image_url. Cámbialos por tus propios enlaces HTTPS públicos, archivos subidos o recursos guardados.

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "topaz/gigapixel/upscale",
  "input": {
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "resolution": "4k",
    "preset": "standard_v2"
  }
}'

La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Siguientes pasos

En esta página