Getting Started

Quickstart

Make your first API call in under 5 minutes.

1. Get an API key

Go to Account → API keys and create a key. Keys look like satryx_live_… for production or satryx_test_… for sandbox. The key is shown only once — copy it now.

Warning:Never commit API keys to source control. Use environment variables: SATRYX_API_KEY=satryx_live_…

2. Install the SDK (optional)

bash
pip install satryx

Or skip the SDK and use any HTTP client — the API is plain JSON over HTTPS.

3. Send a chat message

curl
curl https://api.satryx.ai/v1/chat/completions \
  -H "Authorization: Bearer satryx_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama-3.1-70b",
    "messages": [
      {"role": "user", "content": "Say hello in one sentence."}
    ]
  }'

The response follows the OpenAI chat completion shape, so existing tooling works out of the box.

4. Generate an image

curl
curl https://api.satryx.ai/v1/images/generations \
  -H "Authorization: Bearer satryx_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A neon Tokyo street at night, cinematic",
    "model": "flux-dev",
    "n": 1,
    "size": "1024x1024"
  }'

Next steps