Sable

Documentation

The API accepts the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages formats, so existing clients work with a different base URL and an API key.

Quickstart

A streamed request to deepseek-v4.1-flash-1017-uncensored, and the Codex CLI setup.

curl https://sableapi.com/v1/chat/completions \  -H "Authorization: Bearer $SABLE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "deepseek-v4.1-flash-1017-uncensored",    "stream": true,    "messages": [      {"role": "user", "content": "List the regressions in this diff."}    ]  }'

Base URL and authentication

Base URL
https://sableapi.com/v1 for OpenAI-format clients; https://sableapi.com for Anthropic SDKs, which add /v1 themselves.
Header
Authorization: Bearer <key> or x-api-key: <key>
Keys
Created and revoked on your account’s API keys page.
Long replies
Stream them. A whole reply still running after 15 seconds is answered with status 200 at once and spaces every 15 seconds until its JSON (valid JSON), so a client waiting for bytes does not give up and send it again. An error after that point is the JSON body of that 200.

Endpoints

Method and pathDescription
POST /v1/chat/completionsOpenAI Chat Completions format. Streams with "stream": true.
POST /v1/messagesAnthropic Messages format. Streams with "stream": true.
POST /v1/responsesOpenAI Responses format (Codex CLI, the Agents SDK). Streams with "stream": true. Nothing is stored: send the whole conversation in input, with "store": false.
GET /v1/modelsPublic, no key needed: the models Sable serves, with their context and output limits, supported parameters, reasoning levels and input types.
GET /v1/requests/{id}The record of one request.

Parameters

Sampling parameters are passed to the model as sent: temperature, top_p, top_k, frequency_penalty, presence_penalty, repetition_penalty, seed and stop, within the model's ranges: temperature 0 to 2, penalties -2 to 2, repetition_penalty above 0, top_logprobs up to 20; a value outside them is refused with a 400 before anything is generated. null means unset. min_p and logit_bias are ignored, as on DeepSeek's API.

Reasoning is set with reasoning_effort (OpenAI format) or output_config.effort (Messages format). Each level is a budget out of 100 that the model reads: minimal 10, low 25, medium 45, high 65, xhigh 85 and max 100; an integer from 1 to 100 also works. none turns thinking off in the OpenAI format; the Messages format uses "thinking": {"type": "disabled"}. Any other value is refused with a 400. With no level (or auto) and no thinking switch, the level follows max_tokens, since reasoning counts inside it: unset or 2,048 and up is medium, 1,000 to 2,047 is low, under 1,000 is thinking off.

Images are accepted only while GET /v1/models shows supports_vision: true; otherwise a request with an image is refused with a 400. Images go inline, in user messages: image_url with a base64 data: URL (OpenAI format) or an image block with a base64 source (Messages format), PNG, JPEG, WebP or static GIF (WebP and GIF become a PNG of the same pixels, billed the same), as many as the 32 MB request body carries. A public http(s) image URL works too: Sable fetches it (up to 24 MB an image, at most 32 URLs a request) and bills it like an inline image. Each image becomes at most 1,024 input tokens, billed at the input price.

Errors

Errors use the error format of the endpoint that was called, with a code field. A key may run any number of requests at once.

StatusCodeMeaning
400invalid_requestThe request body is not valid.
400context_length_exceededThe input is longer than 512,000 tokens.
401invalid_api_keyThe API key is missing or not valid.
402insufficient_creditsThe balance is too low for the request. Top up on your account’s Billing page.
404model_not_foundThe model is not available.
409idempotency_conflictThe idempotency key was already used for a different request.
503capacity_unavailableAll capacity is in use. Retry after the Retry-After header; reuse the idempotency key.
503service_unavailableThe service is temporarily unavailable. Retry after the Retry-After header.

Data retention and residency

For teams that review data retention and data residency: what happens to the content of a request, and where the model runs.

Zero data retention
Prompts and outputs are never logged, never stored and never used for training. They are held in memory while a request runs and are gone when it ends.
Prompt cache
When a request begins with the same text as an earlier one from your account, the model reuses its internal state for that shared beginning instead of computing it again. That state is numbers, not your text. It is used only for later requests from your account and is discarded on its own, usually within a couple of hours to a day. No prompt and no output is kept with it, so this is still zero data retention.
Where inference runs
In the United States. The servers that run the model are in the US, and the prompt cache stays on them.

The records Sable does keep for an account, such as usage and billing, hold no prompt and no output; the Privacy page lists them. For a written statement for a security review, write to support@sableapi.com.