von Tripo

3D-Modelle zwischen GLB, FBX und STL konvertieren, Skelette behalten und optional dezimieren, quad-remeshen oder Boden abflachen.

tripo/tools/convert
Tripo 3D Tools KI-Bildgenerator online
  • 3D-Rigging
  • 3D-Animation
  • 3D-Konverter
  • 3D-Neutexturierung

Du rufst es mit dem Modellnamen tripo/tools/convert über POST /jobs/createTask auf, ab 0,072 $.

Modellnametripo/tools/convert
EndpunktPOST https://api.popnow.ai/api/v1/jobs/createTask
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
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: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "tripo/tools/convert",
  "input": {
    "mesh_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "output_format": "glb",
    "texture_size": 4096,
    "texture_format": "jpeg",
    "scale_factor": 1
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Das Feld input entspricht dem Schema unten und ist bereits gültig. Ersetze den Prompt und die Links durch deine eigenen Angaben.

Preis

OptionUSD pro Ausführung
Standard0,072 $

Abrechnung in USD · Alle Optionen und Preise: GET /models/tripo/tools/convert

Limits

Größter Upload
90 MB

Parameter

Diese Felder stammen aus demselben Schema, gegen das wir jede Anfrage prüfen. Nicht aufgeführte Felder werden abgelehnt.

  • mesh_urlstringPflicht

    Das 3D-Modell, mit dem du arbeitest, zum Beispiel eines, das du mit Bild zu 3D erstellt hast.

    Bereich
    Zeichenanzahl: ≥ 1 · model/gltf-binary, model/x-fbx, model/obj, model/stl · ≤ 90 MB
  • output_formatstringPflicht

    Dateiformat des Ergebnisses.

    Erlaubte Werte
    "glb""fbx""stl"
  • quad_meshbooleanOptionalBeeinflusst den Preis

    Vierseitige (Quad-)Polygone statt Dreiecke zurückgeben, zur Bearbeitung in Modellierprogrammen; die Datei kommt dann als FBX statt GLB zurück. Standardmäßig aus; erhöht den Preis.

    Standardwert
    false
  • face_limitintegerOptionalBeeinflusst den Preis

    Ziel-Flächenanzahl von 1.000 bis 2.000.000. Leer lassen, damit das Modell entscheidet (oft über eine Million Flächen). Ändert den Preis nicht.

    Bereich
    48 – 2000000
  • texture_sizeintegerOptionalBeeinflusst den Preis

    Kantenlänge der exportierten Texturen in Pixeln.

    Standardwert
    4096
    Bereich
    128 – 8192
  • texture_formatstringOptionalBeeinflusst den Preis

    Bildformat der exportierten Texturen.

    Standardwert
    "jpeg"
    Erlaubte Werte
    "jpeg""png""webp"
  • pivot_to_bottombooleanOptionalBeeinflusst den Preis

    Verschiebt den Pivot in die Mitte der Basis, damit das Modell in einer Szene auf dem Boden steht.

    Standardwert
    false
  • scale_factornumberOptionalBeeinflusst den Preis

    Skaliert das ganze Modell beim Export. 1 behält die Originalgröße bei.

    Standardwert
    1
    Bereich
    0.001 – 1000
  • flatten_bottombooleanOptionalBeeinflusst den Preis

    Flacht die Unterseite des Modells ab, damit es stehen kann. Nützlich für den 3D-Druck.

    Standardwert
    false
  • forward_axisstringOptional

    In welche Achse das Modell in der exportierten Datei zeigt. Engines verwenden unterschiedliche Konventionen.

    Standardwert
    "+x"
    Erlaubte Werte
    "+x""-x""+y""-y"
  • fbx_presetstringOptional

    Kompatibilitäts-Voreinstellung für FBX-Dateien, für Blender, 3ds Max, Mixamo und andere Tools.

    Standardwert
    "blender"
    Erlaubte Werte
    "blender""3dsmax""mixamo""bake_scale"
  • bake_texturesbooleanOptional

    Erweiterte Materialien in die Basistexturen einbacken, damit andere Tools die Materialien korrekt anzeigen.

    Standardwert
    true
  • keep_animationbooleanOptional

    Behält Skelett und Bewegungen. Für ein statisches Mesh ausschalten.

    Standardwert
    true
  • in_placebooleanOptional

    Die Bewegungen auf der Stelle abspielen, ohne nach vorn zu gehen, zum Beispiel für Spielfiguren, die ein Controller steuert. Ändert den Preis nicht.

    Standardwert
    false
JSON-Schema anzeigen
{
  "additionalProperties": false,
  "properties": {
    "bake_textures": {
      "default": true,
      "description": "Bake advanced materials into the base textures. Does not change the price.",
      "type": "boolean"
    },
    "face_limit": {
      "description": "Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate.",
      "maximum": 2000000,
      "minimum": 48,
      "type": "integer"
    },
    "fbx_preset": {
      "default": "blender",
      "description": "Compatibility preset for FBX exports. Does not change the price.",
      "enum": [
        "blender",
        "3dsmax",
        "mixamo",
        "bake_scale"
      ],
      "type": "string"
    },
    "flatten_bottom": {
      "default": false,
      "description": "Flatten the underside of the model, useful for 3D printing. Uses the higher rate.",
      "type": "boolean"
    },
    "forward_axis": {
      "default": "+x",
      "description": "Axis the model faces in the exported file. Does not change the price.",
      "enum": [
        "+x",
        "-x",
        "+y",
        "-y"
      ],
      "type": "string"
    },
    "in_place": {
      "default": false,
      "description": "Remove forward movement from animation clips during export. Does not change the price.",
      "type": "boolean"
    },
    "keep_animation": {
      "default": true,
      "description": "Keep skeleton and animation data. Turn off for a static mesh. Does not change the price.",
      "type": "boolean"
    },
    "mesh_url": {
      "contentMediaType": [
        "model/gltf-binary",
        "model/x-fbx",
        "model/obj",
        "model/stl"
      ],
      "description": "The 3D model to convert: a GLB, binary FBX, OBJ or STL file up to 90 MB. Skeleton and animation are carried over by default.",
      "minLength": 1,
      "type": "string"
    },
    "output_format": {
      "description": "Target format: glb for browsers and web games, fbx for animation software and engines, stl for 3D printing (geometry only). Does not change the price.",
      "enum": [
        "glb",
        "fbx",
        "stl"
      ],
      "type": "string"
    },
    "pivot_to_bottom": {
      "default": false,
      "description": "Move the pivot to the centre of the model's base. Uses the higher rate.",
      "type": "boolean"
    },
    "quad_mesh": {
      "default": false,
      "description": "Remesh to four-sided polygons (about 10,000 faces unless face_limit is set). Requires output_format fbx. Uses the higher rate.",
      "type": "boolean"
    },
    "scale_factor": {
      "default": 1,
      "description": "Uniform scale for the exported model. Any value other than 1 uses the higher rate.",
      "maximum": 1000,
      "minimum": 0.001,
      "type": "number"
    },
    "texture_format": {
      "default": "jpeg",
      "description": "Image format of the exported textures. png or webp uses the higher rate.",
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "type": "string"
    },
    "texture_size": {
      "default": 4096,
      "description": "Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate.",
      "maximum": 8192,
      "minimum": 128,
      "type": "integer"
    }
  },
  "required": [
    "mesh_url",
    "output_format"
  ],
  "type": "object"
}

Ein echtes Ergebnis von Tripo 3D Tools

Dieselbe Anfrage über die API
{
  "model": "tripo/tools/convert",
  "input": {
    "mesh_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "output_format": "stl",
    "texture_size": 4096,
    "texture_format": "jpeg",
    "scale_factor": 1
  }
}

Dieses Ergebnis startete mit einer hochgeladenen Datei: Setz deinen eigenen Link dort ein, wo der Beispiel-Link steht.

Antworten, Polling und Callbacks

Der Ablauf ist für alle Modelle gleich: Erstelle einen Auftrag und frage seinen Status ab oder warte auf den Callback.

Erst den Preis prüfen

cURL
curl -X POST https://api.popnow.ai/api/v1/jobs/quote \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "tripo/tools/convert",
  "input": {
    "mesh_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "output_format": "glb",
    "texture_size": 4096,
    "texture_format": "jpeg",
    "scale_factor": 1
  }
}'

