Developer guide

Overview

At a glance

CLEVI models are called with a single gateway API key. To choose the ID to put in the request's model field, you need the product families and the calls each model allows; to decide which SDK to connect with, you need the base URLs of the two compatible specs.
This document covers the components, terms, product families, call paths, and console pages needed for those two decisions.
The procedure for your first call is in the Quickstart document.

Components

Components and where they are documented
ComponentWhat it doesDetails
Model familiesCIP handles general intelligence and work automation, Cosa handles speech generation and recognition, and Cova handles information extraction from documents and images. The gateway plan table also includes Ivy, which handles embeddings and conversational inference.Models
GatewayThe API entry point under platform.clevi.net. It calls models through the OpenAI-compatible path and the Anthropic-compatible path, and both paths authenticate with a single API key.Authenticate with an API key, Make API calls
ConsoleIssue and revoke API keys, call models in the Playground, and check usage and limits.Console pages section below
CleviDriveStores the output of the speech synthesis paths. The retention period is 3 days; after that, 404.Make API calls

Terms

Terms used in this document and the API documents
TermMeaning
GatewayThe API entry point under platform.clevi.net. It provides an OpenAI-compatible path and an Anthropic-compatible path.
Compatible specA request and response format matched so that you can use the OpenAI SDK or Anthropic SDK you already have by changing only the base URL.
WorkspaceThe unit to which limits apply. Limit values differ by workspace.
PlanDetermines which calls each model allows. LLM_FREE, TTS_FREE, and STT_FREE are applied automatically without a request.
Allowed callsThe call keys a plan opens for a model, such as chat.completions, anthropic.messages, embeddings, and audio.speech.
ProductThe billing unit for speech and voice paths. audio/speech and audio/transcriptions select it by model in the request body; voice paths specify it with the X-Product-Sku header or the product_sku query parameter.

Product families and models

Product families and granting plans
Product familyModel IDPrimary roleGranting plan
CIPcip-5.5-imGeneral-purpose work. Prioritizes response speed and throughput. 360B · 256K input · 64K output · multimodalLLM_FREE
CIPcip-5.5-mmLong-context analysis and complex problem solving. 800B · 512K input · 64K output · multimodalLLM_FREE
CIPcip-5.5-smEdge servers and local work automation. Adjustable between 24B and 40B
Cosacosa-a, cosa-bSpeech synthesis, cloning, design, and streamingTTS_FREE
Cosacosa-asrSpeech recognitionSTT_FREE
Ivyivy-4-embedding, ivy-4-embedding-mmEmbedding generationLLM_FREE
Ivyivy-4-mmConversational inferenceLLM_FREE
Covacova-1LLM-based vision OCR. Text, layout, and table extraction with brief image descriptions

The models your account can actually call are determined by the Playground model list and the GET /models response. The plan table shows the range opened by the plans and does not include models opened through other routes. In the plan table, cip-5.5-im-chat, cip-5.5-mm-h, and cosa-tts are IDs not described in the product family document, and cip-5.5-sm and cova-1 are not in the plan table.

By connecting the product families, you can build the following flows.

  • Document-based work: Cova extracts body text, tables, and image descriptions; CIP selectively checks the originals it needs and performs analysis and task processing; Cosa delivers the results as speech.
  • Speech-based work: cosa-asr converts a spoken request to text, and cosa-a or cosa-b reads out the answer that CIP produced.
  • On-site automation: cip-5.5-sm classifies on-site data and performs local work, and hands off material that needs further overall analysis to cip-5.5-im or cip-5.5-mm.

Call paths and authentication

Both compatible specs use the same API key, and conversational inference models can be called through either spec. Embeddings and the speech and voice paths exist only in the OpenAI-compatible spec.

API basics
ItemValue
OpenAI-compatible base URLhttps://platform.clevi.net/api/v2/aiservice/openai/v1
Anthropic-compatible base URLhttps://platform.clevi.net/api/v2/aiservice/anthropic (the SDK appends /v1 itself)
Authentication headerX-API-Key: <key> or Authorization: Bearer <key>. If both are specified, the X-API-Key value takes precedence
OpenAI-compatible spec pathschat/completions, responses, completions, embeddings, models, audio, voices
Anthropic-compatible spec pathsv1/messages, v1/messages/count_tokens, v1/models
StreamingSet stream: true in the request body to receive a Server-Sent Events response. embeddings does not stream
Key issuance pageThe API Keys page of the console
Limits and usageDiffer by workspace; check the Overview, Plan and credits, and Usage pages of the console

Errors are reported with HTTP status codes. If the upstream returns a 4xx or 5xx, that code is passed through as is, and 402 is never returned. Header rules are in the Authenticate with an API key document, per-path behavior in the Make API calls document, and what to do for each code in the Error codes document.

Console pages

Console pages and what they are for
PageWhat it does
Getting started guideWalks through issuing a key to making your first call in 3 steps.
API KeysManages key issuance, revocation, and scope.
PlaygroundShows the list of callable models and lets you call them directly from the browser.
UsageShows call volume per model and per key, and estimated credit deductions.
OverviewShows the allocated usage limits applied to the workspace.
Plan and creditsShows the range your plan allows and your balance.
Help and SupportWhere to report repeated 5xx errors, together with the X-Request-Id.

Related documents

  • Quickstart: from issuing a key to your first chat/completions call and streaming
  • Models: the full model list, specifications, and allowed calls
  • Authenticate with an API key: authentication headers, base URLs, optional headers
  • Make API calls: paths by spec, streaming rules, speech and voice rules
  • Error codes: what to do for each status code, retries, error bodies

Language and region

Machine-translated languages are translated by clevi/cip-5.5-im and marked as such. This applies to languages with a published site bundle.

137 languages

Recommended

1

East Asia

7

Southeast Asia

11

South Asia

18

Central Asia

5

Middle East and the Caucasus

10

Western and Southern Europe

17

Britain and Ireland

4

Northern Europe and the Baltics

10

Central Europe and the Balkans

14

Eastern Europe

5

East Africa and the Horn

8

West and Central Africa

9

Southern Africa

8

The Americas

5

The Pacific

5