Menu

Quick API Calls from Your Computer Terminal

Copy the cURL example from the page and replace:
  • API Key
  • Model ID

Step 1: Record Your Field Configuration

curl "https://api.benpay.ai/openai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
 -d '{ "model": "YOUR_MODEL_ID", "messages": [{"role": "user", "content": "Hello"}]
}'
 
 

Step 2: Send a Request from Your Terminal or Development Environment

Enter the template and use your API Key and model to make a request.

Step 3: Successful Request

Share this Article
Previous
API Quick Integration Examples
Next
Configure Codex with CC-Switch
Last modified: 2026-07-13