Use this token to authenticate API requests and extensions.
Copied!
How to Use
Pass the token as a Bearer token in the Authorization header:
# cURLcurl-X POST https://promptzap.io/api/generate \
-H"Content-Type: application/json" \
-H"Authorization: Bearer YOUR_TOKEN" \
-d'{"task": "write a blog about AI", "framework": "auto"}'
# Pythonimport requests
response = requests.post(
"https://promptzap.io/api/generate",
headers={"Authorization": f"Bearer YOUR_TOKEN"},
json={"task": "write a blog about AI", "framework": "auto"}
)