API Reference

Complete API documentation with examples, SDKs, and interactive tools to help you integrate Outsoor APIs.

Quick Start

Authentication

All API requests require authentication using your API key in the Authorization header.

Authorization: Bearer YOUR_API_KEY
Base URL

All API requests should be made to the following base URL:

https://api.outsoor.com

API Endpoints

POST
/v1/chat/completions
Chat
Stable
Create a chat completion
POST
/v1/completions
Text
Stable
Create a text completion
POST
/v1/embeddings
Embeddings
Stable
Create embeddings for text
POST
/v1/images/generations
Images
Beta
Generate images from text
POST
/v1/audio/transcriptions
Audio
Stable
Transcribe audio to text
POST
/v1/audio/translations
Audio
Beta
Translate audio to text

Code Examples

Python Example
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())

Official SDKs

🐍
Python
v1.2.0
45.2K downloads
🟨
JavaScript
v2.1.0
67.8K downloads
Java
v1.0.5
23.4K downloads
🔷
C#
v1.1.2
18.9K downloads
🐹
Go
v0.9.1
12.3K downloads
🐘
PHP
v1.0.3
15.7K downloads

Need More Help?

Explore our comprehensive documentation, tutorials, and community resources