PopNowDocs API
Contenuto principale

Riferimento API di Seedream 5.0 Pro

Immagini e modifiche ricche di dettagli con fino a dieci riferimenti

Con una sola chiave API di PopNow chiami Seedream 5.0 Pro 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
ByteDance
Risultato
Immagine
Da
$0.036 USD per immagine
Tempo tipico
circa 63 s

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.

Crea immagine

bytedance/seedream-5.0-pro/text-to-image

Prezzo

OpzioneUSD
1k$0.036 per immagine
1.5k$0.047 per immagine
2k$0.072 per immagine

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
promptObbligatoriostring—fino a 5000 caratteriDescribe the image to generate: subject, composition, style, and lighting.
aspect_ratioFacoltativostring1:11:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2, 3:1, … (+1)Output aspect ratio.
resolutionFacoltativostring2k1k, 1.5k, 2kOutput resolution tier.
output_formatFacoltativostringjpegjpeg, pngFile format of the returned image.
enable_thinkingFacoltativobooleantrue—Run a thinking pass that refines the prompt before generating. Off is faster.

Richiesta di esempio

Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.

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": "bytedance/seedream-5.0-pro/text-to-image",
  "input": {
    "prompt": "A cozy reading nook beside a rain-streaked window, warm lamp light, a sleeping orange cat on a knitted blanket, soft film grain",
    "resolution": "2k"
  }
}'

La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.

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"

Modifica immagine

bytedance/seedream-5.0-pro/edit

Prezzo

OpzioneUSD
1k$0.036 per immagine
1.5k$0.04 per immagine
2k$0.072 per immagine

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
promptObbligatoriostring—fino a 5000 caratteriDescribe the image to produce from the source: subject, composition, style, and lighting.
image_urlsObbligatorioarray<string (uri)>—fino a 10 elementiSource images that you are authorised to process.
aspect_ratioFacoltativostringautoauto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2, … (+2)Output aspect ratio. auto picks the supported ratio closest to the first reference image.
resolutionFacoltativostring2k1k, 1.5k, 2kOutput resolution tier.
output_formatFacoltativostringjpegjpeg, pngFile format of the returned image.
backgroundFacoltativostringopaqueopaque, transparentOpaque image, or a PNG with a transparent background (png output, one PNG input with alpha).
enable_thinkingFacoltativobooleantrue—Run a thinking pass that refines the prompt before generating. Off is faster.

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_urls. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.

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": "bytedance/seedream-5.0-pro/edit",
  "input": {
    "prompt": "Change the orange jacket to deep forest green and add soft golden-hour light; keep the face, pose and background unchanged",
    "image_urls": [
      "https://media.popnow.ai/influencer/examples/marco.webp"
    ],
    "resolution": "2k"
  }
}'

La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.

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"

Separatore di livelli

bytedance/seedream-5.0-pro/layer-decomposition

Prezzo

OpzioneUSD
1.5k$0.042 per immagine
1k$0.042 per immagine
2k$0.084 per immagine
auto$0.091 per immagine

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
image_urlObbligatoriostring (uri)——The finished image to split into layers.
promptFacoltativostring—fino a 5000 caratteriOptional: name the elements to separate. Leave empty to let the model pick the main elements.
resolutionFacoltativostring1.5kauto, 1k, 1.5k, 2kOutput resolution tier. auto follows the size of the source image.
output_formatFacoltativostringjpegjpeg, pngFile format of the base image. Layers are always transparent PNG.

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.

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": "bytedance/seedream-5.0-pro/layer-decomposition",
  "input": {
    "prompt": "A bright, cheerful scene with soft natural light",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "resolution": "1.5k"
  }
}'

La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.

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"

Passi successivi

In questa pagina