Synrel

Responses API

Call OpenAI models using the Responses API.

Get Your API Key

Go to the API Keys page to create your API key.

API Base URL

https://tokenoff.com/api

Usage

OpenAI models support the /v1/responses endpoint, fully compatible with the OpenAI Responses API.

curl

curl https://tokenoff.com/api/v1/responses \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
  	"model": "gpt-5.4",
  	"input": [
    		{
      		"type": "message",
      		"role": "user",
      		"content": [
        			{"type": "input_text", "text": "Hello"}
      		]
    		}
  	]
}'

Python

from openai import OpenAI

client = OpenAI(
  api_key="your_api_key_here",
  base_url="https://tokenoff.com/api/v1",
)

response = client.responses.create(
  model="gpt-5.4",
  input=[
      {
          "type": "message",
          "role": "user",
          "content": [
              {"type": "input_text", "text": "Hello"}
          ],
      }
  ],
)

print(response.output_text)

TypeScript

import OpenAI from "openai";

const client = new OpenAI({
apiKey: "your_api_key_here",
baseURL: "https://tokenoff.com/api/v1",
});

const response = await client.responses.create({
model: "gpt-5.4",
input: [
	{
  		type: "message",
  		role: "user",
  		content: [
  			{ type: "input_text", text: "Hello" },
  		],
  	},
],
});

console.log(response.output_text);

Supported Models

On this page