api_video_aspect_fit
Compute aspect-ratio-safe crop and letterbox geometry for video deliveries at target resolution. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_width": "<source_width>",
"source_height": "<source_height>",
"target_width": "<target_width>",
"target_height": "<target_height>",
"mode": "<mode>"
},
"name": "api_video_aspect_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | mode; see operation description for units and format | |
| source_width | Yes | source width; see operation description for units and format | |
| target_width | Yes | target width; see operation description for units and format | |
| source_height | Yes | source height; see operation description for units and format | |
| target_height | Yes | target height; see operation description for units and format |