Skip to content
DarkSeek API developer preview. View supported features and launch status

Responses

POSThttps://api.darkseeks.com/v1/responses

Creates a model response in the OpenAI Responses API format. The API is stateless: send the complete conversation transcript in input on each request. See the Responses API guide for operator, error and billing considerations.

Contract preview · not publicly enabled

Responses has local native-GPU and official-client protocol evidence, but public inference is not generally enabled. Stored responses, background jobs, images, files and hosted search are not supported. Check the capability matrix and account allowance before use. View availability.

Request

application/json
BODY required
modelstringrequired
Allowed value: "darkseek-v4.1"

Optional request setting. See the protocol guide and deployment limits.

inputstring | object[]required

A plain text input or the complete supported message/function-tool transcript. Stored response IDs, images, files and encrypted state are rejected.

instructionsstring

System-level instructions for this request.

max_output_tokensinteger
Minimum: 1Maximum: 384000Default value: 384000

Live native gateway maximum and omitted-field default: 384000 tokens. Output includes reasoning once. Explicit smaller limits are preserved. Full-length 384K generation has not been certified.

streamboolean
Default value: false

Optional request setting. See the protocol guide and deployment limits.

storeboolean
Allowed value: falseDefault value: false

Forced false upstream even when omitted.

backgroundboolean
Allowed value: falseDefault value: false

Optional request setting. See the protocol guide and deployment limits.

truncationstring
Allowed value: "disabled"

Optional request setting. See the protocol guide and deployment limits.

temperaturenumber
Minimum: 0Maximum: 2

Optional request setting. See the protocol guide and deployment limits.

top_pnumber
Minimum: 0Maximum: 1

Optional request setting. See the protocol guide and deployment limits.

frequency_penaltynumber
Minimum: -2Maximum: 2

Optional request setting. See the protocol guide and deployment limits.

presence_penaltynumber
Minimum: -2Maximum: 2

Optional request setting. See the protocol guide and deployment limits.

stopstring | string[]

Optional request setting. See the protocol guide and deployment limits.

toolsobject[]
Maximum items: 64

Client-executed function declarations. The caller executes tools and returns each call_id once.

Properties
typestringrequired
Allowed value: "function"

Optional request setting. See the protocol guide and deployment limits.

namestringrequired

Optional request setting. See the protocol guide and deployment limits.

descriptionstring

Optional request setting. See the protocol guide and deployment limits.

parametersobject

Optional request setting. See the protocol guide and deployment limits.

strictboolean

Optional request setting. See the protocol guide and deployment limits.

tool_choicestring | object

Optional request setting. See the protocol guide and deployment limits.

parallel_tool_callsboolean

Optional request setting. See the protocol guide and deployment limits.

textobject

format: text, json_object, or json_schema with name/schema/strict. No remote schema references.

reasoningobject

Thinking configuration; supported effort values are shown below.

Properties
effortstring
Possible values: none, low, high, max

Optional request setting. See the protocol guide and deployment limits.

summarystring
Possible values: auto, concise, detailed

Optional request setting. See the protocol guide and deployment limits.

metadataobject

Optional request setting. See the protocol guide and deployment limits.

Responses

200

Response object or SSE stream. Inspect final status, usage and stream completion.

application/json
Schema
idstringrequired

Response identifier. It is not a stored-response lookup key.

objectstringrequired
Allowed value: "response"

The response resource type.

statusstringrequired
Possible values: completed, incomplete, failed

Inspect status before treating generation as complete. An output ceiling can produce an incomplete response.

modelstringrequired

The configured DarkSeek model identifier.

outputobject[]required

Ordered text, reasoning and function-call output items. Use output_text for message text and function_call for client-executed calls.

Properties
typestring

Item type, such as message, reasoning or function_call.

contentobject[]

Message content parts, including output_text text.

call_idstring

Function-call identity to return with a function_call_output.

usageobjectrequired

Authoritative final token usage from the completed upstream protocol, not a static estimate.

Properties
input_tokensinteger

Consumed input tokens.

output_tokensinteger

Generated output tokens.

total_tokensinteger

Total consumed tokens.

incomplete_detailsobject | nullnullable

Reason for an incomplete result, when present. A truncated or errored stream is not a completed result.

errorobject | nullnullable

Failure information. HTTP errors use the documented typed error envelope.

Stateless request

Use model, input and max_output_tokens. The gateway always forwards store:false and background:false, including when omitted. Stored response IDs, item references, encrypted reasoning state, images, files and hosted tools are rejected. Send the complete text/tool transcript on each request.

Tools and structured output

Client-executed function tools support named/auto/required/none tool choice and JSON-object parameter schemas. Return each pending call_id once with function_call_output before generating again. Text, JSON-object and strict JSON-schema output formats are supported. Remote schema references and backend-private options are rejected. The official SDK’s parsed replay helpers must agree with their original JSON and are stripped before forwarding.

Streaming completion

SSE uses response.created, indexed item/part deltas and response.completed or response.incomplete; it does not use [DONE]. The gateway checks sequence, identity, text/tool-argument consistency, terminal usage and upstream EOF before forwarding the terminal event. An error or truncated stream is not successful completion. Reasoning is plaintext when available, not an opaque stored state.

Reasoning effort and streaming examples

Use reasoning.effort with none, low, high or max. The installed V4.1 encoder maps low/high/max to 50/75/100; none disables thinking. These are model reasoning controls, not a guaranteed token budget or quality score. max_effort is not a request field. The output limit includes reasoning and final text. Select Buffered, Streaming or Maximum effort in the example panel; max uses a bounded 128-token probe and may be incomplete.

Actual output ceiling

Maximum output is 384,000 tokens (384K), default 384,000, including reasoning and final text together. Native generation has a bounded 24-hour deadline; the edge relay adds 10 seconds for cleanup. Use SSE for long generations and configure your client timeout accordingly; buffered JSON remains subject to proxy and 16MiB response limits. Input plus requested output must fit the 1,048,576-token context; oversized totals are rejected, never silently truncated. Maximum-budget admission and bounded cancellation are qualified separately from a complete 384K generation; a full-length run has not been certified.

Verification and known limit

On 13 November, an eight-generation official OpenAI SDK canary passed isolated Better Auth/D1 admission, a freshly built local Go gateway and the physical model runtime: buffered JSON, SSE, streamed tools, tool continuation, strict JSON schema, four-token incomplete output and max reasoning in JSON/SSE. Both max probes returned 63 output tokens including 38 reasoning tokens. The origin leaves response.reasoning.effort null; the test checks the forwarded control, actual reasoning item and measured reasoning usage, not an invented echo. Shared quota exhaustion and key revocation passed. An earlier run timed out under queued load; these bounded checks do not certify latency or general public availability. The one-token origin limitation remains; full-length 384K generation is not certified by these short probes.