Riferimento API di Ideogram 4.5
Testo leggibile per poster ed etichette in 1K o 2K.
Con una sola chiave API di PopNow chiami Ideogram 4.5 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
- Ideogram
- Risultato
- Immagine
- Da
- $0.011 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.
Crea immagine
ideogram/4.5/text-to-image
Prezzo
| Opzione | USD |
|---|---|
low | $0.034 per immagine |
medium | $0.068 per immagine |
high | $0.247 per immagine |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | fino a 10.000 caratteri | Describe the image. Put any words that must appear on it in quotes. |
aspect_ratioFacoltativo | string | 1:1 | 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16 | Frame shape of the image. |
qualityFacoltativo | string | medium | low, medium, high | Render quality. Higher quality costs more; very_low is for edits only. |
resolutionFacoltativo | string | 1k | 1k, 2k | Output size: 1k is about 1 megapixel, 2k about 4. Both cost the same. |
enable_prompt_expansionFacoltativo | boolean | false | — | Let the model expand a short prompt into a fuller description before drawing. |
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" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "ideogram/4.5/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",
"quality": "medium"
}
}'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
ideogram/4.5/edit
Prezzo
| Opzione | USD |
|---|---|
very_low | $0.011 per immagine |
low | $0.034 per immagine |
medium | $0.068 per immagine |
high | $0.247 per immagine |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | fino a 10.000 caratteri | Say what to change. Put any words that must appear in quotes. Refer to guide images as Image 1, Image 2 and so on. |
image_urlObbligatorio | string (uri) | — | — | The image to edit: JPEG, PNG or WebP. |
mask_urlFacoltativo | string (uri) | — | — | Optional black-and-white mask: white marks the area to change. |
reference_image_urlsFacoltativo | array<string (uri)> | — | fino a 4 elementi | Up to four style or content guides (three when a mask is set). |
aspect_ratioFacoltativo | string | — | 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16 | Frame shape of the result. Leave it unset to keep the source shape. |
qualityFacoltativo | string | medium | very_low, low, medium, high | Render quality. Higher quality costs more; very_low is for edits only. |
resolutionFacoltativo | string | 1k | 1k, 2k | Output size: 1k is about 1 megapixel, 2k about 4. Both cost the same. |
edit_precisionFacoltativo | string | regular | regular, high | high keeps changes tighter to what you asked for. |
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": "ideogram/4.5/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_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"quality": "medium"
}
}'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"
