Skip to main content
POST
Start an asset-pack generation operation

Authorizations

Authorization
string
header
required

Mint API key sent as a Bearer token.

Headers

Idempotency-Key
string

Optional stable key for safely retrying an uncertain mutating request. Mint creates an internal key when this header is omitted. Reusing a supplied key with different parameters returns 409.

Required string length: 1 - 255

Body

application/json

A natural-language request for a coordinated Asset Pack. Mint plans the individual assets and shared visual direction.

prompt
string
required

Describe the pack in natural language, including its purpose, desired assets, count, or style when relevant. Example: Create 4 assets for a sci-fi game pack.

Required string length: 1 - 8000
name
string

Optional Asset Pack title shown in Mint; Mint derives one from the prompt when omitted.

Required string length: 1 - 120
generationMode
enum<string>
default:auto

Workflow behavior. auto is the default and continues to final assets; review pauses at Preview for approval or revision. See Preview-based generation.

Available options:
auto,
review
generationPreset
enum<string>
default:standard

Quality, speed, and cost tier applied across the pack.

Available options:
fast,
standard,
production
imageUrl
string<uri>

One public HTTPS reference image shared by the pack; do not combine with sourceImages.

sourceImages
string<uri>[]

Two to eight public HTTPS reference images available to pack items; do not combine with imageUrl.

Required array length: 2 - 8 elements
assetPackType
enum<string>

Optional category override. Mint otherwise infers the best category from the prompt and falls back to general_asset_pack when no specialized category fits.

Available options:
game_asset_pack,
city_asset_pack,
character_asset_pack,
car_asset_pack,
furniture_asset_pack,
vegetation_asset_pack,
food_asset_pack,
animal_asset_pack,
aircraft_asset_pack,
electronics_asset_pack,
industrial_asset_pack,
interior_asset_pack,
clothing_asset_pack,
general_asset_pack
itemCount
integer

Optional exact number of assets to create. If omitted, Mint follows a count in the prompt; if the prompt has no count, Mint creates 8 assets.

Required range: 2 <= x <= 25
styleGuide
string

Optional visual-direction override shared by every asset. Mint infers this from the prompt when omitted.

Required string length: 1 - 4000
Example:

"Low-poly sci-fi props with cool gray metal, cyan accents, and soft studio lighting"

riggingPose
enum<string>

Prepare humanoid character items in the selected neutral pose for later rigging; this does not rig or animate them.

Available options:
t_pose,
a_pose

Response

An earlier request with the same retry key returned this operation.

A long-running operation acting on one Mint asset_pack.

object
string
required

Stable object discriminator.

Allowed value: "operation"
id
string
required

Mint operation ID used for polling.

type
enum<string>
required

The work this operation performs.

Available options:
asset_pack_generation
generationMode
enum<string>
required

Workflow mode for this operation.

Available options:
auto,
review
status
enum<string>
required

Current operation lifecycle status.

Available options:
queued,
running,
preview_ready,
billing_required,
succeeded,
partially_succeeded,
failed,
canceled
resource
object | null
required

The Mint asset created by this operation, or null before the asset exists.

createdAt
string<date-time>
required

When the operation was created.

updatedAt
string<date-time>
required

When the operation last changed.

prompt
string

Developer-supplied generation brief or revision feedback.

generationPreset
enum<string>

Public generation preset selected for this operation.

Available options:
fast,
standard,
production
billing
object

The billing action required before this operation can continue.

credits
object

Credit estimate, active reservation, finalized charge, and post-reservation balance for this operation.

error
object

Terminal failure details when the operation failed.

completedAt
string<date-time>

When the operation completed.

canceledAt
string<date-time>

When the operation was canceled.