# generate_video (https://sellersheetai.com/docs/mcp-api/tools/generate_video)

> Make a product video from a prompt and up to 30 reference images.

Access: **WRITE** · toolset sellersheet · family null

Returns a job receipt — poll check_video_job every 30 s until status is 'done', then read video_url. Charged once the video service accepts the job, at the option's price (list_video_options); a failed or cancelled video is refunded in full, and a request the service refuses costs nothing. HTTP 402 insufficient_credits when the balance is below the price — top up at sellersheetai.com/billing.

## Call it

MCP tool call:

```json
{
  "name": "generate_video",
  "arguments": {
    "store": "myStore-US",
    "sku": "<sku>",
    "prompt": "<prompt>",
    "option_id": "<option_id>",
    "seconds": 1,
    "resolution": "<resolution>"
  }
}
```

Tool API (early access — contact us):

```bash
curl -X POST https://api.sellersheetai.com/api/v1/tools/generate_video \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store":"myStore-US","sku":"<sku>","prompt":"<prompt>","option_id":"<option_id>","seconds":1,"resolution":"<resolution>"}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `store` | string | yes | the store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim. Required. |
| `sku` | string | yes | the SKU the video is for. Required. |
| `prompt` | string | yes | what the video shows: the subject, its action and the camera movement. |
| `option_id` | string | yes | from list_video_options; required. It decides the model and the price. |
| `seconds` | integer | yes | the video's length; required. Use a length the option's description allows; an option billed per second is charged for each second asked. |
| `resolution` | string | yes | required. For an option that lists resolutions, one of them (its price); otherwise one its description states, e.g. '720p'. |
| `size` | string |  | a pixel size, only for options whose description asks for one (e.g. '1376x768'); it must agree with resolution. When given, the size alone is sent and resolution only sets the price. |
| `aspect_ratio` | string |  | e.g. '16:9' or '9:16', where the option supports it. |
| `images` | object[] |  | reference images as public URLs (a cdn_url from generate_image or edit_image works), up to the number the option's description allows. |

## Result

- `data.job_id` — the receipt — poll check_video_job.
- `data.credits.charged / data.credits.balance` — this video's price and what is left.

## Gotchas

- Never resubmit a 'processing' job: a resubmit is a new, charged video. Re-run only on status 'error'.