Skip to content

ApoAlly API#

Code Examples#

Powershell#

```powershell $apiUrl = “https://api.apoally.de/api/chat/completions” $headers = @{ “Authorization” = “Bearer YOUR_API_KEY” “Content-Type” = “application/json” } $body = @{ model = “apoally” messages = @( @{ role = “user” content = “Please provide me with the latest information on the hospital reform.” } ) temperature = 0.7 } | ConvertTo-Json -Depth 10 $response = Invoke-RestMethod -Uri $apiUrl -Headers $headers -Method Post -Body $body $response.choices[0].message.content