← Back
Istacks API Platform

API documentation

OpenAI-compatible endpoints with a single Istacks API key.

Quickstart

First list the models allowed by your key, then make a chat request.

curl https://istacks.org/api/v1/models \
  -H "Authorization: Bearer oc_..."
Base URL
https://istacks.org/api/v1
Auth
Authorization: Bearer oc_...
Create your key in the developer dashboard.
Chat completions
POST /chat/completions
curl https://istacks.org/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer oc_..." \
  -d '{
    "model": "gpt-5",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Note: some parameters (e.g. temperature) depend on the model.

Responses
POST /responses
curl https://istacks.org/api/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer oc_..." \
  -d '{
    "model": "gpt-5",
    "input": "Hello"
  }'
Errors
  • 401 – Missing or invalid API key
  • 402 – Account not funded (insufficient credits)
  • 403 – Model not allowed for this key
  • 429 – Too many requests (rate limit)
Dashboard