Quickstart
Send your first request through the Stogas OpenAI-compatible API.
Stogas provides one API for supported AI models. Existing OpenAI-compatible clients work by changing the base URL.
1. Create an API key
Create a key in the Stogas dashboard, then export it:
export STOGAS_API_KEY="your-key"2. Send a request
curl https://api.stogas.ai/v1/chat/completions \
-H "Authorization: Bearer $STOGAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5-mini",
"messages": [{"role": "user", "content": "Say hello in one sentence."}]
}'Or use the OpenAI Python client:
from openai import OpenAI
client = OpenAI(
api_key="your-key",
base_url="https://api.stogas.ai/v1",
)
response = client.chat.completions.create(
model="openai/gpt-5-mini",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(response.choices[0].message.content)3. Choose a model
Use the model catalog, or query it directly:
curl https://api.stogas.ai/v1/modelsVerify the confidential gateway
Normal OpenAI-compatible requests need no Stogas-specific inference SDK. If you want to verify the gateway and pin the attested TLS key, continue with the verification quickstart.