Quickstart

Your first request in under a minute

Four steps: create a key, send a request, check the receipt, then go deeper.

1. Get an API key

Open the dashboard at https://app.singularityapi.dev, go to API keys, and click Create.

Your key (sapi_...) is shown once, at creation. Copy it somewhere safe — you cannot view it again.

New accounts start with a $0.00 balance — add credit in the dashboard to make your first request.

2. Make your first request

Set SINGULARITY_API_KEY in your environment and send a chat completion. The example model here is deepseek-v4-flash; see Models & Pricing for the full catalog.

curl https://api.singularityapi.dev/v1/chat/completions \
-H "Authorization: Bearer $SINGULARITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [{"role": "user", "content": "Say hello."}]
}'

3. Check the receipt

Every response carries an x-singularity-request-id and an x-singularity-receipt-id header. Pull the receipt for the exact tokens, cost, and latency of that request:

curl https://api.singularityapi.dev/v1/receipts/RECEIPT_ID \
-H "Authorization: Bearer $SINGULARITY_API_KEY"

Every answer, on the record.

4. Next steps