Skip to main content

Usage

Run an endpoint and pay for that one call. The idempotency key is generated and shown when omitted — retry an ambiguous failure with the same key and you get the original Run back instead of a second charge.

Flags

Wait for a result

Without --wait, an asynchronous Endpoint can return a QUEUED or RUNNING Run. Use --wait to poll for a terminal status. --wait-timeout must be a positive integer in seconds and defaults to 300. A wait timeout exits with code 1; it does not stop the Run. Resume waiting with glasser runs get -r <runId> --wait. Check status, provider_response.http_status, and charge_usd separately. Pass --task to keep the Run with its search and inspection. See keeping calls in one Task. See CLI conventions for global flags, JSON mode, exit codes, and environment variables.

Provider errors

For a Provider error, the CLI displays its HTTP status and error body. With --json, read provider_response.http_status and provider_response.error in the returned Run. A COMPLETED status alone does not mean the Provider accepted the request. See Run response handling.