Riferimento API di Topaz Bloom
Ingrandimento creativo che aggiunge nuovi dettagli ad arte IA e illustrazioni
Con una sola chiave API di PopNow chiami Topaz Bloom dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- Topaz Labs
- Risultato
- Immagine
- Da
- $0.36 USD per immagine
- ID del modello
I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.
Ingrandisci immagine
topaz/bloom/upscale
Prezzo
| Opzione | USD |
|---|---|
2k | $0.36 per immagine |
4k | $1.08 per immagine |
8k | $4.08 per immagine |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
image_urlObbligatorio | string | — | — | The image to upscale creatively, usually an AI render or artwork: JPEG, PNG or WebP. Composition and aspect ratio are kept. |
presetFacoltativo | string | bloom_2 | bloom_2, bloom, bloom_realism | Which Topaz Bloom model to run. bloom_2 is the newest and invents the most convincing new detail; bloom suits illustrations, artwork and CG; bloom_realism keeps a natural, photographic look and only accepts creativity 1 to 4. |
resolutionFacoltativo | string | 4k | 2k, 4k, 8k | Output 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 only. |
promptFacoltativo | string | — | fino a 2000 caratteri | Optional description of the image or of the result you want; it steers what the new detail looks like. Leave it empty to let the model describe the image itself. |
creativityFacoltativo | integer | 3 | da 1 a 9 | How freely the image is reinterpreted: 1 stays closest to the source, 9 adds the most new detail. bloom_realism accepts 1 to 4; higher values are refused for that preset. Does not change the price. |
output_formatFacoltativo | string | jpeg | jpeg, png | File type of the returned image. png avoids another round of lossy compression but is several times larger. The format does not change the price. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in image_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "topaz/bloom/upscale",
"input": {
"prompt": "Sharpen fine detail and keep the natural look",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"resolution": "4k"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
