Sixfinger API Documentation
Install SDK, generate your API key, and integrate chat completion in minutes.
SDK install
Install core package
pip install sixfinger
Install async extras
pip install sixfinger[async]
Recommended version: sixfinger >= 2.1.0
Generate API key
| Step | Action |
|---|---|
| 1 | Create an account from the register page. |
| 2 | Verify your email and open dashboard. |
| 3 | Copy the API key and use it as X-API-Key header. |
Python quickstart
Basic request
from sixfinger import API
client = API(api_key="sixfinger_xxx")
response = client.chat("Merhaba!")
print(response.content)
Conversation mode
from sixfinger import API
client = API(api_key="sixfinger_xxx")
conv = client.conversation()
conv.send("Merhaba!")
conv.send("Python nedir?")
conv.send("Neden populer?") # Remembers context!
Streaming
from sixfinger import API
client = API(api_key="sixfinger_xxx")
for chunk in client.chat("Tell me a story", stream=True):
print(chunk, end='', flush=True)
Async client
import asyncio
from sixfinger import AsyncAPI
async def main():
async with AsyncAPI(api_key="sixfinger_xxx") as client:
response = await client.chat("Merhaba!")
print(response.content)
asyncio.run(main())
Model selection examples
# Auto model (recommended)
response = client.chat("Merhaba!")
# Turkish
response = client.chat("Osmanli tarihi", model="qwen3-32b")
# Complex tasks
response = client.chat("Explain quantum physics", model="llama-70b")
# Fast
response = client.chat("Quick answer", model="llama-8b-instant")
Method signature
# SDK method signature (sixfinger 2.1.0)
# chat(message, model=None, system_prompt=None, history=None,
# max_tokens=None, temperature=0.7, stream=False)
response = client.chat(
message="Write a short product description",
model="qwen3-32b", # optional
max_tokens=220, # optional
temperature=0.6, # optional
system_prompt="You are a concise copywriter", # optional
history=[{"role": "user", "content": "Use a premium tone"}], # optional
stream=False # optional
)
print(response.content)
Method parameters
| Name | Type | Required | Description |
|---|---|---|---|
| message | str | User message text. | |
| model | str | Specific model key (for example qwen3-32b). | |
| system_prompt | str | System instruction for assistant behavior. | |
| history | list[dict] | Conversation history list with role/content objects. | |
| max_tokens | int | Maximum completion tokens (capped by your plan). | |
| temperature | float | Sampling temperature, default 0.7. | |
| stream | bool | Enable token streaming in sync SDK. |
Model catalog
| Model | Key | Size | Language | Plan |
|---|---|---|---|---|
| Llama 3.1 8B Instant | llama-8b-instant | 8B | Multilingual | FREE+ |
| Allam 2 7B | allam-2-7b | 7B | TR/AR | FREE+ |
| Qwen3 32B | qwen3-32b | 32B | TR/CN | STARTER+ |
| Llama 3.3 70B | llama-70b | 70B | Multilingual | STARTER+ |
| GPT-OSS 120B | gpt-oss-120b | 120B | Multilingual | PRO+ |
Plan limits
| Plan | Price | Requests/Month | Tokens/Month |
|---|---|---|---|
| Free | $0 | 200 | 20K |
| Starter | $79 | 3K | 300K |
| Pro | $199 | 75K | 7.5M |
| Plus | $499 | 500K | 50M |
REST API
Base URL: https://sfapi.pythonanywhere.com
POST https://sfapi.pythonanywhere.com/api/v1/chat
GET https://sfapi.pythonanywhere.com/api/v1/stats
X-API-Key: sixfinger_xxx
Sample request body
{
"message": "Explain vector databases briefly",
"model": "llama-70b",
"max_tokens": 300,
"temperature": 0.7,
"top_p": 0.9,
"system_prompt": "You are a helpful assistant",
"history": [
{"role": "user", "content": "Keep it practical"}
],
"stream": false
}
Request fields
| Field | Required | Notes |
|---|---|---|
| message | Prompt text. | |
| model | Optional model preference. | |
| max_tokens | Default 300, cannot exceed plan max per request. | |
| temperature | Default 0.7. | |
| top_p | Default 0.9 (REST level). | |
| system_prompt | Optional behavior instruction. | |
| history | Optional conversation history. | |
| stream | Set true for SSE stream response. |
Other language examples
If you are not using Python SDK, you can call the REST API directly from any language.
Node.js
const apiKey = "sixfinger_xxx";
const response = await fetch("https://sfapi.pythonanywhere.com/api/v1/chat", {
method: "POST",
headers: {
"X-API-Key": apiKey,
"Content-Type": "application/json"
},
body: JSON.stringify({ message: "Hello from Node.js" })
});
const data = await response.json();
console.log(data.response);
Java
OkHttpClient client = new OkHttpClient();
String json = "{"message":"Hello from Java"}";
RequestBody body = RequestBody.create(json, MediaType.parse("application/json"));
Request request = new Request.Builder()
.url("https://sfapi.pythonanywhere.com/api/v1/chat")
.addHeader("X-API-Key", "sixfinger_xxx")
.post(body)
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
}
C#
using System.Net.Http;
using System.Text;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-API-Key", "sixfinger_xxx");
var content = new StringContent("{"message":"Hello from C#"}", Encoding.UTF8, "application/json");
var res = await client.PostAsync("https://sfapi.pythonanywhere.com/api/v1/chat", content);
var body = await res.Content.ReadAsStringAsync();
Console.WriteLine(body);
Go
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{"message":"Hello from Go"}`)
req, _ := http.NewRequest("POST", "https://sfapi.pythonanywhere.com/api/v1/chat", bytes.NewBuffer(payload))
req.Header.Set("X-API-Key", "sixfinger_xxx")
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
b, _ := io.ReadAll(resp.Body)
fmt.Println(string(b))
}
PHP
<?php
$ch = curl_init("https://sfapi.pythonanywhere.com/api/v1/chat");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: sixfinger_xxx",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"message" => "Hello from PHP"
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
cURL
curl -X POST "https://sfapi.pythonanywhere.com/api/v1/chat" \
-H "X-API-Key: sixfinger_xxx" \
-H "Content-Type: application/json" \
-d '{"message":"Hello from cURL"}'
/api/v1/chat with X-API-Key header.
Support
| Channel | Detail |
|---|---|
| sixfingerdev@gmail.com | |
| Dashboard | Open dashboard |
| Docs | Current page |