Skip to main content
For authentication and model list, see Overview.

Endpoint

POST https://api.pipellm.ai/v1/responses
This free route accepts OpenAI Responses requests and routes only to OpenAI-compatible platforms. Cross-protocol routing for the Responses API is not available yet. If you need cross-protocol routing today, use the OpenAI Format Converter with Chat Completions.

Code Examples

curl https://api.pipellm.ai/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PIPELLM_API_KEY" \
  -d '{
    "model": "gpt-4.1",
    "input": "Write a one-sentence explanation of why the sky is blue."
  }'

Common Request Fields

FieldTypeRequiredDescription
modelstringYesOpenAI-compatible model ID
inputstring or arrayYesText or structured input items
instructionsstringNoDeveloper or system instruction
streambooleanNoEnable streaming output
toolsarrayNoBuilt-in or custom tools
temperaturenumberNoSampling temperature
max_output_tokensintegerNoMaximum output tokens

Response Shape

{
  "id": "resp_123",
  "object": "response",
  "model": "gpt-4.1",
  "output": [
    {
      "type": "message",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "The atmosphere scatters blue light more strongly than red light."
        }
      ]
    }
  ]
}

Routing & Protocols

Understand native route constraints

OpenAI Overview

OpenAI-compatible endpoints on PipeLLM

OpenAI Migration Guide

Official guidance on Responses vs Chat Completions