REST / cURL
REST / cURL
Example:
curl https://api.uniportai.site/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [
{ "role": "system", "content": "You are an assistant." },
{ "role": "user", "content": "Explain relativity in simple terms." }
]
}'Last updated
