Quickstart
1. Create an account
2. Get your API key
3. Make your first request
Python
pip install openaifrom openai import OpenAI
client = OpenAI(
base_url="https://api.dos.ai/v1",
api_key="dos_sk_...", # Replace with your key
)
response = client.chat.completions.create(
model="dos-ai",
messages=[
{"role": "user", "content": "What is the capital of France?"}
],
)
print(response.choices[0].message.content)JavaScript / TypeScript
cURL
4. Try streaming
Python (streaming)
JavaScript (streaming)
cURL (streaming)
5. Explore further
Last updated