Quickstart
Go from zero to your first AI-generated response in under five minutes.
1. Create an account
Sign up at app.dos.ai. Every new account receives $5 in free credits -- no credit card required.
2. Get your API key
Log in to the DOS AI dashboard.
Navigate to API Keys in the sidebar.
Click Create new key.
Copy the key (it starts with
dos_sk_). Store it somewhere safe -- you won't be able to see it again.
3. Make your first request
DOS AI is fully compatible with the OpenAI SDK. Install it and point it at our API.
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
Streaming lets you receive tokens as they are generated, giving your users a real-time typing experience.
Python (streaming)
JavaScript (streaming)
cURL (streaming)
5. Explore further
Manage your keys: Authentication
Migrate from OpenAI: OpenAI Compatibility
Check available models:
GET https://api.dos.ai/v1/models
Tip: Since DOS AI is OpenAI-compatible, any tutorial, library, or framework that works with the OpenAI API also works with DOS AI. Just change the base URL and API key.
Last updated