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/apiUsage
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
gpt-5.4
GPT-5.4
gpt-5.4-mini
GPT-5.4 mini
gpt-5.4-nano
GPT-5.4 nano
gpt-5.2
GPT-5.2
gpt-5.1
GPT-5.1
gpt-5
GPT-5
gpt-5-mini
GPT-5 mini
gpt-5-nano
GPT-5 nano
gpt-4.1
GPT-4.1
gpt-4.1-mini
GPT-4.1 mini
gpt-4.1-nano
GPT-4.1 nano
gpt-4o
GPT-4o
gpt-4o-mini
GPT-4o mini
o4-mini
o4-mini
o3
o3
o3-mini
o3-mini
o3-pro
o3-pro
gpt-5.3-codex
GPT-5.3-Codex
gpt-5.3-codex-spark
GPT-5.3-Codex-Spark
gpt-5.2-codex
GPT-5.2-Codex
gpt-5.1-codex-max
GPT-5.1-Codex-Max
gpt-5.1-codex
GPT-5.1-Codex
gpt-5-codex
GPT-5-Codex
gpt-5.1-codex-mini
GPT-5.1-Codex-Mini