1
Create your account
Go to tryflama.com and create a free account. No credit card required.
URL: https://tryflama.com/signup
2
Generate an API token
From your panel, go to the Token section and generate a new key. The key is only shown once — copy it and save it somewhere safe.
URL: https://tryflama.com/token
API keys start with tf_sk_ and are hashed at rest. If you lose your key, you will need to generate a new one.
3
Make your first request
The API is compatible with the OpenAI format. If you already use the OpenAI SDK, just change the base URL and your API key.
cURL
bash
curl https://api.ai.tryflama.com/v1/chat/completions \
-H "Authorization: Bearer tf_sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-max",
"messages": [
{"role": "user", "content": "Hello, world!"}
]
}'Python
python
import openai
client = openai.OpenAI(
base_url="https://api.ai.tryflama.com/v1",
api_key="tf_sk_YOUR_KEY"
)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[
{"role": "user", "content": "Hello, world!"}
]
)
print(response.choices[0].message.content)TypeScript
typescript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.ai.tryflama.com/v1",
apiKey: "tf_sk_YOUR_KEY",
});
const response = await client.chat.completions.create({
model: "qwen3.8-max",
messages: [
{ role: "user", content: "Hello, world!" },
],
});
console.log(response.choices[0].message.content);