Referencia de la API de Topaz Bloom
Ampliación creativa que añade detalles nuevos al arte de IA y las ilustraciones
Con una sola clave de API de PopNow puedes llamar a Topaz Bloom 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.36 USD por imagen
- ID de modelo
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/bloom/upscale
Precio
| Opción | USD |
|---|---|
2k | $0.36 por imagen |
4k | $1.08 por imagen |
8k | $4.08 por imagen |
Parámetros
| Campo | Tipo | Valor predeterminado | Valores admitidos | Para qué sirve |
|---|---|---|---|---|
image_urlObligatorio | string | — | — | The image to upscale creatively, usually an AI render or artwork: JPEG, PNG or WebP. Composition and aspect ratio are kept. |
presetOpcional | 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. |
resolutionOpcional | 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. |
promptOpcional | string | — | hasta 2000 caracteres | 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. |
creativityOpcional | integer | 3 | de 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_formatOpcional | 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. |
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.
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 respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
