# Site6 API documentation

## Get an API key

Sign in to the [Site6 dashboard](https://site6.eokgg.win/) with your Site6 account and copy its API key. Store the key in `SITE6_API_KEY` in the terminal or service that runs your requests.

Bash

~~~bash
export SITE6_API_KEY='paste-your-site6-key-here'
~~~

PowerShell

~~~powershell
$env:SITE6_API_KEY = 'paste-your-site6-key-here'
~~~

Send it in `Authorization: Bearer <key>`. Anthropic-compatible requests can use `x-api-key`. Set the base URL to `https://site6.eokgg.win/v1` for OpenAI-compatible SDKs.

The dashboard lets you reset your key once every 24 hours. A reset revokes the previous key, so update the applications that use it.

## Discover your models

~~~bash
curl --fail-with-body -sS https://site6.eokgg.win/v1/models \
  -H "Authorization: Bearer $SITE6_API_KEY"
~~~

The `data[].id` values are the model IDs you can send. These examples use `deepseek-v4.1-flash-1017`. Substitute any text model available to your key.

## First request

~~~bash
curl --fail-with-body -sS https://site6.eokgg.win/v1/chat/completions \
  -H "Authorization: Bearer $SITE6_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "deepseek-v4.1-flash-1017",
    "messages": [{"role": "user", "content": "Explain a hash table in two sentences."}],
    "max_tokens": 256
  }'
~~~

Read `choices[0].message.content` for the reply and `usage` for reported token counts. Keep API keys on your server or in your local environment when building a browser frontend.

## Next steps

[Stream replies](/streaming/), [send your AGENTS.md](/instructions/), or [copy a full example for your language](/examples/).

## Find the right endpoint

| I want to… | Use |
|---|---|
| Send a chat turn or stream text | [Chat Completions](/chat/) |
| Continue a stored response with an ID | [Responses](/responses/) |
| Apply project rules from a file | [Custom instructions](/instructions/) |
| Let the model calculate, look up sources or call a function | [Tools](/tools/) |
| Read an image, text file or PDF | [Images and files](/files/) |
| Generate or edit an image | [Image generation and editing](/files/#generate-an-image) |
| Connect an existing SDK or agent | [SDKs and examples](/examples/#openai-compatible-clients) |

## Services

[Site6 dashboard](https://site6.eokgg.win/) manages your account, API key and usage. [Site6 Chat](https://2.site6.eokgg.win/) lets you use your key in a browser. [Model status](https://status.site6.eokgg.win/) shows the latest health checks.

Use [GET /v1/models](/models/#discover-your-models) to discover the model IDs available to your key. Availability and context limits differ by model.
