Skip to main content

Documentation Index

Fetch the complete documentation index at: https://narev.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Narev Cloud exposes three families of HTTP APIs. All APIs authenticate with a bearer token and return JSON responses.

Authentication

Include your API key as a bearer token in every request:
Authorization: Bearer YOUR_API_KEY
Generate API keys in the Narev Cloud dashboard under Settings → API Keys.

Endpoint overview

Pricing

MethodPathDescription
GET/api/models/pricingList pricing for all models in the catalog
POST/api/models/pricing/calculateCalculate cost for a model call

Applications

MethodPathDescription
POST/api/applications/{application_id}/v1/chat/completionsSend a chat completion to a specific A/B test
POST/api/applications/{application_id}/qualitySubmit a custom quality metric for a response
from openai import OpenAI

# Applications endpoint
client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://narev.ai/api/applications/{application_id}/v1"
)