API reference
Point any OpenAI SDK at https://api.logits.com/v1 with your API key as a bearer token. Use the model catalog to inspect current availability.
Quickstart
Sign in to the console and create a key on the API keys page. The secret is shown once and cannot be recovered; if the key is restricted to specific models, allow the model you call.
export API_KEY="logits_live_..." # the key you created
curl https://api.logits.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek/deepseek-v4.1-flash", "messages": [{"role": "user", "content": "Hello"}]}'These endpoints are on https://api.logits.com:
| Endpoint | Returns |
|---|---|
GET /v1/models | The catalog |
GET /models | The detailed provider feed with per-modality pricing and supported parameters |
POST /v1/files | Upload a batch input file |
GET /v1/files | List batch files |
GET /v1/files/:id | Retrieve file metadata |
GET /v1/files/:id/content | Download file content |
DELETE /v1/files/:id | Delete a file |
POST /v1/batches | Create a batch |
GET /v1/batches | List batches |
GET /v1/batches/:id | Retrieve a batch |
POST /v1/batches/:id/cancel | Cancel a batch |
DELETE /v1/batches/:id | Deprecated; see Batch |
In file and batch paths, :id is the corresponding file or batch ID. See the Batch API guide for the JSONL format and the upload → create → poll → download flow.
Compressed request bodies
POST /v1/chat/completions, /v1/responses and /v1/messages accept absent,
identity, gzip or zstd in Content-Encoding. Keep
Content-Type: application/json; only the request body is compressed. Most OpenAI and
Anthropic SDKs do not compress automatically, so use an HTTP middleware or
transport that compresses the serialized JSON.
The compressed wire body and the decoded JSON body are each limited to the
existing request-body cap, 32 MiB by default (168 MiB for a Chat Completions
request with videos; see video input below). Invalid or multiple codings return
415. Chat Completions and Responses use code unsupported_content_encoding;
Messages returns its Anthropic invalid_request_error envelope without a code
field. Corrupt streams return 400 invalid_compressed_body; either size cap
returns 400 request_too_large. Messages returns both failures as an Anthropic
invalid_request_error envelope without a code.
Chunked uploads are supported, and zstd frames are limited to an 8 MiB window.
Idempotency uses the decoded JSON bytes, so compressed and uncompressed forms of
the same request have the same intent.
gzip -c request.json > request.json.gz
curl https://api.logits.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "Content-Encoding: gzip" \
--data-binary @request.json.gzModels
| Model | Provider context | Max output | Notes |
|---|---|---|---|
moonshotai/kimi-k3.1-pro | 1,048,576 | 1,048,576 | Reasoning, tools, vision, video. Sparse attention for cheaper long-context decode. The earlier kimi-k3.1-pro ID still works as an alias. The retired kimi-k3, kimi-k3-base and moonshotai/kimi-k3 IDs are not accepted and return model_not_found |
logits/kimi-k3.1-pro-abliterated | 1,048,576 | 1,048,576 | Reasoning, tools, vision, video. Also accepts kimi-k3.1-pro-abliterated as an alias; shares the same parameter support as moonshotai/kimi-k3.1-pro |
deepseek/deepseek-v4.1-flash | 1,048,576 | 393,216 | The earlier deepseek-v4.1-flash ID still works as an alias. Dated IDs, when listed in the catalog, are compatibility aliases and do not guarantee a particular serving snapshot |
logits/deepseek-v4.1-flash-abliterated | 1,048,576 | 393,216 | Reasoning, tools, vision, logprobs. Also accepts deepseek-v4.1-flash-abliterated as an alias; shares the same parameter support as deepseek/deepseek-v4.1-flash |
Text requests up to 457,728 bytes are admitted on a byte estimate; larger ones are counted with the model's own tokenizer and admitted up to 4 MiB of request body when the counted prompt plus the requested output fits the 1,048,576-token context (dense English reaches roughly one million prompt tokens within that cap; JSON string escaping counts toward it). Check the model feed for the current limits.
Supported parameters
| Parameter | deepseek/deepseek-v4.1-flash | logits/deepseek-v4.1-flash-abliterated | moonshotai/kimi-k3.1-pro | logits/kimi-k3.1-pro-abliterated |
|---|---|---|---|---|
temperature | Supported (0-2) | Supported (0-2) | Fixed, as Moonshot's API: 1 with reasoning on, 0.6 with reasoning off. Omit it; other values return HTTP 400 | Fixed, as Moonshot's API: 1 with reasoning on, 0.6 with reasoning off. Omit it; other values return HTTP 400 |
top_p | Supported | Supported | Fixed at 0.95: a value from 0.95 to 1, or none, runs at 0.95; any other value returns HTTP 400 | Fixed at 0.95: a value from 0.95 to 1, or none, runs at 0.95; any other value returns HTTP 400 |
max_tokens, max_completion_tokens | Supported | Supported | Supported | Supported |
stop (1,024 bytes each) | Up to 16 | Up to 16 | Up to 5 | Up to 5 |
stream, stream_options.include_usage | Supported | Supported | Supported | Supported |
tools | Supported | Supported | Supported | Supported |
tool_choice | auto, none, required, named function | auto, none, required, named function | auto, none; required: best effort; named function, as Moonshot's API: only with reasoning off (reasoning_effort: "none"), best effort; with reasoning on it returns HTTP 400 | auto, none; required: best effort; named function, as Moonshot's API: only with reasoning off (reasoning_effort: "none"), best effort; with reasoning on it returns HTTP 400 |
response_format (json_object, strict json_schema) | Supported | Supported | Passed through | Passed through |
logprobs, top_logprobs (0-20) | Supported | Supported | Passed through | Passed through |
reasoning_effort | All efforts | All efforts | All efforts; minimal runs as low, xhigh as max; default max | All efforts; minimal runs as low, xhigh as max; default max |
seed, frequency_penalty, presence_penalty, repetition_penalty, top_k | Applied (seed 0 means unset) | Applied (seed 0 means unset) | Ignored | Ignored |
n | Must be 1 | Must be 1 | Must be 1 | Must be 1 |
store | Must be false | Must be false | Must be false | Must be false |
temperatureranges are enforced, not clamped: a value outside the model's range returns HTTP 400invalid_parameter.- Passed through: the model receives the parameter, but it is not yet qualified, so the provider feed does not declare it.
- Ignored: accepted for SDK compatibility but not applied to the output.
- Best effort: passed to the model without a retry, so a forced tool call is not guaranteed.
- Reasoning efforts are
none, minimal, low, medium, high, xhigh, max;noneturns reasoning off. Every model also acceptsinclude_reasoningand the OpenRouter-stylereasoning: {effort, exclude}object. - Vision:
image_urlparts with public HTTPS or base64 PNG/JPEG/WebP/GIF/BMP/TIFF/PPM/HEIC (HEIF)/AVIF. Source inputs fit within the 32 MiB request body or the 12 MiB remote-source limit, with at most 12 MiB of each request besides its image data URLs; each prepared data URL must be under 5 MB, and prepared data URLs must total under 32 MiB. Larger sources and images above the model'smax_pixelsresize target are downscaled and re-encoded to fit, not rejected. Usage reportsimage_tokens. - Video (
moonshotai/kimi-k3.1-proandlogits/kimi-k3.1-pro-abliteratedonly):video_urlparts in user, system (without dynamictools) or tool messages,{"url": "data:video/mp4;base64,..."}or the URL string itself, as base64 MP4, QuickTime (video/quicktimeorvideo/mov) or WebM. HTTPS URLs andms://file IDs are not accepted. At most 4 videos per request, each at most 100 MiB and 10 minutes long. A request with videos may be up to 168 MiB; with its videos replaced by their frames it must fit the 32 MiB request body. Each video is sampled evenly over its whole length at up to 8 fps (never above its own frame rate), at most 480 frames per video and 512 per request, each frame at most 4,096 visual tokens. As in Moonshot's API, every 4 consecutive frames are pooled into one timestamped temporal chunk, and a video's frames share a budget of 655,360 patches before pooling, so one video costs at most about 40,960 visual tokens plus a few tokens per chunk for its timestamp; longer videos are sampled more sparsely. Video tokens are billed as image input tokens and reported inimage_tokens. The audio track is ignored./v1/modelslists the bounds invideo_input.
Usage, errors and rate limits
- Usage: the OpenAI shape, with
completion_tokens_details.reasoning_tokensandprompt_tokens_details.cached_tokens. Cached input is billed at the cached rate shown in the feed. - Errors: always
{"error":{"message","type","code","param"}}. Unknown models return 404model_not_found; unknown parameters return 400 naming the parameter. - Rate limits: rolling-minute per-account, per-model budgets enforced on requests, input tokens and output tokens (the router default is 600 requests, 8M input and 2M output per minute, with higher production budgets for flagship models; see the console Limits page or response headers for active limits). Responses after account/model quota admission carry
x-ratelimit-limit/remainingheaders for requests, input tokens and output tokens, plusx-ratelimit-reset; quota rejections addRetry-After. Validation failures and earlier rejections do not carry these headers. - Request IDs: every response carries
X-Request-Id; quote it in support requests. - Long requests: a non-streaming request sends nothing until the whole answer is ready, and NAT gateways and firewalls on your network can drop a connection that stays idle for a few minutes (350 seconds on AWS NAT Gateway, 4 minutes by default on Azure, 10 minutes for the Google Cloud VPC firewall). The answer is then lost, often without an error. Use
stream: truefor requests that may run longer than a few minutes. Kimi K3.1 Pro and Kimi K3.1 Pro Abliterated streams keep the connection active every 15 seconds. If you must use non-streaming, enable TCP keepalive with an idle time of about 60 seconds and raise your client's request timeout.