PopNowDocs API
Contenu principal

Référence API de Topaz Gigapixel

Agrandissements fidèles, génératifs ou transparents jusqu’en 2K, 4K ou 8K

Une seule clé API PopNow suffit pour appeler Topaz Gigapixel depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en USD et une requête à coller telle quelle dans un terminal.

Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.

En bref

Éditeur
Topaz Labs
Résultat
Image
À partir de
$0.12 USD par image
Durée habituelle
environ 21 s
Identifiants de modèle

Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.

Agrandir l’image

topaz/gigapixel/upscale

Prix

OptionUSD
preset = cgi, resolution = 2k$0.12 par image
preset = cgi, resolution = 4k$0.12 par image
preset = detail, resolution = 2k$0.12 par image
preset = detail, resolution = 4k$0.12 par image
preset = high_fidelity_v3, resolution = 2k$0.12 par image
preset = high_fidelity_v3, resolution = 4k$0.12 par image
preset = low_resolution_v2, resolution = 2k$0.12 par image
preset = low_resolution_v2, resolution = 4k$0.12 par image
preset = standard_v2, resolution = 2k$0.12 par image
preset = standard_v2, resolution = 4k$0.12 par image
preset = text_refine, resolution = 2k$0.12 par image
preset = text_refine, resolution = 4k$0.12 par image
preset = transparent, resolution = 2k$0.12 par image
preset = transparent, resolution = 4k$0.12 par image
preset = wonder_3_5, resolution = 2k$0.12 par image
preset = wonder_4, resolution = 2k$0.12 par image
preset = recover_3, resolution = 2k$0.24 par image
preset = redefine, resolution = 2k$0.24 par image
preset = standard_max, resolution = 2k$0.24 par image
preset = cgi, resolution = 8k$0.36 par image
preset = detail, resolution = 8k$0.36 par image
preset = high_fidelity_v3, resolution = 8k$0.36 par image
preset = low_resolution_v2, resolution = 8k$0.36 par image
preset = standard_v2, resolution = 8k$0.36 par image
preset = text_refine, resolution = 8k$0.36 par image
preset = transparent, resolution = 8k$0.36 par image
preset = wonder_3_5, resolution = 4k$0.36 par image
preset = wonder_4, resolution = 4k$0.36 par image
preset = recover_3, resolution = 4k$0.6 par image
preset = redefine, resolution = 4k$0.6 par image
preset = standard_max, resolution = 4k$0.6 par image
preset = wonder_3_5, resolution = 8k$1.08 par image
preset = wonder_4, resolution = 8k$1.08 par image
preset = recover_3, resolution = 8k$2.04 par image
preset = redefine, resolution = 8k$2.04 par image
preset = standard_max, resolution = 8k$2.04 par image

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
image_urlObligatoirestring——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.
presetFacultatifstringstandard_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.
resolutionFacultatifstring4k2k, 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_formatFacultatifstringjpegjpeg, 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.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans image_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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"

Pour aller plus loin

Sur cette page