Sixfinger Sixfinger

Sixfinger API Documentation

Install SDK, generate your API key, and integrate chat completion in minutes.

SDK + REST Streaming Model control Rate limits Examples

SDK install

Install core package

pip install sixfinger

Install async extras

pip install sixfinger[async]
Recommended version: sixfinger >= 2.1.0

Generate API key

StepAction
1Create an account from the register page.
2Verify your email and open dashboard.
3Copy 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

NameTypeRequiredDescription
messagestrUser message text.
modelstrSpecific model key (for example qwen3-32b).
system_promptstrSystem instruction for assistant behavior.
historylist[dict]Conversation history list with role/content objects.
max_tokensintMaximum completion tokens (capped by your plan).
temperaturefloatSampling temperature, default 0.7.
streamboolEnable token streaming in sync SDK.

Model catalog

ModelKeySizeLanguagePlan
Llama 3.1 8B Instantllama-8b-instant8BMultilingualFREE+
Allam 2 7Ballam-2-7b7BTR/ARFREE+
Qwen3 32Bqwen3-32b32BTR/CNSTARTER+
Llama 3.3 70Bllama-70b70BMultilingualSTARTER+
GPT-OSS 120Bgpt-oss-120b120BMultilingualPRO+

Plan limits

PlanPriceRequests/MonthTokens/Month
Free$020020K
Starter$793K300K
Pro$19975K7.5M
Plus$499500K50M

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

FieldRequiredNotes
messagePrompt text.
modelOptional model preference.
max_tokensDefault 300, cannot exceed plan max per request.
temperatureDefault 0.7.
top_pDefault 0.9 (REST level).
system_promptOptional behavior instruction.
historyOptional conversation history.
streamSet 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

ChannelDetail
Emailsixfingerdev@gmail.com
DashboardOpen dashboard
DocsCurrent page