Skip to main content

First Request

Use curl to make a minimal request to verify that you have correctly configured your API Key.

The interface and domain below are examples: https://api-platform.ope.ai.

1) Set environment variable

export OPEAI_API_KEY="YOUR_API_KEY"

2) Make a request (example: Chat Completions)

curl https://api-platform.ope.ai/v1/chat/completions \
-H "Authorization: Bearer $OPEAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "DeepSeek-V3.2",
"messages": [
{"role": "user", "content": "hello"}
]
}'

3) What you should see

  • On success: Returns a JSON response (including id, choices, and other fields)
  • On failure: Returns a standard error object (see "Error Handling")