Dagon InferenceDocs Console

API

Responses

The OpenAI Responses API at /v1/responses, for models whose endpoints list it. Requests are stateless: every turn carries its own input.

On this page

Request

POST/v1/responses

curl https://inference.dagon.so/v1/responses \
  -H "Authorization: Bearer $DAGON_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "abliterated-model-large-flash", "input": "Summarise RFC 9110 in three lines.", "max_output_tokens": 512}'

Forwarded fields

model, input, instructions, max_output_tokens, stream, stream_options, temperature, top_p, top_logprobs, tools, tool_choice, parallel_tool_calls, max_tool_calls, text, reasoning, include, truncation, prompt_cache_key, store, metadata, user, safety_identifier. Anything else non-null is 400 unsupported_parameter.

  • The output cap is max_output_tokens (default 16,384).
  • Stored state cannot be priced, so previous_response_id, conversation, prompt, background, item_reference items and file_id parts are refused. Send the content inline.
  • tool_choice may be none, auto, required or {type: "function" | "custom", name} naming one of the request's tools; hosted tool types and allowed_tools are refused.
  • Images: input_image parts.

Last updated