Riferimento API di 3D to Video
Imposta l’inquadratura in 3D grigio, dipingi un fotogramma e ottieni il clip finito con lo stesso movimento di camera
Con una sola chiave API di PopNow chiami 3D to Video 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
- PopNow
- Risultato
- Video
- Da
- $0.048 USD per secondo generato
- 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.
Da 3D a video
popnow/3d-to-video-v1/video-edit
Prezzo
| Opzione | USD |
|---|---|
720p | $0.048 per secondo generato |
1080p | $0.12 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
video_urlObbligatorio | string | — | — | The layout, 1 to 120 seconds long: a grey or clay render of your 3D scene (24 fps works best). It sets the camera move, motion, timing and aspect ratio. |
image_urlObbligatorio | string | — | — | The look: the layout's first frame restyled with an image model (palette, lighting, materials). Do not send the grey frame itself. |
promptObbligatorio | string | — | fino a 2000 caratteri | One or two sentences describing the finished shot, matching the look image. Do not mention clay, 3D or the layout. |
last_image_urlFacoltativo | string | — | — | Optional: the layout's last frame restyled in the same style, to keep the look steady in shots longer than about three seconds. |
resolutionFacoltativo | string | 1080p | 720p, 1080p | Output resolution; the layout's aspect ratio is kept. Sets the per-second rate. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Optional seed to repeat a result. Leave empty for a random one. |
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, video_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": "popnow/3d-to-video-v1/video-edit",
"input": {
"prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"resolution": "1080p"
}
}'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"
