Authentication
The Grid issues two types of API keys. Each key authenticates against a different API and uses a different scheme. This page covers how to generate, use, and rotate both.
Two key types
Key type
API used
Auth scheme
What it covers
Consumption keys
Generate a Consumption key
Use a Consumption key
curl -L https://api.thegrid.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "Text-Prime", "messages": [{"role": "user", "content": "Hello"}]}'Trading keys
Generate an Ed25519 keypair
Register the public key
Sign a request
Header
Value
Key management
Rotation
Compromised keys
Where next
Last updated
Was this helpful?