-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://api.edgee.ai/v1/chat/completions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'
How to authenticate to the Edgee API
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://api.edgee.ai/v1/chat/completions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'
Was this page helpful?