{
"openapi": "3.1.0",
"info": {
"title": "CloudGPU API",
"version": "1.8.0",
"summary": "Compute infrastructure for AI agents: source-specific GPU billing and a model API.",
"description": "CloudGPU (cloudgpu.app) offers two things behind one API key:\n\n1. **Model API**: an OpenAI-compatible endpoint (`/v1/chat/completions`, `/v1/images/generations`, `/v1/audio/*`) and the Claude Messages format (`/v1/messages`). Use any OpenAI SDK with `base_url = https://cloudgpu.app/v1`. `GET /v1/models` lists the models and needs no key.\n2. **GPU instances**: rent a GPU under source-specific minute or started-hour billing (`/v1/gpu/*`), with optional auto-shutdown limits (`max_minutes`, `max_spend_usd`, `idle_minutes`) that CloudGPU's servers enforce even after your client disconnects.\n3. **Agent compute discovery (no key needed)**: `GET /v1/public/gpu-catalog` lists GPU models, VRAM, live prices, billing rules and disk options; `POST /v1/quotes` estimates the cost of a task from VRAM, GPU count, template, disk size, duration and budget. Neither creates paid resources.\n\nAuthentication: `Authorization: Bearer