Back to Tool Reference
MCP

virtual_model.generate

Generate the virtual models an audience is missing.

EffectwritesReachesoutside VaybelScopevirtual_model:writePlanStarter+Credits1 eachRate limit10/minIdempotent

Makes one model for each gender in the audience that has no finished (CREATED) model yet, so it is safe to call again. Each model generated is charged; models created automatically when an audience is first saved are free. When every model already exists, nothing is generated or charged and handle is null.

Parameters

audience_keystringRequired

Audience to generate for (see brand_dna.get).

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

The task id; pass to virtual_model.get_generation. null when nothing needed generating.

audience_keystring
status"pending" | "complete"
credit_unitsint

Models being generated (= credits charged).

virtual_model_idsstring[]

Already-existing model ids (when complete).

messagestring

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

Request
json
{
  "name": "virtual_model.generate",
  "arguments": {
    "audience_key": "night_shift_creatives"
  }
}
Response
json
{
  "handle": "09714570-805e-4883-ab65-07da921192c9",
  "audience_key": "night_shift_creatives",
  "status": "pending",
  "credit_units": 1,
  "virtual_model_ids": [],
  "message": "Virtual model generation queued. Call virtual_model.get_generation(handle, wait_sec=0) for an instant snapshot, or wait_sec>0 to long-poll until generation completes/fails or times out."
}