Skip to content
NotHolyDocs

Start

Quickstart

Make your first request to a NotHoly model in about two minutes.

View as Markdown

1. Get an API key

  1. Create an account at notholy.com/signup and confirm your e-mail.
  2. Add credits in Billing. The minimum deposit is shown on that page.
  3. Open API keys and create a key. It starts with nh_live_ and is shown once.

Export it in your shell. It goes in the Authorization header as a bearer token.

Shell
export NOTHOLY_API_KEY="nh_live_..."

2. List the models

curl
curl https://api.notholy.com/v1/models -H "Authorization: Bearer $NOTHOLY_API_KEY"

The list is public and shows each model's limits and prices. See Models.

3. Send a chat completion

curl https://api.notholy.com/v1/chat/completions \
  -H "Authorization: Bearer $NOTHOLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "notholy-specter", "messages": [{"role": "user", "content": "Explain IDOR in two sentences."}]}'

4. Stream it

Add "stream": true and read server-sent events. Each event is data: {...}, and the stream ends with data: [DONE]. See Streaming.

From the terminal

The CLI uses the same account and signs in from the browser, so you do not need to export a key.

# macOS and Linux
curl -fsSL https://notholy.com/install.sh | sh
Shell
notholy --version
notholy login
notholy "explain IDOR in two sentences"

Each step is explained in Install the CLI.

Common errors

StatusCodeFix
401invalid_api_keyCheck the key and the Authorization: Bearer header
402insufficient_creditsAdd credits in Billing
404model_not_foundUse an ID from GET /v1/models

Next steps