Riferimento API di Qwen Image 3.0 Pro
Tipografia curata e pelle, tessuti e vetro realistici
Con una sola chiave API di PopNow chiami Qwen Image 3.0 Pro dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanti crediti costa ogni richiesta 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
- Alibaba
- Risultato
- Immagine
- Da
- 6 crediti per immagine ($0.06)
- Tempo tipico
- circa 36 s
1 credito = 0,01 $. All’accettazione l’attività trattiene l’importo massimo possibile e alla fine addebita il consumo reale, arrotondato al credito superiore; il resto viene sbloccato. Le attività non riuscite non vengono addebitate. Per conoscere la cifra esatta prima di eseguire, chiama POST /api/v1/jobs/quote.
Crea immagine
alibaba/qwen-image-3.0-pro/text-to-image
Prezzo
| Opzione | Crediti (per immagine) | Dollari USA |
|---|---|---|
1k | 6 | $0.06 |
2k | 11.25 | $0.1125 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | fino a 5000 caratteri | Describe the subject, composition, lighting, and any text to render. |
aspect_ratioFacoltativo | string | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 | Output aspect ratio. |
resolutionFacoltativo | string | 2k | 1k, 2k | Output image resolution tier. |
num_outputsFacoltativo | integer | 1 | da 1 a 1 | Number of output images. |
enable_prompt_expansionFacoltativo | boolean | true | — | Let the service rewrite and expand the prompt before generation. |
negative_promptFacoltativo | string | — | fino a 2000 caratteri | Describe elements to exclude from the image. |
prompt_optimization_modeFacoltativo | string | direct | direct, agent | How prompt expansion rewrites the brief: single pass, or a multi-step agent rewrite. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
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": "alibaba/qwen-image-3.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",
"num_outputs": 1,
"resolution": "2k"
}
}'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"Modifica immagine
alibaba/qwen-image-3.0-pro/edit
Prezzo
| Opzione | Crediti (per immagine) | Dollari USA |
|---|---|---|
1k | 6 | $0.06 |
2k | 11.25 | $0.1125 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | fino a 5000 caratteri | Describe the subject, composition, lighting, and any text to render. |
image_urlsObbligatorio | array<string (uri)> | — | fino a 3 elementi | Reference images in the order used by the editing instruction. |
aspect_ratioFacoltativo | string | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 | Output aspect ratio. |
resolutionFacoltativo | string | 2k | 1k, 2k | Output image resolution tier. |
num_outputsFacoltativo | integer | 1 | da 1 a 1 | Number of output images. |
enable_prompt_expansionFacoltativo | boolean | true | — | Let the service rewrite and expand the prompt before generation. |
negative_promptFacoltativo | string | — | fino a 2000 caratteri | Describe elements to exclude from the image. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons. |
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.
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": "alibaba/qwen-image-3.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"
],
"num_outputs": 1,
"resolution": "2k"
}
}'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"
