Inference

LLM inference API

Inference is an OpenAI-compatible API at https://podstack.ai/api/v1. GPU instances are billed for the time they run, pro-rated by the second from the hourly rate, from boot until you terminate them. Extra disk is billed per GB-hour. Jobs are billed for the time they run. Inference is billed per token. Keys use the ps_live_ prefix. The Python package is podstack-sdk.

Call it with an OpenAI SDK

$ pip install podstack-sdk
$ export PODSTACK_API_KEY=ps_live_...

import os
from openai import OpenAI
client = OpenAI(
  base_url="https://podstack.ai/api/v1",
  api_key=os.environ["PODSTACK_API_KEY"],
)
client.chat.completions.create(
  model="podstack/kimi-k3",
  messages=[{"role": "user", "content": "hi"}],
)

Dedicated endpoints use the same chat-completions format.

Docs · GPU cloud in India · ModelPerf