October 22, 2026
Only the connection settings change when an OpenAI SDK prototype moves to GMI Cloud: for basic chat calls, the base URL, the API key and the model name, because the API is OpenAI-compatible and the client library stays. Prime Inference then runs your own or fine-tuned weights on dedicated, single-tenant GPUs, loaded from Hugging Face, S3 or your own storage, and GMI's inference engineers tune the runtime for your model.
The connection change sits in a config file. Engine choice, quantization, multi-GPU layout and keep-warm behavior are handled on GMI's side of the line.
With the OpenAI Python SDK, the connection is three values: the base URL, the API key and the model name. The quickstart shows the pattern:
from openai import OpenAI
client = OpenAI(
base_url="https://api.gmi-serving.com/v1",
api_key="YOUR_GMI_API_KEY",
)
response = client.chat.completions.create(
model="YOUR_MODEL_ID",
messages=[{"role": "user", "content": "Hello"}],
)
GMI's Python and TypeScript clients are drop-in for the OpenAI SDK, and the developers page lists /v1/chat/completions, /v1/responses (the OpenAI Responses API) and /v1/messages (the Anthropic Messages API) behind one base URL and one key. In the console, Settings is where the API key for this migration gets created.
The base URL above is the serverless endpoint. When your model runs on a dedicated deployment, the console shows that deployment's own endpoint URL and an example request once it reaches Running status, and you configure the client from that example. Pass the SDK's base_url the part of the example's address that comes before /chat/completions (for the serverless endpoint above, that is https://api.gmi-serving.com/v1), since a full request path such as .../v1/chat/completions is the form for direct HTTP calls. Take the model value from the example when you replace YOUR_MODEL_ID. Treat the base URL, key and model name as configuration read from the environment, so the connection change stays in one place. If the prototype also calls other providers, put each behind its own client object so only the custom-model client changes.
These request behaviors, from GMI's LLM API reference, shape how you configure the client:
| Area | What the API does | What it means for your app |
|---|---|---|
| Parameters | Documented fields include tools, temperature, top_p, top_k, stop, response_format and stream |
Pass the fields your code already sets, as far as the target model supports them, through the same SDK calls |
| JSON output | response_format: {"type": "json_object"} turns on JSON mode |
Set it in the same create call your prototype uses |
| Streaming | The final chunk carries usage statistics | Read token usage for accounting from that chunk |
| Long inputs | context_length_exceeded_behavior controls what happens when input exceeds the context length: truncate (the default) or error |
Set it to error if your app should handle oversized prompts itself |
| Rate limits | The serverless API applies tokens-per-minute limits by usage tier. Dedicated endpoints have no rate limit; the ceiling is the hardware you provision | On dedicated endpoints, remove client-side throttling that only existed to respect the old provider's limits; on serverless, pace traffic to your organization's tier |
The OpenAI Python SDK passes fields it does not define through its extra_body request option, so provider-specific fields such as context_length_exceeded_behavior and top_k go there.
Seven steps take your weights from storage to a live endpoint.
Weight memory sets your first GPU choice. In 16-bit precision, each parameter takes 2 bytes, so a 70-billion-parameter model needs about 140 GB for weights alone. That does not fit on one 80 GB H100, and it leaves almost nothing on a 141 GB H200 for the KV cache that grows with context length and concurrency. Two or more GPUs per replica, or a quantized build, are the realistic options. An 8-billion-parameter model needs about 16 GB for weights, which leaves room for KV cache and runtime overhead on a single GPU, with the exact headroom depending on context length and concurrency.
The Prime setup step asks for GPU type, GPUs per replica and replica count. Memory for weights and KV cache drives the first two together, and the traffic you need to serve drives replica count.
On Prime Inference, GMI's engineers cover:
Four inputs come from your team:
The hardware options for custom weights are:
| GPU | Memory | Where it fits |
|---|---|---|
| H100 | 80 GB HBM3 | General LLM and multimodal inference for small and mid-size custom models |
| H200 | 141 GB HBM3e | Larger weights, long context, big KV cache and batch sizes |
| B200 | Blackwell, pre-order | Frontier-size models and FP4 inference |
| B300 | 288 GB HBM3e, pre-order | Very large models and ultra-long context |
H100 and H200 are available now. B200 and B300 are available for pre-order. Build the first deployment on Hopper, and use the same evaluation set when you add Blackwell capacity.
Data for a custom model may be tied to a jurisdiction, so region is part of the first deployment: endpoints can be pinned to a region for latency or locked to one for data residency, across Prime's Asia-Pacific, North America and Europe locations. Prime Inference also offers isolated runtimes, audit logs and zero-retention serving for regulated workloads.
Prime Inference has no minimum contract and bills on demand by the GPU-hour. Steady traffic can move to seasonal or annual reserved capacity at a lower hourly rate, and qualified prospects receive free GPU-hour trial credits for testing on their own workload. The committed uptime SLA, which starts from a 99.9% figure, is settled in the contract discussion.
Per-token serverless pricing and per-GPU-hour dedicated pricing cross over at a utilization point that depends on your traffic. For custom weights, size the decision on GPU-hours and the throughput you measure in step 6.
Point the prototype's client at GMI's serverless endpoint with a catalog model to exercise the connection change. In parallel, register your weights in My Models and create a deployment on H100 or H200 sized by the memory arithmetic above. Replay your evaluation set, then bring the results to GMI's engineers for runtime tuning before traffic moves.
GMI sales can set up custom tuning, reserved capacity and trial credits alongside it.
Colin Mo
GMI Cloud helps you architect, deploy, optimize, and scale your AI strategies
