LEAPERone Docs

Responses

POST /v1/responses

Create a model response. This is the OpenAI Responses API, an alternative to Chat Completions that accepts a simpler input format.

Endpoint

POST https://api.leaper.one/v1/responses

Parameters

ParameterTypeRequiredDescription
modelstringYesModel ID. Supported: "auto", "gpt-5-nano"
inputstring | arrayYesA text string or array of input objects to generate a response for
streambooleanNoIf true, partial deltas sent as SSE. Default: false

Request

curl -X POST https://api.leaper.one/v1/responses \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "input": "What is LEAPERone?"
  }'

Response

{
  "id": "resp-abc123",
  "object": "response",
  "created_at": 1700000000,
  "model": "gpt-5-nano",
  "output": [
    {
      "type": "message",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "LEAPERone is a unified AI API gateway that gives you access to multiple AI models through a single API key."
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 12,
    "output_tokens": 22,
    "total_tokens": 34
  }
}