Getting started

Overview

What the Self Deploy API is, how a request reaches your GPU, and what you need to call it.

What the API is

With Self Deploy you rent a dedicated GPU for a fixed time pack, and we run an open-weight model on it for you: an instance. Nobody else's requests run on it.

The Self Deploy API is how your own apps talk to that instance. It speaks the OpenAI chat completions format, so anything that works with the OpenAI API works with your instance once you change two settings: the base URL and the API key.

How a request reaches your GPU

  1. Your app

    Any OpenAI-compatible client: an SDK, curl, n8n, Cursor … It sends your API key.

  2. OpenLLM Buddy API

    Checks the key, finds the instance it belongs to, and counts the tokens for your usage page.

  3. Your instance

    A GPU rented for you, running the one model you deployed. It only answers requests that come through the API.

Every request goes to one address, the base URL below. Your API key tells us which instance it is for, so you never deal with the GPU's own address. The reply, streamed or not, comes back exactly as the model wrote it.

Your instance is locked

Each instance is started with its own secret pod key that only our servers hold. Without it the GPU answers nothing, so the API with your ob_sk_ key is the only way in. We count tokens for your usage page; we don't keep your prompts or replies.

Base URL

https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1

OpenAI SDKs and OpenAI-compatible tools take this as their base URL. Endpoint paths below are relative to the host, for example POST https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1/chat/completions.

Endpoints

MethodPathForWhat it does
POST/v1/chat/completionsChat modelsOpenAI-compatible chat completions, as JSON or streamed ("stream": true).
GET/v1/modelsChat modelsLists the model your instance serves. Not every instance answers it yet: some return 404. You never need it, since any model name works.
POST/v1/videosVideo modelsStarts a video job and answers 202 with the job.
GET/v1/videos/{id}Video modelsThe job's status and progress.
GET/v1/videos/{id}/contentVideo modelsThe finished MP4. Answers 409 until the job is done.
POST/v1/images/generationsImage modelsDraws one picture and answers 200 with it as base64 PNG, its id, seed and size.
GET/v1/images/{id}Image modelsThe same picture as a PNG, for 24 hours or until the instance ends. 404 once it is gone.

What you need

  • A ready instance. Deploy a model from Templates in the console and wait until it shows ready.
  • An API key for that instance. One is created for you the first time you open the ready instance.
  • Any HTTP client, or the official OpenAI SDK for Python or JavaScript.

Next steps