PopNowDokumentacja API
Treść główna

Topaz Bloom: dokumentacja API

Kreatywne powiększanie, które dodaje nowe detale grafikom AI i ilustracjom

Jednym kluczem API PopNow wywołasz Topaz Bloom z własnego kodu. Znajdziesz tu identyfikatory modelu, które trzeba wysłać, każde pole wejściowe, koszt zapytania w USD i gotowe zapytanie do wklejenia w terminalu.

Opisy parametrów pochodzą ze schematu wejściowego modelu i są dostępne tylko po angielsku.

W skrócie

Twórca
Topaz Labs
Wynik
Obraz
Od
$0.36 USD za obraz
Identyfikatory modelu

Ceny są podane w USD, a opłaty są pobierane z Twojego salda PopNow. Przy przyjęciu zadania rezerwowana jest maksymalna kwota, po zakończeniu rozliczane jest rzeczywiste zużycie, a reszta zostaje zwolniona. Nieudane zadania są bezpłatne. Dokładną wycenę przed uruchomieniem uzyskasz przez POST /api/v1/jobs/quote.

Popraw jakość obrazu

topaz/bloom/upscale

Cena

OpcjaUSD
2k$0.36 za obraz
4k$1.08 za obraz
8k$4.08 za obraz

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
image_urlWymaganestring——The image to upscale creatively, usually an AI render or artwork: JPEG, PNG or WebP. Composition and aspect ratio are kept.
presetOpcjonalnestringbloom_2bloom_2, bloom, bloom_realismWhich 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.
resolutionOpcjonalnestring4k2k, 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 only.
promptOpcjonalnestring—do 2000 znakówOptional 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.
creativityOpcjonalneinteger3od 1 do 9How 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_formatOpcjonalnestringjpegjpeg, 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.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

Przykład używa w image_url przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.

POST /api/v1/jobs/createTask
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"
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

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"

Co dalej

Na tej stronie