Get started
Authentication
Send an API key on every request. Create keys in the dashboard under API keys.
| Field | Type | Description |
|---|---|---|
AuthorizationRequired | header | Bearer followed by your secret key. Keys start with sk_. |
Idempotency-Key | header | Optional on a POST that creates work. Replay the same key to get the same result instead of a second charge. |
curl https://api.pascalai.co/v1/text-to-speech \
-H "Authorization: Bearer $PASCAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "kokoro",
"text": "Keep walking toward the river."
}'
curl https://api.pascalai.co/v1/text-to-speech/$JOB_ID \
-H "Authorization: Bearer $PASCAL_API_KEY"An API key spends the API wallet. It cannot manage billing or create other keys.