CosmicAC Logo

How to connect to Managed Inference

Configure the CosmicAC CLI and send your first inference request to the Managed Inference service.


Prerequisites


Initialize the inference CLI

Run the interactive setup to configure the CLI with your API key:

cosmicac inference init

Follow the prompts:

PromptDescription
ProtocolThe inference protocol to use (default: HTTP)
API keyThe API key you created in the prerequisite step
Default modelThe model to use for inference requests

The CLI stores your configuration locally. You do not need to provide the key again for subsequent requests.

Send a request

cosmicac inference chat --message "Explain quantum computing."

A successful response confirms your connection to Managed Inference.


Next steps

On this page