Sende vor dem Start denselben Anfrage-Body an POST /jobs/quote, um die geschätzten und maximalen Kosten in USD zu sehen. Die Preisabfrage führt keine Aufgabe aus und belastet dein Guthaben nicht.

Angenommen

HTTP
HTTP/1.1 202 Accepted

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_01k3m8x9q2z4v7n5p6r8s0t1w3",
    "state": "queued"
  },
  "request_id": "req_example_create"
}

HTTP 202 bedeutet angenommen: Der USD-Höchstbetrag bleibt bis zur Abrechnung reserviert. Bei Annahme einer Aufgabe reservieren wir den maximalen Angebotsbetrag aus deinem PopNow-Guthaben. Nach Abschluss rechnen wir den tatsächlichen Verbrauch ab, höchstens den reservierten Betrag, und geben den Rest frei. Schlägt die Aufgabe fehl, wird die Reservierung aufgehoben.

Status abfragen

cURL
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Frage den Status im Abstand einiger Sekunden ab und verlängere die Abstände schrittweise. Beende die Abfrage, sobald state den Wert succeeded, failed, canceled oder expired hat.

Abgeschlossener Auftrag

JSON
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_01k3m8x9q2z4v7n5p6r8s0t1w3",
    "model": "tripo/tools/convert",
    "state": "succeeded",
    "output": {
      "assets": [
        {
          "url": "https://cdn.popnow.ai/tasks/task_01k3m8x9q2z4v7n5p6r8s0t1w3/output.png?signature=FROM_RESPONSE",
          "expiresAt": "2026-10-17T12:20:00Z",
          "mime": "image/png",
          "width": 1024,
          "height": 1024
        }
      ]
    },
    "settled": true
  },
  "request_id": "req_example_record"
}

