Skip to main content
POST
/
v1
/
responses
curl https://gateway.bud.studio/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4",
    "input": "What is the capital of France?",
    "instructions": "You are a helpful geography tutor.",
    "stream": false
  }'
{
  "id": "resp_abc123",
  "object": "response",
  "created_at": 1699000000,
  "model": "gpt-4",
  "status": "completed",
  "output": "The capital of France is Paris.",
  "usage": {
    "input_tokens": 15,
    "output_tokens": 8,
    "total_tokens": 23
  },
  "metadata": null
}
curl https://gateway.bud.studio/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4",
    "input": "What is the capital of France?",
    "instructions": "You are a helpful geography tutor.",
    "stream": false
  }'
{
  "id": "resp_abc123",
  "object": "response",
  "created_at": 1699000000,
  "model": "gpt-4",
  "status": "completed",
  "output": "The capital of France is Paris.",
  "usage": {
    "input_tokens": 15,
    "output_tokens": 8,
    "total_tokens": 23
  },
  "metadata": null
}

Headers

ParameterTypeRequiredDescription
AuthorizationstringYesBearer authentication header

Body

ParameterTypeRequiredDescription
modelstringYesModel identifier to use
inputstring or arrayYesInput text or multimodal content
instructionsstringNoSystem instructions for the model
previous_response_idstringNoID of previous response for conversation continuity
toolsarrayNoAvailable tools for the model to use
tool_choicestring or objectNoTool selection strategy
temperaturefloatNoSampling temperature (0.0 to 2.0). Default: 1.0
max_tokensintegerNoMaximum tokens to generate
streambooleanNoEnable streaming response. Default: false
metadataobjectNoCustom metadata (max 16 key-value pairs)

Supported Providers

OpenAI

GPT-4 and o1 models with Responses API support

Azure OpenAI

Enterprise Responses API with SLA guarantees