// get started

Quickstart

Create an API key, install the OpenAI SDK, and send your first chat completion.

1.Create an API key

Sign in and open API Keys in the dashboard. Create a key and copy it right away: it's shown only once. Store it in an environment variable rather than in your code:

Terminal
export LITEPOD_API_KEY="sk_litepod_..."

2.Install the OpenAI SDK

Litepod speaks the OpenAI API, so you use the official SDKs. There's no Litepod SDK to install.

pip install openai

3.Send a request

Set the base URL to https://api.litepod.io/v1 and pick a model id from Models:

curl https://api.litepod.io/v1/chat/completions \
  -H "Authorization: Bearer $LITEPOD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nvidia/nemotron-lightning-3.5-30b-a3b",
    "messages": [{"role": "user", "content": "Explain RAG in one sentence."}],
    "max_tokens": 256
  }'

4.Read the response

You get a standard OpenAI chat completion. usage shows the tokens you're billed for.

Response
{
  "id": "chatcmpl-8f3a2c…",
  "object": "chat.completion",
  "created": 1790000000,
  "model": "nvidia/nemotron-lightning-3.5-30b-a3b",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "RAG retrieves relevant documents and gives them to the model so its answer is grounded in them."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": { "prompt_tokens": 14, "completion_tokens": 21, "total_tokens": 35 }
}

Next steps