# Starveri API

OpenAI-compatible Chat Completions and Responses APIs backed by Starveri's model catalog, dedicated Gemma serving, and prepaid credits.

- API base URL: `https://api.starveri.net`
- Billing dashboard: `https://api.starveri.net/billing`
- Documentation HTML: <https://docs.starveri.net/>
- Machine-readable index: <https://docs.starveri.net/llms.txt>
- OpenAPI schema: <https://api.starveri.net/openapi.json>
- API directory: <https://api.starveri.net/apis.json>
- Model metadata: <https://api.starveri.net/models>
- Support and enterprise: <support@starveri.net>

## Authentication

Use an API key in the HTTP `Authorization` header:

```http
Authorization: Bearer $STARVERI_API_KEY
```

## Models and pricing

Prices are Starveri credits per 1 million tokens. Public inference uses Standard service, plus the existing Flex catalog where explicitly documented. Input above 30% of a model's context window uses the long-context 2× model-token rate for Standard and Pro requests.

| Model | Context | Standard input / output |
| --- | ---: | ---: |
| `gemma-4` | 124,160 | 5 / 15 |
| `gemma-4-uncensored` | 32,000 | 10 / 30 |
| `gpt-5.6-sol` | 1,050,000 | 50 / 150 |
| `gpt-6-sol` | 872,000 | 25 / 75 |
| `gpt-6.1-terra` | 1,050,000 | 50 / 150 |
| `gpt-6-astra` | 1,050,000 | 125 / 375 |
| `gpt-6-luna` | 872,000 | 5 / 15 |
| `gpt-5.6-terra` | 1,050,000 | 25 / 75 |
| `gpt-5.6-luna` | 1,050,000 | 10 / 30 |
| `gpt-daybreak-blue` | 1,050,000 | 150 / 450 |
| `gpt-5.5` | 1,050,000 | 50 / 150 |

`gpt-daybreak-blue` is disabled by default and requires approval. Request access at [support@starveri.net](mailto:support@starveri.net). Additional safety review and availability controls may apply.

### GPT-6 models

`gpt-6-luna` is the Free-tier default; `gpt-6-sol` and `gpt-6.1-terra` are available to paid Tiers 1–5 on Standard and Pro, subject to account policy. Account bans, custom restrictions, rate limits, concurrency limits, and available credits still apply; no Flex profile is available for either GPT-6 model.

GPT-6 Luna and Sol accept text and image input and support reasoning efforts `low`, `medium`, `high`, `xhigh`, and `max`; `none` is not supported. Each has an 872,000-token context window, a 744,000-token maximum input, and a 128,000-token maximum output. Input above 261,600 tokens uses the 2× long-context model-token rate. GPT-6.1 Terra accepts images and reasoning `none` through `max`; it has a 1,050,000-token context window, maximum input 922,000, maximum output 128,000, and a 315,000-token long-context threshold.

| Model | Standard input | Cached input | Cache writes | Standard output |
| --- | ---: | ---: | ---: | ---: |
| `gpt-6-luna` | 5 | 0.5 | 6.25 | 15 |
| `gpt-6-sol` | 25 | 2.5 | 31.25 | 75 |
| `gpt-6.1-terra` | 50 | 5 | 62.5 | 150 |
| `gpt-6.1-terra` | 50 | 5 | 62.5 | 150 |

Pro is the existing 3× Standard profile:

| Model | Pro input | Cached input | Cache writes | Pro output |
| --- | ---: | ---: | ---: | ---: |
| `gpt-6-luna` | 15 | 1.5 | 18.75 | 45 |
| `gpt-6-sol` | 75 | 7.5 | 93.75 | 225 |
| `gpt-6.1-terra` | 150 | 15 | 187.5 | 450 |
| `gpt-6.1-terra` | 150 | 15 | 187.5 | 450 |

### Gemma 4

`gemma-4` and `gemma-4-uncensored` use a dedicated serving runtime and Standard inference only; Flex and Pro inference are not available and are not priced. During capacity pressure, requests may wait in arrival order. If the serving runtime is unavailable, the API returns HTTP 503 rather than substituting another model.

`gemma-4` runs automatic omni moderation for requests and responses. `gemma-4-uncensored` does not run automatic omni or specialized policy moderation, but authentication, billing, account restrictions, rate limits, concurrency limits, and logging still apply.

Gemma models do not offer input-token caching, cache writes, or cached-input discounts. Inputs above 37,248 tokens for regular Gemma or 9,600 tokens for uncensored Gemma use the 2× long-context model-token rate.

Both Gemma models expose a binary `thinking` control (`"on"` or `"off"`; default `"on"`). They do not expose reasoning modes or accept/send reasoning fields; the Playground shows the thinking toggle instead.

Flex supports only `gpt-5.6-sol` and `gpt-5.5` and does not preserve context between requests. GPT-6.1 Terra, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Luna, and GPT-6 Sol have no Flex profile.

## Image Generation

Generate moderated images with the OpenAI-compatible endpoint:

```bash
curl https://api.starveri.net/v1/images/generations \
  -H "Authorization: Bearer $STARVERI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"image-gen","prompt":"A quiet mountain lake at sunrise","n":1}'
```

Image generation uses the **GPT-5.6 Luna** backend. The current verified request fields are `model`, a text `prompt`, `n` from 1 through 10, and protected `referenced_image_ids` returned by `POST /v1/files`. Billing is **0.5 credits per successful output image plus prompt and reference image inputs billed at GPT-5.6 Luna input pricing**; input cost varies with the request, so the total is not fixed. Size, transparent-background, and style-transfer controls are not currently supported. Responses can contain per-image errors alongside successful `data` items.

## Chat Completions

```bash
curl https://api.starveri.net/v1/chat/completions \
  -H "Authorization: Bearer $STARVERI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6-luna","messages":[{"role":"user","content":"Hello"}],"reasoning":{"effort":"high"}}'
```

Set `stream: true` for OpenAI-compatible SSE chunks.

## Responses API

```bash
curl https://api.starveri.net/v1/responses \
  -H "Authorization: Bearer $STARVERI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6-sol","input":"Hello","reasoning":{"effort":"max"},"max_output_tokens":512}'
```

See the [HTML reference](https://docs.starveri.net/) for request options, tools, uploads, rate limits, tiers, billing, and automation examples.
