-u {{token}}: instead of -H "Authorization: Bearer {{token}}".
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication
will also fail.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
curl 'https://edgee.io/v1/chat/completions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'
curl 'https://edgee.io/v1/chat/completions' \
-u '<token>:' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'
# The colon prevents curl from asking for a password.
How to authenticate to the Edgee API
curl 'https://edgee.io/v1/chat/completions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'
curl 'https://edgee.io/v1/chat/completions' \
-u '<token>:' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'
# The colon prevents curl from asking for a password.
Authorization: Bearer <api_key>
-u {{token}}: instead of -H "Authorization: Bearer {{token}}".
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication
will also fail.
curl 'https://edgee.io/v1/chat/completions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'
curl 'https://edgee.io/v1/chat/completions' \
-u '<token>:' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'
# The colon prevents curl from asking for a password.
Was this page helpful?