Skip to main content

Step 1: Get your API key

Go to kymaapi.com and enter your email + password. You’ll get an API key instantly. Or use the API directly:
curl -X POST https://kymaapi.com/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email": "you@email.com", "password": "your_password"}'
Response:
{
  "user_id": "abc123",
  "api_key": "kyma-your-api-key",
  "session_token": "ks-your-session-token"
}
Save your API key securely. You can create more keys in the Dashboard.

Step 2: Install the SDK

pip install openai

Step 3: Make your first request

from openai import OpenAI

client = OpenAI(
    base_url="https://kymaapi.com/v1",
    api_key="kyma-your-api-key"
)

response = client.chat.completions.create(
    model="llama-3.3-70b",  # ⭐ Recommended
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What is the capital of France?"}
    ]
)

print(response.choices[0].message.content)
# → "The capital of France is Paris."

Step 4: Try the Playground

Test models interactively in the Playground before integrating into your app.

You’re ready! 🎉

Choose a model

Not sure which model to use? See our recommendation guide.

Anthropic SDK

Using Anthropic SDK? Kyma is drop-in compatible.

Python guide

Full Python integration with streaming, async, and error handling.

API Reference

Full endpoint documentation with parameters and examples.