cloudgpu-model-api
Call a hosted model through CloudGPU's OpenAI-compatible model API at https://cloudgpu.app/v1, without renting a GPU. Use when the user wants to call a hosted model (chat/completions) through CloudGPU, wire CloudGPU into an OpenAI-compatible client or agent framework (OpenAI SDK, LangChain, Cline, Roo Code, Continue, Aider, n8n, Dify), or mentions cloudgpu.app/v1.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- cloudgpu-model-api
- description
- Call a hosted model through CloudGPU's OpenAI-compatible model API at https://cloudgpu.app/v1, without renting a GPU. Use when the user wants to call a hosted model (chat/completions) through CloudGPU, wire CloudGPU into an OpenAI-compatible client or agent framework (OpenAI SDK, LangChain, Cline, Roo Code, Continue, Aider, n8n, Dify), or mentions cloudgpu.app/v1.
03 SKILL.md 正文
CloudGPU model API
CloudGPU (cloudgpu.app) serves hosted models over an OpenAI-compatible API at https://cloudgpu.app/v1. No GPU rental is needed.
1. Pick a model ID
- Call the
list_modelstool, orGET https://cloudgpu.app/v1/models(public, no key needed). - Never guess or hardcode a model ID. Use one the list returns.
2. Authenticate
- Send
Authorization: Bearer $CLOUDGPU_API_KEY. - Read the key from the environment. Never print it, and never write it into files that get committed.
- If
CLOUDGPU_API_KEYis not set, ask the user to create a key at https://cloudgpu.app and set it themselves. Do not ask them to paste it into the chat.
3. Set up a client
In any OpenAI-compatible SDK, client or agent framework, set base_url to https://cloudgpu.app/v1 and the API key to the value of CLOUDGPU_API_KEY.
Python (OpenAI SDK):
import os
from openai import OpenAI
client = OpenAI(base_url="https://cloudgpu.app/v1", api_key=os.environ["CLOUDGPU_API_KEY"])
resp = client.chat.completions.create(
model="kimi-k3", # example only: check list_models or /v1/models first
messages=[{"role": "user", "content": "Say hello."}],
)
print(resp.choices[0].message.content)
The same request as HTTP. Read the key from the environment; do not paste it into the request text you show the user.
POST https://cloudgpu.app/v1/chat/completionsAuthorization: Bearerfollowed by the value ofCLOUDGPU_API_KEYContent-Type: application/json- Body:
{"model":"<id from the model list>","messages":[{"role":"user","content":"Say hello."}]}
The model id in any example is only an example. Check the model list before using it.
Prices and balance
Don't quote prices from memory. Current prices are at https://cloudgpu.app/api. The same API key and balance also cover GPU rental (see the cloudgpu skill).
Errors
- 401: the key is missing or wrong. Check that
CLOUDGPU_API_KEYis set and valid. - 404 / model not found: the model ID is not available. Re-run
list_modelsand use an ID from the list. - 429: too many requests. Back off, then retry.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.