Riferimento API di Meshy N1
Una nuova finitura per un modello 3D da un’immagine di riferimento, forma invariata
Con una sola chiave API di PopNow chiami Meshy N1 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
- Meshy
- Risultato
- Immagine
- Da
- $0.48 USD per richiesta
- 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.
Ritexturing 3D
meshy/n1/retexture
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.48 per richiesta |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
mesh_urlObbligatorio | string | — | — | The 3D model to texture: a GLB, binary FBX, OBJ or STL file up to 90 MB. The shape is kept as it is; only the texture is replaced. |
reference_image_urlsFacoltativo | array<string> | — | fino a 4 elementi | One to four photos or renders of the object itself, front view first. Use these or reference_image_url, not both. |
reference_image_urlFacoltativo | string | — | — | One image that sets the look of the texture (colours, materials, markings). Use this or reference_image_urls, not both. |
keep_original_uvFacoltativo | boolean | true | — | Reuse the UV layout already in the model. Turn off to let the model unwrap the mesh again. A model without UVs gets new ones either way. |
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 mesh_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": "meshy/n1/retexture",
"input": {
"mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb"
}
}'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"
