AIVAX

Welcome

AIVAX is an AI orchestration platform for building, operating, and evaluating AI applications. It gives you one account, one API surface, and one billing wallet.

It combines:

  • Hosted and bring-your-own-key (BYOK) models.
  • Reusable assistant configuration.
  • Knowledge retrieval and tools.
  • Text and media processing.
  • User-facing channels.
  • Background jobs.
  • Conversational evaluation.

You do not need every product for every application. Start with direct inference when you only need a response. Add other products when you need to:

  • Reuse assistant settings.
  • Search your documents.
  • Connect tools or channels.
  • Process many records.
  • Evaluate behavior.

Choose the right starting point #

Use this table when you know the job and need the first product to open. Each row is a starting point, not a complete architecture.

GoalStart withWhy
Generate or analyze text in one requestInferenceCall a hosted or BYOK model through the OpenAI-compatible API without creating reusable assistant configuration.
Reuse instructions, knowledge, tools, and model settingsAI GatewayGive your application one stable assistant runtime that can evolve without rebuilding every request.
Search your own documents or generate grounded answersRAG collectionsStore and index knowledge for semantic retrieval, citations, and gateway context.
Reorder candidates your application already retrievedRerankersImprove relevance without requiring a managed AIVAX collection.
Publish an assistant to end usersChat clientsConnect a gateway to web chat or supported messaging integrations with session and channel controls.
Process many independent recordsBatchRun one repeatable workflow asynchronously with per-item state, validation, retries, cost, and export.
Test a complete assistant conversationAgentic TestsSimulate a goal-oriented user and judge the gateway across multiple turns.
Build a low-latency two-way voice experienceVoice SessionsStream user and assistant audio in an interactive session instead of combining separate audio jobs.

Build the assistant runtime #

This is the core path for an assistant that answers users. Start here when the application needs a model call, reusable settings, knowledge, or tools.

Inference and AI Gateways #

AIVAX exposes OpenAI-compatible model listing and chat completion endpoints. Use this layer when the application needs a generated response.

  • Use a direct model call for exploration, one-off generation, or configuration that does not need to be reused.
  • Use an AI Gateway when the same model, instructions, RAG collections, skills, tools, moderation, or output behavior should serve multiple calls or users.

Most production assistants use a gateway. The application can keep calling one identifier while the assistant configuration changes independently. Gateways can use integrated AIVAX models or external OpenAI-compatible providers.

Production API base URL:

TEXT
https://inference.aivax.net

OpenAI-compatible SDK base URL:

TEXT
https://inference.aivax.net/v1

Reference:

Knowledge, retrieval, and reranking #

A RAG collection is a semantic knowledge library. Use it when answers should come from your own documents.

  1. Add documents.
  2. Test them with Semantic Search.
  3. Attach the collection to an AI Gateway when the assistant should answer from that knowledge.

AIVAX can also generate grounded answers directly from collections and expose collection search through Collections MCP.

Reranking is a separate step. It receives a query and candidate documents, then returns the candidates in a more relevant order.

  • Use a collection for managed storage and retrieval.
  • Use the standalone reranking generation when your application already owns the candidates.

Skills and tools #

Skills package reusable instructions and operating knowledge. Use them when the same procedure should apply across requests.

  • Use a skill when the assistant needs to know how to perform a task.
  • Use RAG when it needs to retrieve facts or source material that may grow or change independently.
  • Use a tool when the assistant must take action or retrieve live information.

Choose among:

  • Built-in tools for capabilities provided by AIVAX.
  • MCP for Model Context Protocol servers and reusable tool ecosystems.
  • Protocol functions for HTTP functions defined by your application.
  • Shell for controlled command execution when the use case requires it.

Keep the tool surface as small as the assistant’s job allows. Each additional tool expands cost, latency, permissions, and failure paths.

Process text, documents, and media #

Use these products when the job is a focused transformation and does not need a full chat conversation:

Choose the path by what you need back:

  • Use direct multimodal inference when the selected chat model supports the input and should reason over it in the same request.
  • Use a focused generation endpoint when you need a reusable artifact, a transcript, a description, or a preprocessing stage.
  • For large independent input sets, run the appropriate operation through Batch.

For interactive two-way audio, use Voice Sessions instead of manually chaining transcription, text inference, and speech generation.

Deliver, scale, and evaluate #

Use these products after the assistant runtime works. They publish it to users, run it across many records, or check whether it behaves as intended.

Chat clients #

A chat client connects an AI Gateway to an end-user channel. Use it for a browser widget or a supported messaging integration. Use the inference API directly when your own backend or interface already manages users, conversation state, and delivery.

A chat client owns presentation, session behavior, allowed origins, uploads, audio replies, channel integrations, and user-facing limits. The gateway continues to own assistant behavior such as the model, instructions, RAG, and tools.

Batch #

Batch applies one workflow to dozens or thousands of independent records. Use it when each record is independent and the caller does not need an immediate answer.

A workflow defines the instruction, model or gateway, structured output, validation, tools, and retry policy. A job then:

  1. Imports items.
  2. Processes them in the background.
  3. Exposes per-item progress and cost.
  4. Exports results.

Do not use Batch when one item depends on another or when a user needs an immediate answer. Use direct inference for one synchronous result and RAG for searchable knowledge.

