All integrations

PowerShell with Meridian

Call Meridian chat completions from any Windows automation script, CI pipeline, or administrative tooling using native PowerShell cmdlets — no SDK required.

Quick start

Set your API key as an environment variable, then call Invoke-RestMethod with a standard chat completion payload.

$env:MERIDIAN_KEY = 'nim_live_***'

$body = @{
  model      = 'azure-swc/gpt-4.1'
  messages   = @(
    @{ role = 'user'; content = 'hello' }
  )
} | ConvertTo-Json -Depth 4

Invoke-RestMethod -Method POST \
  -Uri 'https://meridian.getnimbus.net/api/v1/chat/completions' \
  -Headers @{ Authorization = "Bearer $env:MERIDIAN_KEY" } \
  -ContentType 'application/json' \
  -Body $body

One-liner test

$body = @{model='azure-swc/gpt-4.1';messages=@(@{role='user';content='hello'})} | ConvertTo-Json -Depth 4 ; Invoke-RestMethod -Method POST -Uri 'https://meridian.getnimbus.net/api/v1/chat/completions' -Headers @{Authorization='Bearer nim_live_***'} -ContentType 'application/json' -Body $body

Streaming

Add stream = $true to the request body and pipe the response through ConvertFrom-Json line-by-line. Each chunk carries a delta object inside choices[0].delta.content.

Keep your key out of scripts checked into source control. Use $env:MERIDIAN_KEY or a secrets vault.