API Reference
SpiceClient(params)
The top-level object that connects to Spice.ai
params.api_key
(string, optional): API key to authenticate with the endpointparams.http_url
(string, optional):params.flight_url
(string, optional): URL of the endpoint to use (default:localhost:50051
, using local Spice Runtime)
Default connection to local Spice Runtime:
Connect to Spice.AI Cloud Platform:
Or using shorthand:
SpiceClient Methods
queryText
: (string, required): The SQL query to execute
Last updated
Was this helpful?