API Examples
Equivalent cURL, PowerShell, Python, and JavaScript request patterns using placeholder credentials.
Public GPU availability
cURL
curl.exe https://api.hostnotgpu.ae/v1/public/gpu-availabilityPowerShell
Invoke-RestMethod -Method Get -Uri "https://api.hostnotgpu.ae/v1/public/gpu-availability"Python
import requests
feed = requests.get("https://api.hostnotgpu.ae/v1/public/gpu-availability").json()JavaScript / TypeScript
const feed = await fetch("https://api.hostnotgpu.ae/v1/public/gpu-availability").then((response) => response.json());Authenticated model discovery
curl.exe https://api.hostnotgpu.ae/v1/models -H "Authorization: Bearer YOUR_API_KEY"$headers = @{ Authorization = "Bearer $env:HOSTNOTGPU_API_KEY" }
Invoke-RestMethod -Method Get -Uri "https://api.hostnotgpu.ae/v1/models" -Headers $headersSafety
Use environment variables or a server-side secret store for API keys. Use a unique idempotency key for retryable mutations and never log an Authorization header.
Published · Updated