Quickstart
Create a key, choose a model, and send your first request.
1. Create an API key
Sign in to the FUNCD Console, open API keys, and create a key.
- Keys allow all current and future models by default.
- You can restrict a key to selected models.
- You can set a lifetime spending limit and expiration time.
- Store the key in a server-side environment variable or secret manager.
bash
export FUNCD_API_KEY="pk_live_..."2. List available models
The response is filtered by the current key's model permissions. Use an object's id in requests.
bash
curl 'https://api.funcd.org/v1/models' \
-H "Authorization: Bearer $FUNCD_API_KEY"You can also review context limits and USD prices in the public model catalog.
3. Send a request
bash
curl 'https://api.funcd.org/v1/chat/completions' \
-H "Authorization: Bearer $FUNCD_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "tokener-gpt-5-6-luna",
"messages": [{"role": "user", "content": "Reply only with OK"}],
"max_tokens": 128
}'Review the final charge in Usage or Balance & billing in the Console.