Client compatibility

Connect OpenAI-compatible clients, Anthropic Messages, Ollama and Codex.

OpenAI-compatible clients

Use https://site6.eokgg.win/v1 as the base URL and pass your Site6 API key. Choose the wire format your client supports.

Method and path Interface
POST /v1/chat/completions Chat Completions
POST /v1/chat Chat alias
POST /v1/responses Responses
POST /v1/completions Legacy text completions with prompt
GET /v1/models Models accessible to your key
GET /v1/models/{id} Model metadata
GET /v1/tools Built-in tool definitions
POST /v1/tools/execute Execute one built-in tool
GET /v1/usage Account usage
POST /v1/images/generations Generate an image
POST /v1/images/edits Upload images for editing

The primary /v1 generation routes also accept the shorter forms without /v1. The /api/v1 prefix is accepted for compatible clients.

Anthropic Messages

Use https://site6.eokgg.win as the base URL when your client appends /v1/messages.

Shell
curl --fail-with-body -sS https://site6.eokgg.win/v1/messages \
  -H "x-api-key: $SITE6_API_KEY" \
  -H 'anthropic-version: 2023-06-01' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "deepseek-v4.1-flash-1017",
    "max_tokens": 256,
    "system": "Use plain language.",
    "messages": [{"role":"user","content":"Explain exponential backoff."}]
  }'

Read text blocks from content[]. tool_use and tool_result blocks carry calls and results. For supported effort levels use output_config.effort.

Ollama-compatible clients

Use the same origin, with Authorization: Bearer <key>. Read message.content from /api/chat or response from /api/generate.

Shell
curl --fail-with-body -sS https://site6.eokgg.win/api/chat \
  -H "Authorization: Bearer $SITE6_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "deepseek-v4.1-flash-1017",
    "messages": [{"role":"user","content":"Explain a race condition."}],
    "stream": false,
    "options": {"num_predict": 256}
  }'

GET /api/tags lists the available text models. POST /api/show accepts a model ID in model. GET /api/version reports the adapter version.

Codex

Set SITE6_API_KEY in the environment and use a key with access to eok/stupid-ai. The model keeps its intentionally silly behaviour in Codex.

TOML
model = "eok/stupid-ai"
model_provider = "site6"

[model_providers.site6]
name = "Site6"
base_url = "https://site6.eokgg.win/v1"
model_catalog_url = "https://site6.eokgg.win/v1/models"
env_key = "SITE6_API_KEY"
wire_api = "responses"

POST /v1/responses/compact can compact prior turns for this model. Send its returned output back as input with the same key.

Compatibility scope

Site6 exposes text and image generation with the adapters above. Audio, video, embeddings, Realtime, managed Files uploads, Batches, Assistants, model downloads, background Responses and logprobs are outside these interfaces. The API returns structured errors for unsupported operations.

Search the docs