Serverless API
Model discovery, inference requests, usage, pricing, errors, and safe client patterns.
Base URL
https://serverless.hostnotgpu.ae/v1
Authentication
Send Authorization: Bearer YOUR_API_KEY. Keep keys on a server. Missing or invalid credentials return structured JSON errors.
Model discovery
curl.exe https://serverless.hostnotgpu.ae/v1/models -H "Authorization: Bearer YOUR_API_KEY"$headers = @{ Authorization = "Bearer $env:HOSTNOTGPU_API_KEY" }
Invoke-RestMethod -Method Get -Uri "https://serverless.hostnotgpu.ae/v1/models" -Headers $headersChat inference
curl.exe -X POST https://serverless.hostnotgpu.ae/v1/inference/chat -H "Authorization: Bearer YOUR_API_KEY" -H "Idempotency-Key: request-unique-001" -H "Content-Type: application/json" -d "{"model":"MODEL_SLUG","messages":[{"role":"user","content":"Hello"}]}"$headers = @{ Authorization = "Bearer $env:HOSTNOTGPU_API_KEY"; "Idempotency-Key" = [guid]::NewGuid().ToString() }
$body = @{ model = "MODEL_SLUG"; messages = @(@{ role = "user"; content = "Hello" }) } | ConvertTo-Json -Depth 5
Invoke-RestMethod -Method Post -Uri "https://serverless.hostnotgpu.ae/v1/inference/chat" -Headers $headers -ContentType "application/json" -Body $bodyActual behavior
Chat, image, and video operations are capability-gated. Video may be asynchronous. Streaming is not implemented by the current request schema. OPTIONS returns preflight behavior; unsupported methods return JSON 405; unknown /v1/* routes return JSON 404.
Billing and errors
Requests reserve an estimate and settle against reported usage. Eligible failed requests release their reservation. Common status codes include 400, 401, 403, 404, 405, and 429.
Published · Updated