Complete API documentation with examples, SDKs, and interactive tools to help you integrate Outsoor APIs.
All API requests require authentication using your API key in the Authorization header.
All API requests should be made to the following base URL:
/v1/chat/completions
/v1/completions
/v1/embeddings
/v1/images/generations
/v1/audio/transcriptions
/v1/audio/translations
import requests
url = "https://api.outsoor.com/v1/chat/completions"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"model": "gpt-4",
"messages": [
{"role": "user", "content": "Hello, how are you?"}
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
Explore our comprehensive documentation, tutorials, and community resources