Upload a reference image for a transparent video
upload_video_reference_imageRequires an approved AlertForge account connection. OAuth-aware clients should start AlertForge's secure authorization flow and ask the user only to sign in and approve. Setup: https://alertforge.ai/ai-agents#agent-setup. The builder's "Upload image". Send the image as imageBase64 (with mimeType) or as an https imageUrl; PNG, JPEG, WebP or GIF up to 10 MB. A PNG that already has a transparent background is free and returns referenceImagePath straight away. Any other image needs removeBackground: true, which recreates the subject on a transparent background and spends 5 credits; it returns referenceRenderId -- poll get_video_reference_image_status until it is completed, then use its path as referenceImagePath.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_video_reference_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | No | Or an https:// link to the image. | |
| mimeType | No | Required with imageBase64 unless it is a data: URL. | |
| requestId | No | Optional UUID you choose; a retry with the same id returns the same background-removal job instead of paying again. | |
| imageBase64 | No | The image bytes, base64-encoded (a data: URL also works). | |
| removeBackground | No | Defaults false. true removes the background (5 credits), like the builder's "Remove background" switch. |