Lade die Datei über url vor dem unter expiresAt angegebenen Zeitpunkt herunter. Einen neuen Downloadlink erhältst du mit POST /common/download-url.

Callback prüfen

Node.js
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
import express from "express";

const app = express();
// express.raw keeps the exact bytes that were signed; express.json would not match.
app.post("/hooks/popnow", express.raw({ type: "application/json" }), (req, res) => {
  const timestamp = req.header("X-Webhook-Timestamp");
  const signature = req.header("X-Webhook-Signature") ?? "";
  const body = JSON.parse(req.body.toString("utf8"));
  const taskId = body.data?.taskId ?? body.task_id;
  const digest = createHash("sha256").update(req.body).digest("hex");
  const expected = createHmac("sha256", process.env.POPNOW_WEBHOOK_SECRET)
    .update(`${taskId}.${timestamp}.${digest}`)
    .digest("base64");
  const ok = expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
  // Check the signature first, then reject anything older than five minutes.
  if (!ok || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return res.status(401).end();
  res.status(200).end(); // answer fast, then fetch the task and store its files
});

Wenn du callBackUrl angibst, senden wir dir den abgeschlossenen Auftrag. Prüfe die Signatur anhand des unveränderten Bodys der Webhook-Anfrage, bevor du ihren Inhalt verarbeitest.

Lokale Datei hochladen

cURL
curl -X POST https://api.popnow.ai/api/v1/common/upload-url \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contentType": "image/png", "bytes": 482113}'

# PUT the file bytes to data.uploadUrl with every header in data.headers, then commit it:
curl -X POST https://api.popnow.ai/api/v1/files/$FILE_ID/commit \
  -H "Authorization: Bearer $POPNOW_API_KEY"
# The commit returns a popnow://f/... reference. Put it in any image, video or
# audio field of the task input instead of a public https URL.

Öffentliche https-Links kannst du direkt verwenden. Lokale Dateien lädst du zunächst mit upload-url hoch und bestätigst sie mit commit.