Responses
Creates a stateless model response.
Changed onCreates a stateless OpenAI-compatible response. Supports text generation, streaming, and function tools. Do not send store=true, previous_response_id, background=true, or hosted tools.
post/openai/{region}/v1/responses
Request
- Base URLhttps://api.langdock.com
- URLhttps://api.langdock.com/openai/{region}/v1/responses
- AuthHTTP bearer
Path parameters
region'eu' | 'us' | 'global' | 'ch' required
The region of the API to use.
Request body
Response
Successful response or event stream.
Example response
{
"id": "resp_09e99d1f7f163d10016a678387353481",
"created_at": 1785168775,
"completed_at": 1785168778,
"status": "completed",
"model": "gpt-5-mini-2025-08-07",
"output": [
{
"id": "rs_123"
}
],
"usage": {
"input_tokens": 13,
"output_tokens": 154,
"output_tokens_details": {
"reasoning_tokens": 64
},
"total_tokens": 167
}
}Changes
- info
endpoint added
- info