curl -X POST "https://api.applerouter.ai/v1/responses" \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "input": "What is the capital of France?", "instructions": "You are a helpful geography assistant." }'
Copy
{ "id": "resp_abc123", "object": "response", "created_at": 1700000000, "status": "completed", "model": "gpt-4o", "output": [ { "type": "message", "id": "msg_abc123", "status": "completed", "role": "assistant", "content": [ { "type": "text", "text": "The capital of France is Paris." } ] } ], "usage": { "prompt_tokens": 25, "completion_tokens": 8, "total_tokens": 33 }}
Chat
Responses API
OpenAI Responses API for creating model responses
POST
/
v1
/
responses
Copy
curl -X POST "https://api.applerouter.ai/v1/responses" \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "input": "What is the capital of France?", "instructions": "You are a helpful geography assistant." }'
Copy
{ "id": "resp_abc123", "object": "response", "created_at": 1700000000, "status": "completed", "model": "gpt-4o", "output": [ { "type": "message", "id": "msg_abc123", "status": "completed", "role": "assistant", "content": [ { "type": "text", "text": "The capital of France is Paris." } ] } ], "usage": { "prompt_tokens": 25, "completion_tokens": 8, "total_tokens": 33 }}
Reasoning Config containing effort (low/medium/high) and summary
Copy
curl -X POST "https://api.applerouter.ai/v1/responses" \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "input": "What is the capital of France?", "instructions": "You are a helpful geography assistant." }'
Copy
{ "id": "resp_abc123", "object": "response", "created_at": 1700000000, "status": "completed", "model": "gpt-4o", "output": [ { "type": "message", "id": "msg_abc123", "status": "completed", "role": "assistant", "content": [ { "type": "text", "text": "The capital of France is Paris." } ] } ], "usage": { "prompt_tokens": 25, "completion_tokens": 8, "total_tokens": 33 }}