Quickstart
Get started with Zapi in under 5 minutes.
1. Get your API Key
To use the Zapi APIs, you need an API key.
- Sign in to your Zapi Dashboard.
- Navigate to the Keys section.
- Click Generate New Key and copy it securely.
2. Make your first request
You can authenticate your requests by passing your API key in the Authorization header as a Bearer token.
Example Request (LLM)
curl -X POST https://z.os7.site/api/llm/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "role": "user", "content": "Hello, Zapi!" }
]
}'Example Request (Generative AI)
curl -X POST https://z.os7.site/api/generative/image \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic city skyline at sunset, cyberpunk style",
"model": "stable-diffusion-xl"
}'Last updated on