Responses
https://api.darkseeks.com/v1/responsesCreates 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.
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/jsonBODY required
modelstringrequired"darkseek-v4.1"Optional request setting. See the protocol guide and deployment limits.
inputstring | object[]requiredA plain text input or the complete supported message/function-tool transcript. Stored response IDs, images, files and encrypted state are rejected.
instructionsstringSystem-level instructions for this request.
max_output_tokensinteger1Maximum: 384000Default value: 384000Live 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.
streambooleanfalseOptional request setting. See the protocol guide and deployment limits.
storebooleanfalseDefault value: falseForced false upstream even when omitted.
backgroundbooleanfalseDefault value: falseOptional request setting. See the protocol guide and deployment limits.
truncationstring"disabled"Optional request setting. See the protocol guide and deployment limits.
temperaturenumber0Maximum: 2Optional request setting. See the protocol guide and deployment limits.
top_pnumber0Maximum: 1Optional request setting. See the protocol guide and deployment limits.
frequency_penaltynumber-2Maximum: 2Optional request setting. See the protocol guide and deployment limits.
presence_penaltynumber-2Maximum: 2Optional request setting. See the protocol guide and deployment limits.
stopstring | string[]Optional request setting. See the protocol guide and deployment limits.
toolsobject[]64Client-executed function declarations. The caller executes tools and returns each call_id once.
Properties
typestringrequired"function"Optional request setting. See the protocol guide and deployment limits.
namestringrequiredOptional request setting. See the protocol guide and deployment limits.
descriptionstringOptional request setting. See the protocol guide and deployment limits.
parametersobjectOptional request setting. See the protocol guide and deployment limits.
strictbooleanOptional request setting. See the protocol guide and deployment limits.
tool_choicestring | objectOptional request setting. See the protocol guide and deployment limits.
parallel_tool_callsbooleanOptional request setting. See the protocol guide and deployment limits.
textobjectformat: text, json_object, or json_schema with name/schema/strict. No remote schema references.
reasoningobjectThinking configuration; supported effort values are shown below.
Properties
effortstringnone, low, high, maxOptional request setting. See the protocol guide and deployment limits.
summarystringauto, concise, detailedOptional request setting. See the protocol guide and deployment limits.
metadataobjectOptional request setting. See the protocol guide and deployment limits.
Responses
200Response object or SSE stream. Inspect final status, usage and stream completion.
application/jsonSchema
idstringrequiredResponse identifier. It is not a stored-response lookup key.
objectstringrequired"response"The response resource type.
statusstringrequiredcompleted, incomplete, failedInspect status before treating generation as complete. An output ceiling can produce an incomplete response.
modelstringrequiredThe configured DarkSeek model identifier.
outputobject[]requiredOrdered text, reasoning and function-call output items. Use output_text for message text and function_call for client-executed calls.
Properties
typestringItem type, such as message, reasoning or function_call.
contentobject[]Message content parts, including output_text text.
call_idstringFunction-call identity to return with a function_call_output.
usageobjectrequiredAuthoritative final token usage from the completed upstream protocol, not a static estimate.
Properties
input_tokensintegerConsumed input tokens.
output_tokensintegerGenerated output tokens.
total_tokensintegerTotal consumed tokens.
incomplete_detailsobject | nullnullableReason for an incomplete result, when present. A truncated or errored stream is not a completed result.
errorobject | nullnullableFailure 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.