Authentication
The Mint API is currently in beta. Email hello@mint.gg for access. After access is enabled, create an API key in Mint from Developer. Send it as a Bearer token:Start a generation
Use action routes to start generation:generationMode can be:
auto: continue without a manual approval pause when the generation can proceed.review: stop at Preview so your app can approve or revise before final generation.
generationPreset can be fast, standard, or production.
Every mutating request requires Idempotency-Key. Reusing a key with the same request safely returns the same operation. Reusing it with different input returns a conflict.
Convert a 3D Model
UsePOST /v1/models:convert to convert a finished 3D Model into additional file formats.
Supported target formats are:
glbobjstlusdzfbx
objUrl and fbxUrl remain the primary download URLs. For new conversions
they may point to ZIP packages that include the converted model, material files,
and texture images. Read conversion.assets.artifacts when your app needs the
download filename, content type, package type, byte size, or primary file path
inside the package.
For a Mint-generated model, pass the model ID:
Track progress
Generation takes time. A start request returns an operation and aLocation header:
GET /v1/operations/{operationId} until the status is preview_ready, succeeded, failed, or canceled.
When an operation has a generated resource, mintUrl links to the World or 3D Model on Mint. When an operation succeeds, assets includes the generated files your app needs. World assets include fields such as panoUrl, colliderMeshUrl, spzUrls, thumbnailUrl, and caption. 3D Model assets include fields such as optimizedGlbUrl, glbUrl, thumbnailUrl, and previewImageUrl.
Optimize a 3D Model
UsePOST /v1/models/{modelId}:optimize to prepare a smaller GLB for delivery:
optimizationLevel can be:
light: preserve more visual detail with less compression.moderate: balance visual quality and file-size reduction. This is the default.aggressive: reduce file size most, with more possible fidelity loss.
glbUrl remains available, and the optimized file appears as assets.optimizedGlbUrl when the operation succeeds.
Conversion operations use the same polling endpoint. They return
type: "model_conversion", prompt: null, and converted file URLs under
conversion.assets, such as fbxUrl, objUrl, stlUrl, usdzUrl, or
glbUrl. Packaged OBJ and FBX outputs still use objUrl and fbxUrl as
their primary URLs, while conversion.assets.artifacts describes whether each
output is a single file or a ZIP package.
List generated resources
UseGET /v1/worlds and GET /v1/models to list resources generated through your API project:
data and pagination.nextCursor. Pass cursor to fetch the next page. These list endpoints only return resources created through the Mint API for the authenticated project.
Check credits and usage
UseGET /v1/usage to check the authenticated Mint account’s available Credits and aggregate API usage:
credits, subscription, and compact apiUsage totals.