Zenno

API Documentation

Get started with the Zenno API to integrate our powerful models into your applications.

Authentication

Authenticate your requests by including your API key in the `Authorization` header with the `Bearer` scheme.

Chat Endpoint

POST /v1/chat

Example Request

bash

curl -X POST https://api.zenno.ai/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "message": "Hello, world!"
}'

javascript

async function callZenno() {
  const response = await fetch('https://api.zenno.ai/v1/chat', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ message: 'Hello, world!' })
  });
  const data = await response.json();
  console.log(data);
}

callZenno();

python

import requests

api_key = "YOUR_API_KEY"
headers = {
    "Authorization": f"Bearer {api_key}",
    "Content-Type": "application/json"
}
data = {
    "message": "Hello, world!"
}
response = requests.post("https://api.zenno.ai/v1/chat", headers=headers, json=data)

print(response.json())