RentGPUPower's embeddings endpoint turns text into vectors — for search, clustering, deduplication and RAG — with all-MiniLM-L6-v2, the open sentence-embedding model (384 dimensions). It takes the same request and gives the same answer as OpenAI's embeddings endpoint, so the OpenAI SDK works by changing the base URL. The work is done by phones and browsers that earn on /earn, and each piece is checked by two of them before you pay.

Two settings

Make an API key on the developers page (it starts with gpuapi_), then:

import os
from openai import OpenAI

client = OpenAI(base_url="https://rentgpupower.com/api/v1/compute",
                api_key=os.environ["GPURENT_API_KEY"])

r = client.embeddings.create(model="all-MiniLM-L6-v2",
                             input=["The cat sat on the mat.", "A kitten rested on a rug."])
print(len(r.data[0].embedding))   # 384

Or with curl:

curl https://rentgpupower.com/api/v1/compute/embeddings \
  -H "Authorization: Bearer $GPURENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "all-MiniLM-L6-v2", "input": ["The cat sat on the mat.", "A kitten rested on a rug."]}'

The vectors come back normalised, as float or base64 (encoding_format), with the tokens counted in usage.

What it costs

$0.02 per million tokens, counted as one token per four characters. You pay only for answers that were checked and delivered: a request that times out, is not verified, or that you hang up on costs nothing. It is paid from credits you bought or earned — credit you were given cannot pay for it, because the money goes on to the phones as cash: they keep 70% of it.

How the work is checked

Each piece of your request goes to two phones or browsers of different people, and is delivered only when their answers agree. A device that sends wrong answers is caught by that comparison and by tests whose answers RentGPUPower already knows — and is not paid.

One phone you pick

Rather have one phone do your work — the fastest, say? Pick it on the phone cluster page: each phone that can take work is listed with its chip, its speed and an id. Add the id to your request — with the OpenAI SDK, extra_body={"phone": "ph…"} — and your texts go to that phone alone, at the same price. Hidden test sentences check every answer it gives, and some of its work is done again by another person's phone. If it goes quiet, the cluster finishes your work in the same request: the answer's phone.served says who did it — "phone", "cluster" or "both".

Limits

  • Up to 64 texts per request, each up to 2,000 characters; the model reads the first 512 tokens of each.
  • A request waits up to 30 seconds for the phones. When too few are online, it is answered at once with 503 no_capacity and a Retry-After header — retry then, as the OpenAI SDKs do on their own.
  • How many phones are online now: GET /api/v1/compute/models lists the model with phones_online, and ready is true only while enough of them are online to check the work. The phone cluster page and the developers page show the same number.
  • An Idempotency-Key header makes a retry safe: the same key with the same texts returns the same vectors within a day, without paying twice.
  • LangChain: pass check_embedding_ctx_length=False, or it sends token ids instead of text.

Privacy

Your texts are processed on other people's phones. Do not send passwords, personal data or anything confidential — for those, run the model yourself on a rented GPU or CPU machine.

FAQ

Can I use the vectors with my own copy of the model?

Yes. all-MiniLM-L6-v2 is open: the full model runs on the phones, so vectors from sentence-transformers on your own machine sit in the same space. You are never locked in.

Is it fast enough for production?

It suits batches and background work better than a search box that must answer in milliseconds: an answer waits for two phones to agree, and capacity depends on how many are online. For steady, private, low-latency embeddings, rent a machine and run the model there.

Why only one model?

Phones can hold a small model, and all-MiniLM-L6-v2 is small, fast and widely used. Larger embedding models run fine on a rented GPU: start one with the OpenAI-compatible API for open models.

Can my phone do this work and earn?

Yes — that is where the work goes. See Earn money with your phone.