Astrodyne

API Keys

Create, use, and revoke the credentials that authenticate your requests.

Create

On API Keys, choose Create API Key. Optional settings: monthly spending limit, expiration date, and a model restriction list.

Copy once

The plaintext key appears exactly once. Copy it into an environment variable immediately:

shell
export ASTRODYNE_API_KEY="your_astrodyne_api_key"

Afterward only a masked prefix (ak-xxxxxxxxx…****) is shown.

Use

curl
curl https://api.astrodyne.ai/v1/chat/completions \
  -H "Authorization: Bearer $ASTRODYNE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "model": "YOUR_MODEL_ID",
       "messages": [{"role": "user", "content": "Hello"}]
     }'

Revoke

Choose Revoke next to a key and confirm. Requests using that key stop authenticating immediately. Revocation is the recommended response to any suspected exposure — create a replacement key first if you need continuity.