Integrations

PowerShell → AI24X

Handy on Windows servers and ops scripts.

Invoke-RestMethod

$key = $env:AI24X_API_KEY $body = @{ prompt = "Hello"; model = "flash"; max_tokens = 200 } | ConvertTo-Json $r = Invoke-RestMethod -Method Post -Uri "https://api.ai24x.com/v1/chat/run" ` -Headers @{ "X-API-Key" = $key; "Content-Type" = "application/json" } ` -Body $body $r | ConvertTo-Json -Depth 6

Do not commit keys into scripts. For VIP named models, set model to vip-kimi etc. after VIP is active.

curl · OpenClaw · Console