aip_execute_with_budget
Run an AI task end-to-end with a hard spending cap you set. This is the primary AIP action: it resolves the best provider, runs a risk check, pre-deducts against your budget, executes the call, and settles on-chain via x402 — all in one step. You never overspend past max_total_usd, and settlement is automatic. Supports chat, image, video, speech, prompt optimization, web search, and knowledge search intents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | The intent type | |
| payload | Yes | The actual request payload (e.g. {model, messages} for chat, {prompt, size} for images) | |
| max_total_usd | No | Maximum budget for this request in USD (hard cap) | |
| preferred_payment | No | Payment method preference | auto |