Eve library

Advanced Usage

Guide

Revision 1

On this page

Demonstrates advanced features with examples.

bash
# curl
curl "$API_BASE/v1/chat" -H "authorization: Bearer $API_KEY" -H 'content-type: application/json' -d '{"persona":"scholar","input":{"text":"Deep dive"}}'
javascript
// JavaScript
await fetch(`${API_BASE}/v1/chat`, {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({ persona: 'scholar', input: { text: 'Deep dive' } }),
});
kotlin
// Kotlin snippet
swift
// Swift snippet