EUrouter

Responses

Responses API endpoints

Create response

POST
/api/v1/responses

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Request Body

application/json

models?array<string>

Fallback model list (EUrouter extension)

rule_id?string

Routing rule ID to apply (EUrouter extension)

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
rule_name?string

Routing rule name to apply (EUrouter extension)

provider?

Provider routing preferences (EUrouter extension)

model?string

Model identifier (e.g., "gpt-4o")

input*string|

The input to generate a response for

instructions?string|

System-level instructions for the model

previous_response_id?string|

ID of previous response for conversation continuity

stream?boolean|

Enable streaming responses

stream_options?|

Options for streaming responses

max_output_tokens?number|

Maximum tokens to generate

temperature?number|

Sampling temperature (0-2)

top_p?number|

Nucleus sampling probability (0-1)

tools?

Available tools for the model

tool_choice?string|string|string||

Tool calling behavior

parallel_tool_calls?boolean

Allow parallel tool calls

truncation?string

Context truncation strategy

Value in"auto" | "disabled"
metadata?

Custom metadata

user?string|

End-user identifier for abuse detection

store?boolean|

Whether to store the response

reasoning?|

Reasoning parameters (for reasoning models)

text?

Text format specification

background?boolean

Whether to run the response in the background

include?array<string>

Additional output data to include

max_tool_calls?number

Maximum number of tool calls allowed

service_tier?string

Service tier for the request

Value in"auto" | "default" | "flex"

Response Body

application/json

curl -X POST "https://api.eurouter.ai/api/v1/responses" \  -H "Content-Type: application/json" \  -d '{    "input": "string"  }'
{
  "id": "string",
  "object": "response",
  "created_at": 0,
  "status": "queued",
  "model": "string",
  "output": [
    {
      "type": "message",
      "id": "string",
      "role": "assistant",
      "status": "in_progress",
      "content": [
        {
          "type": "output_text",
          "text": "string",
          "annotations": [
            null
          ],
          "logprobs": [
            null
          ]
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0,
    "total_tokens": 0,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens_details": {
      "reasoning_tokens": 0
    }
  },
  "completed_at": 0,
  "error": {
    "code": "string",
    "message": "string"
  },
  "incomplete_details": {
    "reason": "max_output_tokens"
  },
  "instructions": "string",
  "max_output_tokens": 0,
  "parallel_tool_calls": true,
  "previous_response_id": "string",
  "reasoning": {
    "effort": "low",
    "summary": "auto"
  },
  "store": true,
  "temperature": 0,
  "text": {
    "format": {
      "type": "text"
    },
    "verbosity": "auto"
  },
  "tool_choice": "string",
  "tools": [
    null
  ],
  "top_p": 0,
  "truncation": "auto",
  "user": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "background": true,
  "service_tier": "string"
}