Agentic Tests #

Agentic Tests evaluate the configured behavior of an AI Gateway across a bounded conversation. A simulated user pursues a goal while an independent judge evaluates progress.

  • Use persisted tests for reusable, scheduled regression coverage.
  • Use an ephemeral evaluation for one immediate run.

A completed test run is not automatically a successful behavior result. Review these together:

  • Run outcome.
  • Judge result.
  • Retained conversation.
  • Usage.
  • Cost.

Operate and connect AIVAX #

Use this section to trace cost, connect a compatible agent, or operate the account from scripts.

AIVAX tracks usage, and conversations when logging is enabled, so you can trace behavior, attribute cost, and diagnose failures. The dashboard and account APIs expose:

  • Account balance.
  • Usage.
  • Conversations.
  • Gateway resources.
  • Collection transactions.
  • Batch items.
  • Agentic Test runs.

Start with Pricing and Plans and limits before enabling a high-volume or media-heavy workflow.

AIVAX also provides MCP utilities for compatible agents:

These utilities expose existing AIVAX capabilities through MCP. They do not replace the underlying account, collection, or inference products.

To operate an account from the terminal or from scripts, install the AIVAX CLI with npm install -g @aivax/cli.

Make your first request #

Use this path for the first successful chat completion. It calls a hosted model or an AI Gateway through the OpenAI-compatible API.

  1. Create a private key in the API Keys area of the AIVAX dashboard.
  2. Store it as a secret, for example in an environment variable named AIVAX_API_KEY.
  3. Install the OpenAI SDK with python -m pip install openai.
  4. Create quickstart.py:
PYTHON
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://inference.aivax.net/v1",
    api_key=os.environ["AIVAX_API_KEY"],
)

response = client.chat.completions.create(
    model="<MODEL_OR_GATEWAY_ID>",
    messages=[
        {"role": "user", "content": "Write a one-sentence welcome message."}
    ],
)

print(response.choices[0].message.content)

Replace <MODEL_OR_GATEWAY_ID> with a hosted model name from the model listing or with an AI Gateway identifier. Then run python quickstart.py.

A successful request prints one generated sentence. If it fails, see Troubleshoot requests.

Long-running inference #

Use the direct inference host when a request ends with HTTP 524 or a proxy timeout while AIVAX is still processing it:

TEXT
https://direct.inference.aivax.net/v1

The request remains synchronous, not a background job.

  1. Keep the client connection open until the completion finishes.
  2. Configure a client timeout that covers the expected processing time.
  3. Use the same private API key, model or AI Gateway identifier, messages, and request parameters.
  4. Change the SDK base URL and timeout:
PYTHON
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://direct.inference.aivax.net/v1",
    api_key=os.environ["AIVAX_API_KEY"],
    timeout=300.0,
)

response = client.chat.completions.create(
    model="<MODEL_OR_GATEWAY_ID>",
    messages=[
        {
            "role": "user",
            "content": "Analyze this case carefully and provide a detailed recommendation.",
        }
    ],
)

print(response.choices[0].message.content)

Endpoints available on the direct host #

Use this list to confirm that the direct host serves the call you need. It serves only the endpoints below. Paths, authentication, request bodies, and responses are the same as on https://inference.aivax.net; only the host changes.

MethodPathEndpoint
POST/v1/chat/completions or /api/v1/chat/completionsChat completions with an integrated model or an AI Gateway
GET/v1/models or /api/v1/modelsModel listing
POST/api/v1/public/chat-clients/<access-key>/promptSend a prompt to a chat-client session
POST/api/v2/query, /api/v2/query/similar, or /api/v2/query/browseSearch
POST/api/v1/answerRAG answer generation
POST/api/v1/generations/imagesImage generation
POST/api/v1/generations/speechSpeech synthesis
POST/api/v1/generations/audio/transcriptionsAudio transcription
POST/api/v1/generations/descriptionsMedia descriptions
POST/api/v1/generations/classifyClassification
POST/api/v1/generations/segmentText segmentation
POST/api/v1/generations/decisionsDecisions
POST/api/v1/generations/rerankReranking
POST/api/v1/generations/agentic-testsEphemeral agentic test evaluation
POST/api/v1/generations/teach-skillTeach skill from a tutorial video
POST/api/v1/web/fetchWeb fetch and OCR

Any other path returns 404 Not Found on the direct host. Account management, AI Gateway, collection, document, batch, and other administrative APIs, including web search, are available only on https://inference.aivax.net.

The endpoints most likely to need the direct host are:

  • Non-streaming chat completions with long reasoning or many tool calls.
  • Image generation on slower models.
  • Media descriptions and transcriptions of large files.
  • Teach skill.
  • Chat-client prompts that run long tool chains.

Streaming chat completions send data continuously and rarely need it.

Next steps #

After the first request succeeds, continue in this order:

  1. Make your first request with the example above, then read Inference for the full request contract.
  2. Read Authentication before choosing private keys, public keys, or chat sessions for an application boundary.
  3. Review Pricing and Plans and limits before increasing traffic or processing large collections, media, tests, or Batch jobs.
  4. Move reusable assistant behavior into an AI Gateway, then add RAG, skills, tools, and a chat client only when the use case requires them.

Type to search the documentation.