Skip to Content
Quickstart

Quickstart

Get started with Zapi in under 5 minutes.

1. Get your API Key

To use the Zapi APIs, you need an API key.

  1. Sign in to your Zapi Dashboard.
  2. Navigate to the Keys section.
  3. 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