RentGPUPower's Compute API speaks OpenAI's language. Point the OpenAI SDK — or any tool built on it — at our address with your account key, name an open model, and you get chat completions, streaming included. Behind it, a GPU serves the model for you, and you pay that GPU by the second instead of paying per token.
Two settings
| Setting | Value |
|---|---|
| Base URL | https://rentgpupower.com/api/v1/compute |
| API key | your account key, gpuapi_…, from the developers page |
The API runs on prepaid credits: top up your balance, and calls draw from it.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://rentgpupower.com/api/v1/compute",
api_key="gpuapi_...",
max_retries=20, # keeps trying while the model starts
)
stream = client.chat.completions.create(
model="qwen3.6:27b",
messages=[{"role": "user", "content": "Write a haiku about GPUs."}],
stream=True,
)
for chunk in stream:
if chunk.choices:
print(chunk.choices[0].delta.content or "", end="", flush=True)
curl
curl https://rentgpupower.com/api/v1/compute/chat/completions \
-H "Authorization: Bearer $GPURENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "lfm2.5:8b", "messages": [{"role": "user", "content": "Hello!"}]}'
Which models
- An Ollama tag of one of the open chat models in Ollama's library — Qwen, Llama, Gemma, Mistral, DeepSeek-R1, gpt-oss and many more — such as
qwen3.6:27b,lfm2.5:8borgranite4.2:8b. Any other name starts nothing by itself: the answer lists the models that can be started, and how to start yours withPOST /instances. - A vetted vLLM model from Hugging Face:
Qwen/Qwen3.5-4B(the default — quick, a good all-rounder, from a 16 GB card),Qwen/Qwen3.5-2B(the fastest, from 8 GB),Qwen/Qwen3.5-9B(better answers, from 32 GB) orQwen/Qwen3.8-27B-FP8(the strongest, on a 48 GB card of the Ampere generation or newer — compute capability 8.0 and up). They answer straight away — ask for their reasoning with"chat_template_kwargs": {"enable_thinking": true}— and can call tools. Code written for the 2024 models (Qwen/Qwen2.5-7B-Instructand the like) still works: they start by name.
A model on the shared list at /models — gpt-oss:20b, qwen3.5:9b, nemotron-3.5-bolt:e4b and the rest — is answered by the shared models instead, billed per token, unless one of your instances already serves it; to run one on a GPU of your own, start it with POST /instances.
client.models.list() (GET /models) shows what is running for you and what can be started. Not sure how big a model your work needs? How much GPU memory do I need? has the table, and the open-model list every model, size by size, with the name to call it by.
The first call: a GPU starts for you
If none of your instances serves the model you name, and it is not one of the shared models, one is started on your credits. The call answers 503 with the error type model_loading, an estimate in seconds (eta_s) and a Retry-After header — and the same call is served as soon as the model is ready. The OpenAI SDKs retry a 503 on their own and wait as long as Retry-After says, which is what max_retries is for. A warm machine, with the model already on its disk, answers in seconds; otherwise the model is downloaded first, which takes a few minutes.
Later calls go to the same instance while it runs, so only the first one waits. Meanwhile, GET /instances/ID/ready tells you whether its model server answers yet.
When a call does not go through
| Answer | What it means |
|---|---|
503 model_loading | the model is starting; the SDK retries by itself |
| 402 | your credits, or this key's spend limit, do not cover a new instance — top up (the answer's topup_url says where) or raise the limit |
409 no_capacity | no suitable machine is free right now; try again shortly |
Each key can have its own spend limit, and a read-only key can look but never spend — handy for dashboards.
What it costs
An instance has no per-token charge. You pay the instance's GPU by the second, at the machine's hourly price, for as long as it runs — whether or not you are calling it. An instance started this way is reserved for half an hour: extend it, or stop it early with DELETE /instances/ID (gpurent stop ID from the command line), and the unused time returns to your credits. To choose the length yourself, start one with POST /instances and a duration_s, then call it the same way. The developers page lists every endpoint.
Rather pay per token, with nothing to start or stop? Shared models answer on the same address — gpt-oss, Qwen, Nemotron and more, most priced under the cheapest providers.
Embeddings too
POST /embeddings is also available, in OpenAI's format. It is computed by a pool of phones and browsers that earn on /earn, with a small sentence-embedding model, all-MiniLM-L6-v2 (384 dimensions). The embeddings guide has the price, the limits and how the work is checked.
FAQ
Do I need to rent a GPU first?
No. Ask for a model and an instance starts for you. You can also start one yourself with POST /instances and call it the same way.
Is it really billed per second?
Yes: GPU time by the second, with no per-token fee. An instance you leave running costs the same whether you call it or not, so stop it when you are done.
Does streaming work?
Yes. Pass stream=True (or "stream": true), exactly as with OpenAI.
Will my tool work with it?
Most tools that let you set an OpenAI base URL and key work unchanged — the OpenAI SDKs for Python and Node, and the libraries built on them. To run a model on a machine you rent yourself instead, see How to run Llama, Qwen, DeepSeek or gpt-oss on a rented GPU.
