Back to Tool Reference
MCP

mockup.generate

Quote or start mockup generation for a finished design.

EffectwritesReachesoutside VaybelScopemockup:writePlanStarter+Credits2 eachRate limit20/minIdempotent

Parameters

design_idstringRequired

UUID of the finished design to make mockups for.

kindsstring[]

What to make. Individual shots — product_front, product_back, print_front, print_back, fabric_details, model_front, model_side, model_back, lifestyle_model, lifestyle_product — or groups of them: "flat" (both product photos), "detail_closeup" (every close-up this design supports), "vto" (all three model views), "lifestyle". Defaults to ["flat"]. Shots that need another image (a model photo needs the product photo of that side) pull it in and it is quoted too. A shot or group that cannot be made for this design is refused with the reason; call with dry_run=true to see every shot's availability.

audience_keystring

Required for model and lifestyle-model shots — the audience whose virtual model wears the design (see brand_dna.get for keys). Call virtual_model.generate first if no model exists.

genderstring

Optional model gender ("men" or "women"), for unisex products that support both. It must be a gender the audience and the product share, with a finished (CREATED) virtual model. Omit to use the first such gender. One gender per call.

qualitystringDefault: "pro"

"pro" makes AI-enhanced product photos and is the recommended choice. "standard" is the basic free quality: provider or native flats with no AI enhancement. Applies to product photos, including the flats a print close-up needs first.

environment_idstring

Use an environment_options id from the quote: automatic for saved Brand DNA, a preset, or an adopted custom environment. Defaults to the brand's selected environment, then its Brand DNA. Existing product sets keep their frozen scene. Never changes the saved brand default.

dry_runbooleanDefault: false

Return the quote without creating or generating anything: every shot's availability (with a reason when unavailable), which images already exist and are reused free, which prerequisite images are added, and the credit total.

max_creditsinteger

Refuse, without generating anything, if the quote exceeds this. Pass the credits from a dry run to never pay more than you reviewed.

idempotency_keystring

Send the same key when retrying this exact call. A completed request replays for 24 hours without running or billing again.

callback_urlstring

An https URL that receives a signed completion event when the work finishes, so you can skip polling. See Webhooks.

Returns

handlestring | null

Pass to mockup.get_generation. null when every requested mockup already existed (status complete): their IDs are in mockup_ids and there is nothing to poll. Absent on a dry run.

status"pending" | "complete" | "quote"
mockup_idsstring[]

The mockup uuids this call covers (dispatched or already existing).

credit_unitsint

Mockups dispatched. 0 on a no-op or dry run.

creditsint

Credits quoted for the new images. Each image is charged only when it renders, so a failed render costs nothing.

quoteobject

Per-shot lines (shots), new_images, existing_images, model and environment.

messagestring

Describes the mockup.get_generation(..., wait_sec=...) contract.

Request
json
{
  "name": "mockup.generate",
  "arguments": {
    "design_id": "e4a1c7b2-3f58-4c9d-a6e0-9b2d7f1c5a38",
    "kinds": [
      "flat"
    ]
  }
}
Response
json
{
  "handle": "7503bcc2-516d-483e-b3d6-af275226601c",
  "status": "pending",
  "credit_units": 2,
  "credits": 4,
  "quote": {
    "shots": [
      {
        "shot": "product_front",
        "label": "Front product",
        "category": "product",
        "status": "new",
        "included": true,
        "credits": 2,
        "reason": "",
        "required_by": [],
        "design_id": "e4a1c7b2-3f58-4c9d-a6e0-9b2d7f1c5a38",
        "color": "Pepper",
        "mockup_id": null
      },
      {
        "shot": "product_back",
        "label": "Back product",
        "category": "product",
        "status": "new",
        "included": true,
        "credits": 2,
        "reason": "",
        "required_by": [],
        "design_id": "e4a1c7b2-3f58-4c9d-a6e0-9b2d7f1c5a38",
        "color": "Pepper",
        "mockup_id": null
      }
    ],
    "credits": 4,
    "new_images": 2,
    "existing_images": 0,
    "product_quality": "pro",
    "model": null,
    "environment": {
      "id": "automatic",
      "name": "From your brand"
    },
    "environment_options": [
      {
        "id": "automatic",
        "name": "From your brand"
      },
      {
        "id": "cafe",
        "name": "Warm café"
      }
    ],
    "environment_locked": false
  },
  "mockup_ids": [
    "24b10117-0876-4f40-9ebf-c09109c7ea3d",
    "715d0de7-ba61-441a-9026-542c480b9ccb"
  ],
  "message": "Mockup generation queued. Call mockup.get_generation(handle, wait_sec=0) for an instant snapshot, or set wait_sec>0 to long-poll until the mockups complete/fail or the timeout expires. handle is null when everything already existed —…"
}