From 734349fd743b6dd13e19b74e343e2f9a65334a2b Mon Sep 17 00:00:00 2001 From: Stan Date: Thu, 26 Nov 2026 15:40:14 +0500 Subject: [PATCH] docs(integrations): sync pages with merged upstream integrations Add pages for Goose, OpenCodex, OmniRoute, AiSOC, rea-video and models.dev. Update Hermes (official plugin + MCP opt-in), AutoGPT (MCP catalog), OpenClaude (MCP plugin, new package name), Dify (Media & Search tool plugin), Cline (native provider via models.dev), Agno, Zero and LangChain to match upstream code. Fix /broken/ links across the integrations section. --- docs/SUMMARY.md | 6 + docs/integrations/agno.md | 75 ++--- docs/integrations/aisoc.md | 129 ++++++++ docs/integrations/autogpt.md | 30 +- docs/integrations/cline.md | 70 ++--- docs/integrations/continue.dev.md | 2 +- docs/integrations/dify.md | 41 ++- docs/integrations/elizaos.md | 2 +- docs/integrations/goose.md | 162 ++++++++++ docs/integrations/hermes-desktop.md | 6 +- docs/integrations/hermes.md | 351 ++++++++-------------- docs/integrations/langchain.md | 18 +- docs/integrations/models-dev.md | 93 ++++++ docs/integrations/money-printer-turbo.md | 8 +- docs/integrations/n8n.md | 2 +- docs/integrations/oh-my-pi.md | 6 +- docs/integrations/omniroute.md | 152 ++++++++++ docs/integrations/openclaude.md | 99 ++++-- docs/integrations/opencodex.md | 170 +++++++++++ docs/integrations/our-integration-list.md | 2 +- docs/integrations/ragflow.md | 6 +- docs/integrations/rea-video.md | 144 +++++++++ docs/integrations/roo-code.md | 2 +- docs/integrations/zero.md | 30 +- 24 files changed, 1230 insertions(+), 376 deletions(-) create mode 100644 docs/integrations/aisoc.md create mode 100644 docs/integrations/goose.md create mode 100644 docs/integrations/models-dev.md create mode 100644 docs/integrations/omniroute.md create mode 100644 docs/integrations/opencodex.md create mode 100644 docs/integrations/rea-video.md diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 47ad90e6d..070c69032 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -869,6 +869,7 @@ * [Our Integration List](integrations/our-integration-list.md) * [Agno](integrations/agno.md) * [Aider](integrations/aider.md) +* [AiSOC](integrations/aisoc.md) * [βš›οΈ Atomic Agent](integrations/atomic-agent.md) * [AutoGPT](integrations/autogpt.md) * [Browser Use](integrations/browser-use.md) @@ -878,6 +879,7 @@ * [⭐ Cursor-HIDDEN](integrations/cursor.md) * [Dify](integrations/dify.md) * [ElizaOS](integrations/elizaos.md) +* [Goose](integrations/goose.md) * [GPT Researcher (gptr)](integrations/gpt-researcher-gptr.md) * [Hermes](integrations/hermes.md) * [Hermes Desktop](integrations/hermes-desktop.md) @@ -888,12 +890,16 @@ * [Make](integrations/make.md) * [Manus](integrations/manus.md) * [Marvin](integrations/marvin.md) +* [models.dev](integrations/models-dev.md) * [Money Printer Turbo](integrations/money-printer-turbo.md) * [⭐ n8n](integrations/n8n.md) * [Oh My Pi](integrations/oh-my-pi.md) +* [OmniRoute](integrations/omniroute.md) * [OpenClaude](integrations/openclaude.md) * [🦞 OpenClaw AI/ML](integrations/openclaw.md) +* [OpenCodex](integrations/opencodex.md) * [RAGFlow](integrations/ragflow.md) +* [rea-video](integrations/rea-video.md) * [Roo Code](integrations/roo-code.md) * [793](integrations/793.md) * [SillyTavern](integrations/sillytavern.md) diff --git a/docs/integrations/agno.md b/docs/integrations/agno.md index c149fbbda..f23fd9fa7 100644 --- a/docs/integrations/agno.md +++ b/docs/integrations/agno.md @@ -19,22 +19,22 @@ pip install -U agno ## How to Use AIML API with Agno -A user of the Agno can +Agno ships an `AIMLAPI` model class (`agno.models.aimlapi`). It uses the OpenAI-compatible endpoint `https://api.aimlapi.com/v1` and reads your key from `AIMLAPI_API_KEY`, or from the `api_key` argument: {% code overflow="wrap" %} ```python -from agno.models.aimlapi import AIMLApi +from agno.agent import Agent +from agno.models.aimlapi import AIMLAPI agent = Agent( - model=AIMLApi( - id="gpt-4o", + model=AIMLAPI( + id="openai/gpt-5.6-luna", api_key="" - ), - markdown=True, - telemetry=False, - monitoring=False + ), + markdown=True, + telemetry=False, ) - + agent.print_response("Tell me, why is the sky blue in 2 sentences") ``` {% endcode %} @@ -60,22 +60,30 @@ agent.print_response("Tell me, why is the sky blue in 2 sentences") +{% hint style="info" %} +In Agno versions before 2.0 the class was named `AIMLApi`. Update Agno with `pip install -U agno` and import `AIMLAPI`. +{% endhint %} + +## Model settings +| Parameter | Default | +| --- | --- | +| `id` | `gpt-5.6-luna` | +| `api_key` | value of `AIMLAPI_API_KEY` | +| `base_url` | `https://api.aimlapi.com/v1` | +| `max_tokens` | `4096` | ## **Our Supported models** -* All OpenAI-compatible models ([gpt-4o](../api-references/text-models-llm/openai/gpt-4o.md), [gpt-4o-mini](../api-references/text-models-llm/openai/gpt-4o-mini.md), gpt-4-turbo, [gpt-3.5-turbo](../api-references/text-models-llm/openai/gpt-3.5-turbo.md), o3-mini, o1, etc), -* [Google models](../api-references/text-models-llm/google/), -* [Anthropic models](../api-references/text-models-llm/anthropic/) is only partially supported and only via `api.aimlapi.com/v2` base URL, -* and some other models (the list is constantly being updated). +Any AI/ML API chat model works with `AIMLAPI`. Pass its exact ID from [All Model IDs](../api-references/model-database.md) as `id`, for example `openai/gpt-5-5`, `anthropic/claude-sonnet-5` or `google/gemini-3.6-flash`. ## **Supported features** -* Synchronous and asynchronous requests -* Chain-of-thought reasoning -* Built-in RAG and multimodal support -* Collaborative agent workflows (Teams) -* Access to built-in tools (DuckDuckGo, Docker, and many more) +* Synchronous and asynchronous requests, with streaming +* Tool use +* Structured output +* Image input with vision models +* Retries with backoff ## Code Examples @@ -99,7 +107,7 @@ export AIMLAPI_API_KEY=*** 3\. Install libraries ```bash -pip install -U openai duckduckgo-search duckdb yfinance agno +pip install -U openai ddgs duckdb yfinance agno ``` @@ -110,15 +118,14 @@ pip install -U openai duckduckgo-search duckdb yfinance agno {% tab title="Python" %} {% code overflow="wrap" %} ```python -from agno.agent import Agent, RunResponse # noqa -from agno.models.aimlapi import AIMLApi +from agno.agent import Agent, RunOutput # noqa +from agno.models.aimlapi import AIMLAPI -agent = Agent(model=AIMLApi(id="gpt-4o-mini"), markdown=True) +agent = Agent(model=AIMLAPI(id="openai/gpt-5.6-luna"), markdown=True) # Get the response in a variable -# run_response: Iterator[RunResponse] = agent.run("Share a 2 sentence horror story", stream=True) -# for chunk in run_response: -# print(chunk.content) +# run: RunOutput = agent.run("Share a 2 sentence horror story") +# print(run.content) # Print the response in the terminal agent.print_response("Share a 2 sentence horror story", stream=True) @@ -135,10 +142,10 @@ agent.print_response("Share a 2 sentence horror story", stream=True) ```python from agno.agent import Agent from agno.media import Image -from agno.models.aimlapi import AIMLApi +from agno.models.aimlapi import AIMLAPI agent = Agent( - model=AIMLApi(id="meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo"), + model=AIMLAPI(id="openai/gpt-5.6-luna"), markdown=True, ) @@ -162,18 +169,16 @@ agent.print_response( {% tab title="Python" %} {% code overflow="wrap" %} ```python -"""Run `pip install duckduckgo-search` to install dependencies.""" +"""Run `pip install ddgs` to install dependencies.""" from agno.agent import Agent -from agno.models.aimlapi import AIMLApi -from agno.tools.duckduckgo import DuckDuckGoTools +from agno.models.aimlapi import AIMLAPI +from agno.tools.websearch import WebSearchTools agent = Agent( - model=AIMLApi(id="gpt-4o-mini"), markdown=True), - tools=[DuckDuckGoTools()], - show_tool_calls=True, + model=AIMLAPI(id="openai/gpt-5.6-luna"), + tools=[WebSearchTools()], markdown=True, - debug_mode=True, ) agent.print_response("Whats happening in France?") @@ -186,4 +191,4 @@ agent.print_response("Whats happening in France?") For further information about the framework, please check [the official Agno documentation](https://docs.agno.com/introduction). -For additional examples, check out our [repo](https://github.com/D1m7asis/agno-aimlapi/tree/63522cb6c302f88d7a40ab734ee037ca8dc73d23/cookbook/models/aimlapi). +For more examples (structured output, retries, image agent with memory), see the [AI/ML API cookbook in the Agno repository](https://github.com/agno-agi/agno/tree/main/cookbook/90_models/aimlapi). diff --git a/docs/integrations/aisoc.md b/docs/integrations/aisoc.md new file mode 100644 index 000000000..cbda8df3a --- /dev/null +++ b/docs/integrations/aisoc.md @@ -0,0 +1,129 @@ +--- +description: >- + Use AI/ML API models for the AI agents in AiSOC, the self-hosted AI security + operations center, through its custom endpoint credential. +--- + +# AiSOC + +## About + +[AiSOC](https://github.com/beenuar/AiSOC) is an open-source, self-hostable AI Security Operations Center. It ingests security telemetry, detects threats, and investigates them with AI agents. + +AiSOC can run its agents on any OpenAI-compatible endpoint through a **Custom endpoint** credential. Since [PR #1543](https://github.com/beenuar/AiSOC/pull/1543) (AiSOC **v20.3.0** and later), the settings form can also list the models an endpoint offers, so you can pick an AI/ML API model from a dropdown instead of typing its ID. + +## Quick start + +{% stepper %} +{% step %} +## Start AiSOC + +```bash +git clone https://github.com/beenuar/AiSOC && cd AiSOC +make up +``` +{% endstep %} + +{% step %} +## Open the credential form + +In the console, go to **Settings β†’ Deployment & AI** and click **Configure BYOK credential**. +{% endstep %} + +{% step %} +## Fill in AI/ML API + +* **Provider**: Custom endpoint +* **Base URL**: `https://api.aimlapi.com/v1` +* **API key**: your AI/ML API key +{% endstep %} + +{% step %} +## Pick a model and save + +Click **List models from endpoint**, choose a model, then click **Save credential** and **Test**. +{% endstep %} +{% endstepper %} + +## When to use AI/ML API with AiSOC + +AI/ML API works well with AiSOC when you want: + +* to choose the model behind AiSOC's agents from hundreds of chat models with one key +* to switch models for a tenant without redeploying AiSOC +* a hosted model endpoint instead of running a model yourself + +## Prerequisites + +Before you start, make sure you have: + +* AiSOC v20.3.0 or later, running (see the [AiSOC quick start](https://github.com/beenuar/AiSOC#quick-start)) +* an account in the AiSOC console that can change settings +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) + +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). + +## Set up AI/ML API in AiSOC + +1. Open **Settings β†’ Deployment & AI**. +2. Click **Configure BYOK credential** (or **Edit BYOK credential** if one exists). +3. Set **Provider** to **Custom endpoint**. +4. Set **Base URL** to `https://api.aimlapi.com/v1`. +5. Paste your AI/ML API key into **API key**. AiSOC encrypts the key before storing it and never shows it again in the UI. +6. Click **List models from endpoint** and choose a model from the list, or type a model ID into **Model**. +7. Make sure **Use this credential** is on. +8. Click **Save credential**, then **Test**. + +AiSOC sends chat requests to `https://api.aimlapi.com/v1/chat/completions` and reads the model list from `https://api.aimlapi.com/v1/models`. + +## Model selection + +**List models from endpoint** shows only chat models from the AI/ML API catalog. + +For the full catalog, use [All Model IDs](../api-references/model-database.md). + +## Config checklist + +Make sure these values are set: + +* Provider: **Custom endpoint** +* Base URL: `https://api.aimlapi.com/v1` +* API key: your AI/ML API key +* Model: exact AI/ML API chat model ID +* **Use this credential**: on + +## Troubleshooting + +
+ +I don't see "List models from endpoint" + +Model listing arrived in AiSOC v20.3.0. Update AiSOC, or type the model ID into **Model** by hand. + +
+ +
+ +Test fails with an auth error + +Check that: + +* the key is valid at [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* the base URL is exactly `https://api.aimlapi.com/v1` +* your balance is sufficient at [aimlapi.com/app](https://aimlapi.com/app) + +
+ +
+ +AiSOC keeps using the default model + +Make sure **Use this credential** is on. When it is off, AiSOC falls back to the defaults of the deployment without deleting your saved settings. + +
+ +## Links + +* [AiSOC repository](https://github.com/beenuar/AiSOC) +* [AI/ML API keys](https://aimlapi.com/app/keys) +* [AI/ML API model catalog](https://aimlapi.com/models) diff --git a/docs/integrations/autogpt.md b/docs/integrations/autogpt.md index b93cd24c2..36ae5a7bf 100644 --- a/docs/integrations/autogpt.md +++ b/docs/integrations/autogpt.md @@ -4,7 +4,7 @@ AutoGPT is an open-source platform designed to help you build, test, and run AI agents using a no-code visual interface. It allows users to link LLMs with tools, memory, planning modules, and action chains. By configuring block-based workflows, you can create custom agents that reason, plan, and act in multi-step environments. -In this guide, you'll learn how to connect AutoGPT with high-performance language models from AI/ML API for use in AI-driven text generation tasks. +In this guide, you'll learn how to connect AutoGPT with high-performance language models from AI/ML API for use in AI-driven text generation tasks, and how to connect the AI/ML API MCP server so your agents can use AI/ML API tools ([see below](autogpt.md#connect-ai-ml-api-mcp-tools)). *** @@ -88,8 +88,8 @@ Click the block to configure it, then select one of the currently supported AIML In the **AI Text Generator** block: 1. Set **Prompt**: Type any message you want the model to respond to. -2. Set **API Key**: - * Enter your AI/ML API key. +2. Set **Credentials**: + * Add your AI/ML API key as the credential for the AI/ML API provider.
@@ -138,7 +138,8 @@ After saving, you can now launch the agent: #### 🧾 3. View the Output -1. **Navigate to the "Output" Panel.** At your **AI/ML API block**, locate the **"Output"** panel below.2. You'll see the response returned by the AI/ML API model. +1. **Navigate to the "Output" Panel.** At your **AI/ML API block**, locate the **"Output"** panel below. +2. You'll see the response returned by the AI/ML API model. 2. You can copy the result, export it, or pass it into further blocks (like analysis, memory, or a webhook).
@@ -155,6 +156,27 @@ After saving, you can now launch the agent: > * 🧠 **Memory** – store and reuse past interactions for contextual reasoning. > * βš™οΈ **Actions / Chains** – create complex behavior flows and intelligent pipelines. +## Connect AI/ML API MCP tools + +AutoGPT lists AI/ML API in its MCP catalog ([PR #16771](https://github.com/Significant-Gravitas/AutoGPT/pull/16771), in AutoGPT Platform beta v0.12.0 and later). The catalog entry points to the hosted AI/ML API MCP server at `https://mcp.aimlapi.com/mcp` and supports two ways to sign in: OAuth with your AI/ML API account, or an API key sent as a Bearer token. Once connected, agents can use AI/ML API tools for model discovery, account balance, image, video and audio generation, chat, embeddings and the Toolbox. Billed tools are charged to your AI/ML API balance. + +### Option 1: Settings β†’ Integrations + +1. Open **Settings β†’ Integrations** and click **Connect a service**. +2. Search for **AI/ML API**. +3. Choose a sign-in method: + * **Sign in**: click **Connect**, then sign in to AI/ML API in the browser and approve access. + * **API token**: paste your AI/ML API key and click **Save token**. + +### Option 2: MCP Tool block in the builder + +1. Add the **MCP Tool** block to your agent. +2. In the **Connect to MCP Server** dialog, enter the **Server URL** `https://mcp.aimlapi.com/mcp` and click **Discover Tools**. +3. When the server asks for authentication, click **Sign in & Connect** and sign in to AI/ML API in the browser. To use a key instead, open **or enter an API credential manually**, paste your key into **API token**, and click **Connect & Discover**. +4. Select the tool to add to your workflow from the list of discovered tools. + +For more about the server and its tools, see [MCP](../quickstart/mcp.md). + ## More For further information about the framework, please check [the official AutoGPT documentation](https://docs.agpt.co/platform/getting-started/). diff --git a/docs/integrations/cline.md b/docs/integrations/cline.md index eda285b4d..4699644da 100644 --- a/docs/integrations/cline.md +++ b/docs/integrations/cline.md @@ -32,15 +32,31 @@ Faster: run `npx aimlapi cline`. It signs you in through the browser and makes A
-In the settings: +In the settings, pick one of the two options below. + +### Option 1: AI/ML API provider (Cline v4.1.24 and later) + +Cline ships **AI/ML API** (provider ID `aimlapi`) in its provider list, generated from the [models.dev](models-dev.md) catalog. + +* In **API Provider**, search for **AI/ML API** and select it. +* In **Base URL**, make sure the value is `https://api.aimlapi.com/v1`. Enter it if the field is empty. +* In the API key field, enter your [AI/ML API key](https://aimlapi.com/app/keys). +* In **Model ID**, enter an AI/ML API model ID, for example `anthropic/claude-sonnet-5`. +* Click **Save**. + +Cline uses the same OpenAI-compatible settings form for this provider, so the API key field may be labeled **OpenAI Compatible API Key**. + +### Option 2: OpenAI Compatible provider + +Use this on Cline versions before v4.1.24: * Set **API Provider** to **OpenAI Compatible**. -* In **Base URL**, enter one of our available endpoints. +* In **Base URL**, enter `https://api.aimlapi.com/v1`. * In **API Key**, enter your [AI/ML API key](https://aimlapi.com/app/keys). * In **Model ID**, specify the model name. You can find some model selection tips in our [description of code generation as a capability](../capabilities/code-generation.md). * Click **Save**. -All done β€” start coding with Cline! +All done, start coding with Cline! ## Usage Example @@ -62,47 +78,21 @@ To save the file, Cline asks for confirmation. Once the file is saved, a second API request appears with metadata, along with a notification that the task was successfully completed. -## **Supported Models** - -These models have been tested by our team for compatibility with Cline integration. - -
- -Supported Model List - -* [gpt-3.5-turbo](../api-references/text-models-llm/openai/gpt-3.5-turbo.md) -* [gpt-3.5-turbo-0125](../api-references/text-models-llm/openai/gpt-3.5-turbo.md) -* [gpt-3.5-turbo-1106](../api-references/text-models-llm/openai/gpt-3.5-turbo.md) -* [gpt-4o](../api-references/text-models-llm/openai/gpt-4o.md) -* [gpt-4o-2024-05-13](../api-references/text-models-llm/openai/gpt-4o.md) -* [gpt-4o-2024-08-06](../api-references/text-models-llm/openai/gpt-4o.md) -* [gpt-4o-mini](../api-references/text-models-llm/openai/gpt-4o-mini.md) -* [gpt-4o-mini-2024-07-18](../api-references/text-models-llm/openai/gpt-4o-mini.md) -* [chatgpt-4o-latest](../api-references/text-models-llm/openai/gpt-4o.md) -* [gpt-4o-2024-05-13](../api-references/text-models-llm/openai/gpt-4o.md) -* [gpt-4o-2024-08-06](../api-references/text-models-llm/openai/gpt-4o.md) -* [openai/gpt-4.1-2025-04-14](../api-references/text-models-llm/openai/gpt-4.1.md) -* [openai/gpt-4.1-mini-2025-04-14](../api-references/text-models-llm/openai/gpt-4.1-mini.md) -* [deepseek/deepseek-chat](../api-references/text-models-llm/deepseek/deepseek-chat.md) -* [deepseek/deepseek-r1](../api-references/text-models-llm/deepseek/deepseek-r1.md) -* [meta-llama/Llama-3.3-70B-Instruct-Turbo](../api-references/text-models-llm/meta/Llama-3.3-70B-Instruct-Turbo.md) -* [qwen-max](../api-references/text-models-llm/alibaba-cloud/qwen-max.md) -* [qwen-max-2025-01-25](../api-references/text-models-llm/alibaba-cloud/qwen-max.md) -* [qwen-plus](../api-references/text-models-llm/alibaba-cloud/qwen-plus.md) -* [anthracite-org/magnum-v4-72b](../api-references/text-models-llm/anthracite/magnum-v4.md) -* [google/gemini-2.0-flash](/broken/pages/CapOhTrzos7y9s3QTcET) -* [mistralai/mistral-nemo](../api-references/text-models-llm/mistral-ai/mistral-nemo.md) -* [MiniMax-Text-01](../api-references/text-models-llm/minimax/text-01.md) -* [x-ai/grok-3-beta](../api-references/text-models-llm/xai/grok-3-beta.md) -* [x-ai/grok-3-mini-beta](../api-references/text-models-llm/xai/grok-3-mini-beta.md) - -
+## Model selection + +Use exact AI/ML API chat model IDs, for example: + +* `anthropic/claude-sonnet-5`: strong for coding +* `openai/gpt-5-5`: strong general use +* `google/gemini-3.6-flash`: lower latency and lower cost + +With the AI/ML API provider, Cline suggests models from its copy of the models.dev catalog, which it refreshes at runtime. For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Troubleshooting Possible Issues: * **403 status code (no body)** β€” This is the most common error. Possible causes: - * You might need to use a different endpoint. Be sure to refer to the documentation for the specific model you've selected from our catalog! + * The Base URL is not `https://api.aimlapi.com/v1`. * The user may have run out of tokens or doesn’t have enough. Check your balance in your account dashboard. -* **400 status code (no body)** β€” This error occurs when using models that are not compatible with the integration. See the previous section [Supported Models](cline.md#supported-models) :point\_up: +* **400 status code (no body)**: this error usually means the model ID is wrong or the model is not a chat model. Check the ID in [Model selection](cline.md#model-selection). diff --git a/docs/integrations/continue.dev.md b/docs/integrations/continue.dev.md index 52a449df7..21d3efc34 100644 --- a/docs/integrations/continue.dev.md +++ b/docs/integrations/continue.dev.md @@ -93,5 +93,5 @@ continue.dev provides an intuitive graphical interface for interacting with a ch You can use any of [our text models](../api-references/text-models-llm/#complete-text-model-list), including: * [gpt-3.5-turbo](../api-references/text-models-llm/openai/gpt-3.5-turbo.md) -* [google/gemini-2.0-flash](/broken/pages/CapOhTrzos7y9s3QTcET) +* google/gemini-2.0-flash * [and many others](../api-references/model-database.md). diff --git a/docs/integrations/dify.md b/docs/integrations/dify.md index 829a84784..8bab97317 100644 --- a/docs/integrations/dify.md +++ b/docs/integrations/dify.md @@ -10,7 +10,10 @@ description: >- [Dify](https://dify.ai/) is an open-source platform for building LLM applications β€” chat apps, agents, and visual workflows β€” with a built-in RAG pipeline and a model-provider layer that any app in the workspace shares. -AI/ML API ships as an official **Dify Marketplace plugin**, published as [aimlapi/aimlapi](https://marketplace.dify.ai/plugin/aimlapi/aimlapi). Install it from the Marketplace, paste one key, and every app in the workspace can use AI/ML API models. +AI/ML API ships two official **Dify Marketplace plugins** that use the same key: + +* **aimlapi.com**, published as [aimlapi/aimlapi](https://marketplace.dify.ai/plugin/aimlapi/aimlapi): a model provider for chat and embedding models. Install it, paste one key, and every app in the workspace can use AI/ML API models. +* **AI/ML API Media & Search**, published as [aimlapi/aimlapi\_media](https://marketplace.dify.ai/plugin/aimlapi/aimlapi_media): a tool plugin for image and video generation, text to speech, speech to text, OCR and web search. See [Media and search tools](dify.md#media-and-search-tools). ## Quick start @@ -56,7 +59,7 @@ Before you start, make sure you have: * an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) * a model ID from [aimlapi.com/models](https://aimlapi.com/models) -Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de41a1a02c07771cac9b). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Supported model types @@ -65,7 +68,7 @@ Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de4 | LLM | chat apps, agents, workflow LLM nodes | | Text Embedding | indexing knowledge into Dify's RAG pipeline | -Image, video, and audio models are not exposed through this plugin. +Image, video, and audio models are not exposed through the model provider plugin. Use the [AI/ML API Media & Search](dify.md#media-and-search-tools) tool plugin for them. ## Model selection @@ -78,7 +81,34 @@ The plugin ships a generated snapshot of the AI/ML API chat catalog β€” over 300 * `google/gemini-3.6-flash` β€” lower latency and lower cost * `openai/text-embedding-3-small` β€” embeddings -For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984). +For the full catalog, use [All Model IDs](../api-references/model-database.md). + +## Media and search tools + +The **AI/ML API Media & Search** plugin ([aimlapi/aimlapi\_media](https://marketplace.dify.ai/plugin/aimlapi/aimlapi_media), v0.1.0, merged into the Dify plugin registry in [PR #3935](https://github.com/langgenius/dify-plugins/pull/3935)) adds AI/ML API tools that you can use in workflows, chatflows and agents. It is a regular Dify tool plugin and needs Dify 1.6.0 or later. + +| Tool | What it does | Default model | +| --- | --- | --- | +| Generate image | Text to image | `minimax/image-01` | +| Generate video | Text to video: submits the job, waits, returns the file | `minimax/h3-lite` | +| Get video result | Fetches a video by generation ID | n/a | +| Text to speech | Text to audio | `openai/gpt-4o-mini-tts` | +| Speech to text | Transcribes an uploaded audio file | `deepgram/nova-3` | +| OCR | PDF or image to Markdown, page by page | `mistral/mistral-ocr-latest` | +| Web search | AI/ML API Toolbox tool `web/search` | n/a | + +### Set up the tools + +1. In Dify, install **AI/ML API Media & Search** from the Marketplace. +2. Open **Tools β†’ AI/ML API Media & Search β†’ Authorize** and paste your AI/ML API key (the same key as the model provider plugin). +3. Add the tools to a workflow, chatflow or agent. + +### Notes + +* Each tool's **Model** dropdown is filled live from the AI/ML API catalog and lists only models of the matching type. +* Video generation waits up to **Max wait** (default 300 seconds, maximum 540). If the video is not ready by then, the tool returns a generation ID: pass it to **Get video result** later. +* Every tool call except key validation and the model list is billed to your AI/ML API balance. Web search is capped at $0.025 per run. +* On self-hosted Dify, **Speech to text** and **OCR** need `FILES_URL` to be set, so the plugin can read uploaded files. ## Config checklist @@ -87,6 +117,7 @@ Make sure these values are set: * plugin: **aimlapi.com** installed from the Dify Marketplace * API key: your AI/ML API key, saved in **Settings β†’ Model Provider** * model: a predefined model, or a custom model with an exact AI/ML API model ID +* tools (optional): **AI/ML API Media & Search** installed and authorized under **Tools** ## Troubleshooting @@ -128,7 +159,7 @@ Check that: ## Links -* [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) * [aimlapi.com plugin on the Dify Marketplace](https://marketplace.dify.ai/plugin/aimlapi/aimlapi) diff --git a/docs/integrations/elizaos.md b/docs/integrations/elizaos.md index 1b64e2ee8..9a96dc278 100644 --- a/docs/integrations/elizaos.md +++ b/docs/integrations/elizaos.md @@ -55,4 +55,4 @@ Click the small speaker icon below any message to hear it read aloud: In the environment variables for ElizaOS, you can specify almost any of our [text models](../api-references/text-models-llm/#complete-text-model-list), including: * OpenAI ChatGPT ([openai/gpt-3.5-turbo](../api-references/text-models-llm/openai/gpt-3.5-turbo.md), gpt-4-turbo, ...), -* Google Gemini ([google/gemini-2.0-flash](/broken/pages/CapOhTrzos7y9s3QTcET), ...) +* Google Gemini (google/gemini-2.0-flash, ...) diff --git a/docs/integrations/goose.md b/docs/integrations/goose.md new file mode 100644 index 000000000..351f3cd4f --- /dev/null +++ b/docs/integrations/goose.md @@ -0,0 +1,162 @@ +--- +description: >- + Connect goose, the open-source agent for desktop and terminal, to AI/ML API + through its built-in provider. +--- + +# Goose + +## About + +[goose](https://github.com/aaif-goose/goose) is an open-source, general-purpose agent for coding, research, writing, automation, and data analysis. It runs as a desktop app and as a CLI. + +AI/ML API is a **built-in provider** in goose, listed as **AI/ML API** (provider ID `aimlapi`). It was added in [PR #11758](https://github.com/aaif-goose/goose/pull/11758) and ships in goose **v1.50.0** and later, so there is nothing to patch or build from source. + +## Quick start + +{% stepper %} +{% step %} +## Install goose + +Install the CLI: + +```bash +curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash +``` + +For the desktop app, use the [goose installation guide](https://goose-docs.ai/docs/getting-started/installation). +{% endstep %} + +{% step %} +## Configure the provider + +```bash +goose configure +``` + +Choose **Configure Providers**, then pick **AI/ML API**. +{% endstep %} + +{% step %} +## Paste your API key + +When goose asks for `AIMLAPI_API_KEY`, paste your AI/ML API key, then pick a model. +{% endstep %} + +{% step %} +## Start a session + +```bash +goose session +``` +{% endstep %} +{% endstepper %} + +## When to use AI/ML API with goose + +AI/ML API works well with goose when you want: + +* one key and one OpenAI-compatible endpoint for models from many providers +* to switch models without adding a new provider each time +* the same provider in the goose desktop app and the CLI + +## Prerequisites + +Before you start, make sure you have: + +* goose v1.50.0 or later +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* a model ID from [aimlapi.com/models](https://aimlapi.com/models) + +The base URL is built into the provider: + +``` +https://api.aimlapi.com/v1 +``` + +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). + +## Set up AI/ML API in goose + +### Option 1: CLI + +1. Run `goose configure`. +2. Select **Configure Providers**. +3. Select **AI/ML API**. +4. Paste your key when goose asks for `AIMLAPI_API_KEY`. +5. Pick a model from the list. + +### Option 2: Desktop app + +On first launch, open **Other Providers**, find **AI/ML API**, click **Configure**, paste your key, and click **Submit**. + +To change the provider or model later, open **Settings β†’ Models β†’ Switch models**. + +### Option 3: Environment variables + +goose reads the key from the environment, and `GOOSE_PROVIDER` / `GOOSE_MODEL` override the provider and model from the config file: + +```bash +export AIMLAPI_API_KEY=your_key_here +export GOOSE_PROVIDER=aimlapi +export GOOSE_MODEL=openai/gpt-5-5 +goose session +``` + +## Model selection + +goose asks AI/ML API for its live model list. If that request fails, it falls back to the models bundled with the provider. + +### Good starting models + +* `openai/gpt-5-5`: the provider default +* `anthropic/claude-sonnet-5`: strong for coding +* `google/gemini-3.6-flash`: lower latency and lower cost + +For the full catalog, use [All Model IDs](../api-references/model-database.md). + +## Config checklist + +Make sure these values are set: + +* provider: **AI/ML API** (`aimlapi`) +* API key variable: `AIMLAPI_API_KEY` +* base URL: `https://api.aimlapi.com/v1` (built in) +* model ID: exact AI/ML API chat model ID, for example `openai/gpt-5-5` + +## Troubleshooting + +
+ +AI/ML API is not in the provider list + +The provider ships in goose v1.50.0. Update goose and run `goose configure` again. + +
+ +
+ +I get an auth error + +Check that: + +* the key is valid at [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* `AIMLAPI_API_KEY` in your shell is not an old key that overrides the one saved by `goose configure` +* your balance is sufficient at [aimlapi.com/app](https://aimlapi.com/app) + +
+ +
+ +My model is missing from the list + +Type the exact model ID from [aimlapi.com/models](https://aimlapi.com/models). goose uses the bundled list only when the live list cannot be loaded. + +
+ +## Links + +* [goose repository](https://github.com/aaif-goose/goose) +* [goose providers guide](https://goose-docs.ai/docs/getting-started/providers) +* [AI/ML API keys](https://aimlapi.com/app/keys) +* [AI/ML API model catalog](https://aimlapi.com/models) diff --git a/docs/integrations/hermes-desktop.md b/docs/integrations/hermes-desktop.md index 6d8f77c66..a3c5ad26f 100644 --- a/docs/integrations/hermes-desktop.md +++ b/docs/integrations/hermes-desktop.md @@ -36,7 +36,7 @@ The base URL is: https://api.aimlapi.com/v1 ``` -Need a key first? Use [API Key Management](/broken/pages/b1dbdf89b3ed7f9af9a90506fe3124b622cfc559). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Set up AI/ML API in Hermes Desktop @@ -98,7 +98,7 @@ Common examples: * `anthropic/claude-sonnet-4-5` for coding and long-form work * `google/gemini-2.5-flash` for lower latency and lower cost -For the full catalog, use [All Model IDs](/broken/pages/ec6db764340ce0627cef7e114fb5a65a73cafbf4). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Switch models @@ -176,7 +176,7 @@ model: ## Links -* [All Model IDs](/broken/pages/ec6db764340ce0627cef7e114fb5a65a73cafbf4) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) * [Hermes Desktop repository](https://github.com/fathah/hermes-desktop) diff --git a/docs/integrations/hermes.md b/docs/integrations/hermes.md index e4a21c6a6..6a6e2a9eb 100644 --- a/docs/integrations/hermes.md +++ b/docs/integrations/hermes.md @@ -1,258 +1,191 @@ --- description: >- - Connect Hermes Agent to AI/ML API through the native provider fork or a manual - OpenAI-compatible setup. + Connect Hermes Agent to AI/ML API through the official aimlapi.com provider + plugin, with optional AI/ML API MCP tools. --- # Hermes ## About -[Hermes Agent](https://github.com/NousResearch/hermes-agent) is an agent framework for CLI and messaging workflows. It supports OpenAI-compatible providers and can use AI/ML API either through the AI/ML API fork or through manual OpenAI-compatible configuration in the official repository. +[Hermes Agent](https://github.com/NousResearch/hermes-agent) is an agent framework for CLI and messaging workflows. -This guide covers both setup paths. +AI/ML API ships as the **aimlapi.com provider plugin** in the official Hermes plugin catalog ([PR #146493](https://github.com/NousResearch/hermes-agent/pull/146493), updated to v1.1.0 in [PR #156918](https://github.com/NousResearch/hermes-agent/pull/156918)). The plugin adds `aimlapi` as a model provider and can also connect the [AI/ML API MCP server](../quickstart/mcp.md), so the agent gets model discovery, media generation and Toolbox tools. Its source is [aimlapi/hermes-provider-aimlapi](https://github.com/aimlapi/hermes-provider-aimlapi). {% hint style="info" %} Prefer one command? With Hermes Agent installed, `npx aimlapi hermes` signs you in through the browser, adds AI/ML API as a provider to Hermes' `config.yaml` and starts Hermes, with no key to copy. See [CLI](../quickstart/cli.md#hermes-agent). -The CLI adds its own providers (`custom:aimlapi-cli-run` for a single run, `custom:aimlapi-cli` with `--config`) rather than the options below. `aimlapi hermes --config` makes `custom:aimlapi-cli` the default and replaces the `model:` keys (for example, those from Option 1 or 2); `aimlapi hermes --undo` puts them back. +The CLI adds its own providers (`custom:aimlapi-cli-run` for a single run, `custom:aimlapi-cli` with `--config`) rather than the plugin below. `aimlapi hermes --config` makes `custom:aimlapi-cli` the default and replaces the `model:` keys; `aimlapi hermes --undo` puts them back. {% endhint %} ## Quick start -Use the AI/ML API fork if you want the fastest setup: - -1. Clone the fork. -2. Install Hermes from source. -3. Export `AIMLAPI_API_KEY`. -4. Run `hermes model`. -5. Choose `AI/ML API`. -6. Start chatting with `hermes chat`. - -Use the official Hermes repository if you want to stay on upstream Hermes and do not mind manual OpenAI-compatible configuration. - -> On Windows, use WSL2 for the source install commands below. The Hermes setup script is a Unix shell script intended for Linux/macOS-style environments. - -## When to use AI/ML API with Hermes - -AI/ML API works well with Hermes when you want: - -* one key for many model providers -* an OpenAI-compatible endpoint -* fast switching between coding, reasoning, and multimodal models - -## Prerequisites - -Before you start, make sure you have: - -* Python 3.11 or newer -* Git -* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) -* a model ID from [aimlapi.com/models](https://aimlapi.com/models) - -Use this base URL: +{% stepper %} +{% step %} +## Install Hermes ```bash -https://api.aimlapi.com/v1 +curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash ``` +{% endstep %} -Need a key first? Use API Key Management. - -## Choose a setup path +{% step %} +## Install the aimlapi.com plugin -### Option 1: AI/ML API fork +```bash +hermes plugins install aimlapi +``` +{% endstep %} -Use the AI/ML API fork if you want the smoothest setup. +{% step %} +## Pick the provider -Repository: +```bash +hermes model +``` -* [aimlapi/hermes-agent-aimlapi](https://github.com/aimlapi/hermes-agent-aimlapi/tree/feature/add-aimlapi-provider) +Choose **aimlapi.com**, paste your key (or create an account from the terminal), and pick a model. At the end Hermes asks whether to add the AI/ML API MCP server. +{% endstep %} -Benefits: +{% step %} +## Start chatting -* `AI/ML API` appears in `hermes model` -* the endpoint is preconfigured -* model discovery is tuned for chat models -* the API key uses `AIMLAPI_API_KEY` +```bash +hermes +``` +{% endstep %} +{% endstepper %} -### Option 2: Official Hermes repository +## When to use AI/ML API with Hermes -Use the official Hermes repository if you want to stay on upstream Hermes. +AI/ML API works well with Hermes when you want: -Repository: +* one key for many model providers behind an OpenAI-compatible endpoint +* a model picker with live prices +* MCP tools for image, video and audio generation, OCR and the AI/ML API Toolbox in the same agent -* [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) +## Prerequisites -This path uses Hermes' generic OpenAI-compatible provider flow. +Before you start, make sure you have: -## Option 1: Set up the AI/ML API fork +* Hermes Agent v0.23.3 or later (the plugin itself needs Hermes 0.22.0 or later) +* an interactive terminal for the guided `hermes model` step +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys), or an email to create an account during setup -Clone the fork, install Hermes from source, then start provider setup: +The base URL is built into the plugin: -```bash -git clone https://github.com/aimlapi/hermes-agent-aimlapi.git -cd hermes-agent-aimlapi -git checkout feature/add-aimlapi-provider -./setup-hermes.sh -export AIMLAPI_API_KEY=your_key_here -hermes model +``` +https://api.aimlapi.com/v1 ``` -Then: - -1. Choose `AI/ML API`. -2. Pick a model. -3. Start Hermes with `hermes` or `hermes chat`. - -Hermes already knows the default endpoint. You do not need to enter it manually. - -### Saved configuration - -Hermes stores provider settings in `~/.hermes/config.yaml` and reads secrets from `~/.hermes/.env`. +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). -Example `config.yaml`: +## Install the plugin -```yaml -model: - provider: aimlapi - base_url: https://api.aimlapi.com/v1 - default: openai/gpt-5-chat-latest -``` - -Example `.env`: +### From the plugin catalog ```bash -AIMLAPI_API_KEY=your_key_here -AIMLAPI_BASE_URL=https://api.aimlapi.com/v1 +hermes plugins install aimlapi ``` -`AIMLAPI_BASE_URL` is optional. +Hermes may ask `Enable now?`. Provider plugins work either way. -### One-off run +### By hand -Use this when you want to test AI/ML API without changing your default provider: +Use this on any Hermes build that supports model-provider plugins: ```bash -hermes chat --provider aimlapi --model openai/gpt-5-chat-latest +git clone https://github.com/aimlapi/hermes-provider-aimlapi.git +mkdir -p ~/.hermes/plugins/model-providers +cp -r hermes-provider-aimlapi/aimlapi ~/.hermes/plugins/model-providers/aimlapi ``` -### Verify the fork setup +## Set up the provider -Run a quick health check: +Run: ```bash -hermes doctor +hermes model ``` -Then open a chat directly: +and choose **aimlapi.com**. The guided step then: -```bash -hermes chat --provider aimlapi --model openai/gpt-5-chat-latest -``` +1. **If you already have a key**, asks you to paste it and checks it before saving. +2. **If you are a new user**, takes your email, a top-up amount and the auto top-up choice, opens checkout in the browser, and saves the issued key. +3. **If the email already has an account**, asks for the 6-digit code sent by email and creates a key named "Hermes Agent". + +If a saved key is found, Hermes first asks whether to keep it. The key is saved as `AIMLAPI_API_KEY` in `~/.hermes/.env`. -## Option 2: Set up official Hermes +### Set the key yourself -Clone the upstream repository and install Hermes from source: +On builds without the guided step, or in scripts, set the key and pass the provider explicitly: ```bash -git clone https://github.com/NousResearch/hermes-agent.git -cd hermes-agent -./setup-hermes.sh +export AIMLAPI_API_KEY=your_key_here +hermes --provider aimlapi --model anthropic/claude-sonnet-5 ``` -Add your AI/ML API credentials to `~/.hermes/.env` using the OpenAI-compatible variables: +Under cron, the messaging gateway or a redirected stdin, the guided step prints how to set `AIMLAPI_API_KEY` and stops. -```bash -OPENAI_API_KEY=your_key_here -OPENAI_BASE_URL=https://api.aimlapi.com/v1 -``` +## Connect AI/ML API MCP tools (optional) -Then set a model in `~/.hermes/config.yaml`: +At the end of the guided `hermes model` step the plugin asks: -```yaml -model: - provider: custom - base_url: https://api.aimlapi.com/v1 - default: openai/gpt-5-chat-latest +```text +Add the aimlapi.com MCP server to Hermes? [y/N] ``` -Start Hermes: +The default is no. On `y` it adds this entry to `~/.hermes/config.yaml`: -```bash -hermes +```yaml +mcp_servers: + aimlapi: + url: https://mcp.aimlapi.com/mcp + headers: + Authorization: Bearer ${AIMLAPI_API_KEY} + trust: untrusted ``` -### Verify the upstream setup +* `${AIMLAPI_API_KEY}` is resolved from your Hermes `.env` when Hermes connects. The key itself is not written to `config.yaml`. +* `trust: untrusted` makes Hermes ask before every tool call that is not read-only, which covers every billed call. Read-only tools such as model search and account balance run without a prompt. +* If the provider points to another endpoint (through `AIMLAPI_INFERENCE_URL` or `model.base_url`), the entry gets `auth: oauth` instead of the key. Sign in with `hermes mcp login aimlapi`. +* An existing `mcp_servers.aimlapi` entry is never changed. -Check that Hermes sees your configuration: +The tools load in your next session, or after `/reload-mcp`. To add the server on a build without the guided step, copy the same block into `config.yaml` by hand. -```bash -hermes doctor -``` - -Then start a chat and confirm the selected model answers normally: +Check and manage the server: ```bash -hermes chat +hermes mcp list +hermes mcp test aimlapi +hermes mcp remove aimlapi ``` -### What changes in the upstream flow - -Compared with the fork: - -* `AI/ML API` does not appear as a native provider -* Hermes treats the endpoint as a custom OpenAI-compatible backend -* you may need to enter model IDs manually -* credentials use `OPENAI_API_KEY` and `OPENAI_BASE_URL` +Generation, chat and Toolbox runs through MCP are billed to your AI/ML API balance. See [MCP](../quickstart/mcp.md) for the tool list. ## Model selection -Use exact AI/ML API model IDs in Hermes. - -Common examples: - -* `openai/gpt-5-chat-latest` -* `anthropic/claude-sonnet-4.6` -* `google/gemini-2.5-flash` - -The Hermes picker focuses on chat-completion models. Non-chat models are excluded from the interactive list. +The picker loads the AI/ML API catalog and shows the most popular models first, then every other chat model that supports tool calling, with live input and output prices. If the catalog cannot be loaded, it shows a built-in fallback list. ### Good starting models -Start with one of these: - -* `openai/gpt-5-chat-latest` for strong general use -* `anthropic/claude-sonnet-4.6` for coding and long-form work -* `google/gemini-2.5-flash` for lower latency and lower cost +* `anthropic/claude-sonnet-5`: the plugin default +* `anthropic/claude-opus-5`: for harder coding and long-form work +* `google/gemini-3.6-flash`: lower latency and lower cost -For the full catalog, use All Model IDs. +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Switch models later -To change the saved model, run: +To change the saved model, run `hermes model` again. For a single run, pass the provider and model: ```bash -hermes model -``` - -To switch inside a session in the fork, use `/model`: - -``` -/model aimlapi:openai/gpt-5-chat-latest -/model aimlapi:anthropic/claude-sonnet-4.6 -/model aimlapi:google/gemini-2.5-flash +hermes --provider aimlapi --model google/gemini-3.6-flash ``` ## CLI and gateway usage -Once configured, the normal Hermes commands work as usual: - -```bash -hermes -hermes chat -``` - -If you use the Hermes gateway, it reuses the same default provider: +Once configured, the normal Hermes commands use AI/ML API. The Hermes gateway reuses the same default provider: ```bash hermes gateway setup @@ -263,91 +196,65 @@ hermes gateway start Make sure these values line up: -* base URL: `https://api.aimlapi.com/v1` -* provider: `aimlapi` in the fork, `custom` in upstream -* model ID: exact AI/ML API model ID -* API key variable: `AIMLAPI_API_KEY` in the fork or `OPENAI_API_KEY` in upstream - -## Diagnostics - -Check your setup with: - -```bash -hermes doctor -``` - -This helps confirm: - -* your API key is present -* Hermes can reach the models endpoint -* the saved provider config is valid +* plugin: `aimlapi` installed (`hermes plugins install aimlapi`) +* provider: `aimlapi` (shown as **aimlapi.com**) +* API key variable: `AIMLAPI_API_KEY` in `~/.hermes/.env` +* base URL: `https://api.aimlapi.com/v1` (built in) +* model ID: exact AI/ML API chat model ID +* MCP (optional): `mcp_servers.aimlapi` in `~/.hermes/config.yaml` ## Troubleshooting -### `hermes` command is not found +
-Make sure you ran the install script from the repository root: +aimlapi.com is not in the `hermes model` picker -```bash -./setup-hermes.sh -``` - -Then restart your terminal and try again: +Install the plugin with `hermes plugins install aimlapi`, or copy it by hand as shown above. Check that your Hermes version is 0.22.0 or later. -```bash -hermes doctor -``` +
-If you are on Windows, run the setup through WSL2. +
-### Hermes does not ask for the endpoint +`hermes model` asks for a plain API key instead of the guided step -This is expected in the AI/ML API fork. The default endpoint is built in: +Your Hermes build does not support guided provider setup yet. Paste your key, or update Hermes to v0.23.3 or later. You can also add the MCP block to `config.yaml` by hand. -```bash -https://api.aimlapi.com/v1 -``` +
-### My model is missing from the picker +
-Usually one of these is true: +MCP tools do not show up -* the model is not exposed as a chat-completion model -* the live model list failed to load -* the model is not in the starter list yet +Tools load in a new session. Start a new session or run `/reload-mcp`, then check the server with `hermes mcp test aimlapi`. -Set the model manually in `config.yaml` if needed. +
-### Hermes selects another provider +
-Force AI/ML API with one of these: +I want to use a proxy -* run `hermes model` and choose `AI/ML API` -* set `model.provider: aimlapi` -* use `hermes chat --provider aimlapi --model ...` +Set `AIMLAPI_INFERENCE_URL` or `model.base_url` in `config.yaml` to your proxy URL. In that case connect MCP with `hermes mcp login aimlapi`. -### I want to use a proxy +
-Set a custom base URL: +
-```bash -AIMLAPI_BASE_URL=https://your-proxy.example/v1 -``` +I get an auth error -### I get an auth error +Check that: -Usually one of these is wrong: +* `AIMLAPI_API_KEY` in `~/.hermes/.env` is a valid key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* a different `AIMLAPI_API_KEY` exported in your shell does not override it +* your balance is sufficient at [aimlapi.com/app](https://aimlapi.com/app) -* the key is missing from `~/.hermes/.env` -* the variable name does not match your setup path -* the saved provider points to another backend +Run `hermes doctor` to see what Hermes resolved. -Run `hermes doctor` first. Then reopen `~/.hermes/.env` and verify the key name. +
## Links -* All Model IDs +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) -* [AI/ML API models endpoint](https://api.aimlapi.com/models) +* [aimlapi.com Hermes plugin](https://github.com/aimlapi/hermes-provider-aimlapi) * [Hermes repository](https://github.com/NousResearch/hermes-agent) diff --git a/docs/integrations/langchain.md b/docs/integrations/langchain.md index cc33799dc..d0e7d594d 100644 --- a/docs/integrations/langchain.md +++ b/docs/integrations/langchain.md @@ -73,14 +73,14 @@ import os os.environ["AIMLAPI_API_KEY"] = "your_key_here" ``` -Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de41a1a02c07771cac9b). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Available classes | Class | Use for | | ----- | ------- | | `ChatAimlapi` | chat completions | -| `AimlapiLLM` | text completions | +| `AimlapiLLM` | plain-text prompts (sent as a single chat message; `model` is required) | | `AimlapiEmbeddings` | embeddings | | `AimlapiImageModel` | image generation | | `AimlapiVideoModel` | video generation | @@ -112,8 +112,8 @@ embeddings.embed_query("What is the meaning of life?") ```python from langchain_aimlapi import AimlapiImageModel -img = AimlapiImageModel(model="stable-diffusion-v3-medium", size="512x512", n=1) -img.invoke("A serene mountain lake at sunset") +img = AimlapiImageModel(model="stable-diffusion-v3-medium") +img.invoke("A serene mountain lake at sunset", size="512x512") ``` ### Video generation @@ -121,7 +121,7 @@ img.invoke("A serene mountain lake at sunset") ```python from langchain_aimlapi import AimlapiVideoModel -vid = AimlapiVideoModel(model="google/veo-3.0-fast") +vid = AimlapiVideoModel(model="google/veo-3.1-t2v-fast") vid.invoke("A timelapse of city lights at night") ``` @@ -136,7 +136,7 @@ Always pass `model=` explicitly and use the exact catalog ID, including the vend * `google/gemini-3.6-flash` β€” lower latency and lower cost * `openai/text-embedding-3-small` β€” embeddings -For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Config checklist @@ -144,7 +144,7 @@ Make sure these values are set: * package: `langchain-aimlapi` * API key variable: `AIMLAPI_API_KEY` -* base URL: `https://api.aimlapi.com/v1` (built in; override with `AIMLAPI_API_BASE`) +* base URL: `https://api.aimlapi.com/v1` (built in; `ChatAimlapi` and `AimlapiEmbeddings` can override it with `AIMLAPI_API_BASE`) * model ID: exact AI/ML API model ID, passed as `model=` ## Troubleshooting @@ -173,13 +173,13 @@ Check that: I need a different endpoint -Set `AIMLAPI_API_BASE` to override the base URL. Leave it unset to use `https://api.aimlapi.com/v1/`. +Set `AIMLAPI_API_BASE` to override the base URL for `ChatAimlapi` and `AimlapiEmbeddings`. Leave it unset to use `https://api.aimlapi.com/v1/`. The other classes always call the AI/ML API endpoints. ## Links -* [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) * [langchain-aimlapi on PyPI](https://pypi.org/project/langchain-aimlapi/) diff --git a/docs/integrations/models-dev.md b/docs/integrations/models-dev.md new file mode 100644 index 000000000..f017adbc3 --- /dev/null +++ b/docs/integrations/models-dev.md @@ -0,0 +1,93 @@ +--- +description: >- + AI/ML API is listed in models.dev, the open model catalog that OpenCode, Cline + and other tools use to build their provider lists. +--- + +# models.dev + +## About + +[models.dev](https://models.dev) is an open catalog of AI models and providers: model IDs, context limits, prices, and the settings a client needs to call each provider. Coding tools read it to build their provider and model lists, so a provider listed there shows up in those tools without extra code. + +AI/ML API is listed in models.dev as **AI/ML API** (provider ID `aimlapi`) since [PR #9531](https://github.com/anomalyco/models.dev/pull/9531). The entry describes AI/ML API as an OpenAI-compatible provider: + +| Field | Value | +| --- | --- | +| Provider ID | `aimlapi` | +| Name | AI/ML API | +| API key variable | `AIMLAPI_API_KEY` | +| Base URL | `https://api.aimlapi.com/v1` | +| SDK package | `@ai-sdk/openai-compatible` | + +You can see the entry and its models at [models.dev](https://models.dev) or in the raw catalog at `https://models.dev/api.json` under the `aimlapi` key. + +## Tools that pick up the entry + +### OpenCode + +[OpenCode](https://github.com/anomalyco/opencode) builds its list of providers from the models.dev catalog. AI/ML API appears there as a native provider. + +1. Run: + + ```bash + opencode auth login + ``` + + or type `/connect` inside the OpenCode TUI. +2. Pick **AI/ML API** from the list (it is in the **Services** group). +3. Paste your AI/ML API key. +4. Choose an AI/ML API model with `/models`. + +Instead of logging in, you can export the key, and OpenCode picks it up from the environment: + +```bash +export AIMLAPI_API_KEY=your_key_here +opencode +``` + +{% hint style="info" %} +Prefer a browser sign-in with no key to copy? `npx aimlapi opencode` signs you in and starts OpenCode with AI/ML API as a provider. See [CLI](../quickstart/cli.md#opencode). +{% endhint %} + +### Cline + +Cline generates its provider list from models.dev. Since Cline v4.1.24, **AI/ML API** is in the provider list in Cline settings. See [Cline](cline.md). + +## Prerequisites + +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* a recent version of the tool you want to use + +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). + +## Model selection + +The models.dev entry lists AI/ML API chat models with their exact IDs, for example `openai/gpt-5-5` or `anthropic/claude-sonnet-5`. Tools show the models from the catalog version they ship with or download. + +For the full AI/ML API catalog, use [All Model IDs](../api-references/model-database.md). + +## Troubleshooting + +
+ +AI/ML API is missing from my tool's provider list + +Update the tool. Tools ship or cache a copy of the catalog, and older versions were built before AI/ML API was added. + +
+ +
+ +A model I need is not in the list + +The catalog lists a subset of AI/ML API chat models. If your tool lets you type a model ID by hand, use the exact ID from [aimlapi.com/models](https://aimlapi.com/models). + +
+ +## Links + +* [models.dev](https://models.dev) +* [models.dev repository](https://github.com/anomalyco/models.dev) +* [AI/ML API keys](https://aimlapi.com/app/keys) +* [AI/ML API model catalog](https://aimlapi.com/models) diff --git a/docs/integrations/money-printer-turbo.md b/docs/integrations/money-printer-turbo.md index f7553d893..225ec0a5d 100644 --- a/docs/integrations/money-printer-turbo.md +++ b/docs/integrations/money-printer-turbo.md @@ -58,7 +58,7 @@ The base URL is: https://api.aimlapi.com/v1 ``` -Need a key first? Use [API Key Management](/broken/pages/5ba01981a4933a6256186cdeb80677bb1add0916). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Option 1: Configure via config.toml @@ -100,7 +100,7 @@ Common examples for script and story generation: Start with `openai/gpt-4o-mini` for most video generation tasks. Switch to `openai/gpt-4o` or `anthropic/claude-sonnet-4.5` if you need richer, longer scripts. -For the full catalog, use [All Model IDs](/broken/pages/8ed552f6e450f3fe9c63911687e8431a6635b5be). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Config checklist @@ -137,7 +137,7 @@ Check that: Script generation returns an error about the model -Make sure the model ID is a chat-completion model supported by AI/ML API. Check the full list at [aimlapi.com/models](https://aimlapi.com/models) or use [All Model IDs](/broken/pages/8ed552f6e450f3fe9c63911687e8431a6635b5be). +Make sure the model ID is a chat-completion model supported by AI/ML API. Check the full list at [aimlapi.com/models](https://aimlapi.com/models) or use [All Model IDs](../api-references/model-database.md). @@ -156,7 +156,7 @@ aimlapi_base_url = "https://your-proxy.example/v1" ## Links -* [All Model IDs](/broken/pages/8ed552f6e450f3fe9c63911687e8431a6635b5be) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) * [MoneyPrinterTurbo repository](https://github.com/harry0703/MoneyPrinterTurbo) diff --git a/docs/integrations/n8n.md b/docs/integrations/n8n.md index 81de5a809..9cb335d85 100644 --- a/docs/integrations/n8n.md +++ b/docs/integrations/n8n.md @@ -230,7 +230,7 @@ Please note that this chat is intended for debugging purposes only. It does not
FieldValue
Modelopenai/gpt-4o
User Message"Give me ideas for YouTube channels"
Temperature0.7
-#### [Gemini 2.0 Flash](/broken/pages/CapOhTrzos7y9s3QTcET) +#### Gemini 2.0 Flash
FieldValue
Modelgoogle/gemini-2.0-flash
User Message"Write a summary of the latest Apple event"
diff --git a/docs/integrations/oh-my-pi.md b/docs/integrations/oh-my-pi.md index 512ea60cd..ad239da1b 100644 --- a/docs/integrations/oh-my-pi.md +++ b/docs/integrations/oh-my-pi.md @@ -37,7 +37,7 @@ The base URL is: https://api.aimlapi.com/v1 ``` -Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de41a1a02c07771cac9b). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Set up AI/ML API in omp @@ -78,7 +78,7 @@ Use exact AI/ML API model IDs. Common examples: * `anthropic/claude-sonnet-4-5` for coding and long-form work * `google/gemini-2.5-flash` for lower latency and lower cost -For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Provider routing @@ -149,7 +149,7 @@ Set a custom base URL in your omp provider config. The `aimlapi` registry entry ## Links -* [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) * [oh-my-pi repository](https://github.com/can1357/oh-my-pi) diff --git a/docs/integrations/omniroute.md b/docs/integrations/omniroute.md new file mode 100644 index 000000000..de03f1eaf --- /dev/null +++ b/docs/integrations/omniroute.md @@ -0,0 +1,152 @@ +--- +description: >- + Connect OmniRoute, the local OpenAI-compatible AI gateway, to AI/ML API + through its built-in provider. +--- + +# OmniRoute + +## About + +[OmniRoute](https://github.com/cheaper-inference/OmniRoute) is a local AI gateway. It runs an OpenAI-compatible endpoint at `http://localhost:20128/v1` and routes requests across the provider accounts you connect, with fallback chains and a web dashboard. Coding tools and apps point at OmniRoute instead of at each provider. + +AI/ML API is a **built-in provider** in OmniRoute, listed as **AI/ML API** (provider ID `aimlapi`, model prefix `aiml/`). Live model discovery for AI/ML API was fixed in [PR #18161](https://github.com/cheaper-inference/OmniRoute/pull/18161), which ships in OmniRoute **v3.8.53** and later. + +## Quick start + +{% stepper %} +{% step %} +## Install and start OmniRoute + +```bash +npm install -g omniroute +omniroute +``` + +Or run it with Docker: + +```bash +docker run -d -p 20128:20128 -v omniroute-data:/app/data cheaperinference/omniroute:latest +``` +{% endstep %} + +{% step %} +## Connect AI/ML API + +Open the dashboard, go to **Providers**, connect **AI/ML API**, and paste your AI/ML API key. +{% endstep %} + +{% step %} +## Create an OmniRoute key + +In the dashboard, open **Endpoints** and create an API key for your tools. +{% endstep %} + +{% step %} +## Point your tool at OmniRoute + +``` +Base URL: http://localhost:20128/v1 +API Key: the key from the Endpoints page +Model: aiml/ +``` +{% endstep %} +{% endstepper %} + +## When to use AI/ML API with OmniRoute + +AI/ML API works well with OmniRoute when you want: + +* hundreds of chat models behind one provider connection +* AI/ML API as one step in an OmniRoute fallback chain +* one local endpoint for all your coding tools + +## Prerequisites + +Before you start, make sure you have: + +* OmniRoute v3.8.53 or later +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* a model ID from [aimlapi.com/models](https://aimlapi.com/models) + +The AI/ML API endpoint is built into the provider: + +``` +https://api.aimlapi.com/v1 +``` + +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). + +## Model selection + +OmniRoute loads the AI/ML API model catalog and keeps only chat models. If the catalog cannot be loaded, it falls back to a short built-in list. Any other model ID is passed through to AI/ML API as is. + +Use the `aiml/` prefix to send a request to AI/ML API, for example: + +``` +aiml/gpt-5 +``` + +You can also use `auto` and let OmniRoute choose among your connected providers. + +For the full catalog, use [All Model IDs](../api-references/model-database.md). + +## Example request + +```bash +curl http://localhost:20128/v1/chat/completions \ + -H "Authorization: Bearer $OMNIROUTE_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "model": "aiml/gpt-5", + "messages": [{"role": "user", "content": "Hello"}] + }' +``` + +`$OMNIROUTE_KEY` is the key you created on the **Endpoints** page, not your AI/ML API key. + +## Config checklist + +Make sure these values are set: + +* provider: **AI/ML API** connected under **Providers** +* AI/ML API key: saved in the provider connection +* tool base URL: `http://localhost:20128/v1` +* tool API key: an OmniRoute key from **Endpoints** +* model: `aiml/` or `auto` + +## Troubleshooting + +
+ +The AI/ML API model list is short + +OmniRoute shows the built-in fallback list when it cannot load the AI/ML API catalog. Update to v3.8.53 or later, which fixed AI/ML API model discovery. + +
+ +
+ +I get an auth error + +Check which key failed: + +* your tool must send the OmniRoute key from **Endpoints** +* the AI/ML API connection must hold a valid key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* your AI/ML API balance must be sufficient at [aimlapi.com/app](https://aimlapi.com/app) + +
+ +
+ +Requests go to another provider + +Use the `aiml/` prefix in the model name. With `auto`, OmniRoute chooses among all connected providers. + +
+ +## Links + +* [OmniRoute repository](https://github.com/cheaper-inference/OmniRoute) +* [AI/ML API keys](https://aimlapi.com/app/keys) +* [AI/ML API model catalog](https://aimlapi.com/models) diff --git a/docs/integrations/openclaude.md b/docs/integrations/openclaude.md index 8e12b5c8a..879c2783c 100644 --- a/docs/integrations/openclaude.md +++ b/docs/integrations/openclaude.md @@ -8,9 +8,9 @@ description: >- ## About -[OpenClaude](https://github.com/Gitlawb/openclaude) is an open-source coding-agent CLI that works with many model providers. Its homepage is [openclaude.gitlawb.com](https://openclaude.gitlawb.com/). +[OpenClaude](https://github.com/Twigpine/openclaude) is an open-source coding-agent CLI that works with many model providers. Its homepage is [openclaude.twigpine.com](https://openclaude.twigpine.com/). -AI/ML API is a **built-in provider preset** in OpenClaude β€” it ships upstream, so a plain install already has it. OpenClaude can also create an AI/ML API account for you, top it up, and save the issued key, so you can start with no key at all. +AI/ML API is a **built-in provider preset** in OpenClaude: it ships upstream, so a plain install already has it. OpenClaude can also create an AI/ML API account for you, top it up, and save the issued key, so you can start with no key at all. Since v0.34.0, a built-in plugin can also connect the [AI/ML API MCP server](../quickstart/mcp.md) for Toolbox and media generation tools. {% hint style="info" %} Prefer one command? `npx aimlapi openclaude` signs you in through the browser and starts OpenClaude already connected to AI/ML API (over the Anthropic-compatible route), with no key to paste. See [CLI](../quickstart/cli.md#openclaude). @@ -24,10 +24,10 @@ Prefer one command? `npx aimlapi openclaude` signs you in through the browser an {% step %} ## Install OpenClaude -Requires Node.js `>=22`. +Requires Node.js `>=24.22.1`. ```bash -npm install -g @gitlawb/openclaude@latest +npm install -g @twigpine/openclaude@latest ``` {% endstep %} @@ -66,8 +66,8 @@ AI/ML API works well with OpenClaude when you want: Before you start, make sure you have: -* Node.js `>=22` and OpenClaude installed -* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) β€” optional, the guided flow can issue one +* Node.js `>=24.22.1` and OpenClaude installed +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) (optional: the guided flow can issue one) * a model ID from [aimlapi.com/models](https://aimlapi.com/models) The base URL is: @@ -76,21 +76,21 @@ The base URL is: https://api.aimlapi.com/v1 ``` -Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de41a1a02c07771cac9b). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Set up AI/ML API in OpenClaude -### Option 1 β€” Interactive (`/provider`) +### Option 1: Interactive (`/provider`) 1. Start OpenClaude and run `/provider`. 2. Choose **aimlapi.com**. 3. Choose how to get a key: - * **I am a new user** β€” enter your email. OpenClaude creates a passwordless account, lets you pick a top-up amount, opens card checkout, then saves the issued key. - * **I already have aimlapi.com key** β€” paste a key from the dashboard. OpenClaude validates it, checks the balance, and offers a top-up when the balance is low. + * **I am a new user**: enter your email. OpenClaude creates a passwordless account, lets you pick a top-up amount and whether to turn on automatic top-up (pre-selected on in this flow), opens card checkout, then saves the issued key. + * **I already have an aimlapi.com key**: paste a key from the dashboard. OpenClaude validates it, checks the balance, and offers a top-up when the balance is low. -If AI/ML API is already configured, the same menu offers **Continue with your saved API key** instead. +If AI/ML API is already configured, the same menu offers **Continue with your saved API key** and **Set up a new key or switch account** instead. -### Option 2 β€” CLI top-up +### Option 2: CLI top-up Run the guided flow non-interactively: @@ -98,15 +98,17 @@ Run the guided flow non-interactively: openclaude aimlapi topup --email you@example.com --amount 25 ``` -* `--amount` β€” top-up amount in USD (min 20, max 10000; defaults to 25) -* `--model` β€” default model ID written into the provider profile -* `--no-open` β€” print the payment URL instead of opening a browser +* `--email`: account email (or set `AIMLAPI_EMAIL`) +* `--amount`: top-up amount in USD (min 20, max 10000; defaults to 25) +* `--auto-top-up`: turn on automatic top-up at checkout (off by default in the CLI) +* `--model`: default model ID written into the provider profile (defaults to `gpt-4o`) +* `--no-open`: print the payment URL instead of opening a browser An existing account also needs the 6-digit code emailed to you. Interactive terminals prompt for it; for scripts, pipe it in with `--code-stdin`. -### Option 3 β€” Environment variables +### Option 3: Environment variables -Setting the key alone is enough β€” OpenClaude auto-detects the AI/ML API route: +Setting the key alone is enough. OpenClaude auto-detects the AI/ML API route: ```bash export AIMLAPI_API_KEY="your-aimlapi-key" @@ -118,22 +120,24 @@ To configure the OpenAI-compatible route explicitly: export CLAUDE_CODE_USE_OPENAI=1 export AIMLAPI_API_KEY="your-aimlapi-key" export OPENAI_BASE_URL="https://api.aimlapi.com/v1" -export OPENAI_MODEL="openai/gpt-4o" +export OPENAI_MODEL="gpt-4o" ``` +`OPENAI_API_KEY` also works as a fallback credential for this route. + ## Model selection `/model` lists chat-capable models discovered from the AI/ML API catalog. Image, audio, and embedding models are intentionally not offered in the coding workflow. -Model IDs carry a vendor prefix (`openai/gpt-4o`, not `gpt-4o`). Pick the model from `/model` after setup rather than relying on the preset's built-in default. +The preset's default model is `gpt-4o`. Pick another model from `/model` after setup, using the exact ID from the catalog. ### Good starting models -* `openai/gpt-4o` β€” broadly capable, good default -* `anthropic/claude-sonnet-5` β€” coding and long-form work -* `google/gemini-3-7-flash` β€” lower latency and lower cost +* `gpt-4o`: the preset default +* `anthropic/claude-sonnet-5`: coding and long-form work +* `google/gemini-3.6-flash`: lower latency and lower cost -For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Verify @@ -141,6 +145,44 @@ For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc4 * `/model` lists chat-capable models from the catalog. * Send any prompt to confirm responses come back from the selected model. +## Connect AI/ML API MCP tools (optional) + +OpenClaude v0.34.0 and later include a built-in `aimlapi` plugin that connects the AI/ML API MCP server (`https://mcp.aimlapi.com/mcp`). It adds Toolbox tools (`tools_search`, `tools_inspect`, `tools_run`), image, video and audio generation, chat, embeddings, model lookup, and account balance and usage. Toolbox runs, generations, chat and embeddings are billed to your AI/ML API balance. + +The plugin is off by default. With AI/ML API set up as your provider, turn it on with: + +```bash +openclaude plugin enable aimlapi@builtin +``` + +* The plugin uses the key from `AIMLAPI_API_KEY`. Settings store only `"aimlapi@builtin": true`, never the key. +* The plugin is hidden when `AIMLAPI_API_KEY` is not set, or when your AI/ML API profile points at a proxy base URL. +* The server shows up as `plugin:aimlapi:aimlapi`, and its tools as `mcp__plugin_aimlapi_aimlapi__`. + +Check the connection with `openclaude mcp list`, or with `/mcp` in a session. To turn it off: + +```bash +openclaude plugin disable aimlapi@builtin +``` + +### Without the plugin + +You can add the server with the standard MCP command. Keep the single quotes, so OpenClaude stores the variable reference instead of the key: + +```bash +openclaude mcp add --transport http -s user aimlapi https://mcp.aimlapi.com/mcp \ + --header 'Authorization: Bearer ${AIMLAPI_API_KEY}' +``` + +To sign in with your AI/ML API account (OAuth) instead, leave out `--header`, then open `/mcp` in a session, select the server and authenticate in the browser. + +### Web search and WebFetch through the Toolbox + +Two more opt-in features reuse the same key and are billed to your AI/ML API balance: + +* `/search aimlapi` (or `WEB_SEARCH_PROVIDER=aimlapi`) makes the AI/ML API Toolbox the web search provider. `/search auto` switches back. +* `WEB_FETCH_PROVIDER=aimlapi` makes `WebFetch` scrape pages through the Toolbox. The full URL is sent to the Toolbox, so don't use it for private or token-bearing URLs. + ## Config checklist Make sure these values are set: @@ -148,6 +190,7 @@ Make sure these values are set: * API key variable: `AIMLAPI_API_KEY` * base URL: `https://api.aimlapi.com/v1` (built in, no manual config needed) * model ID: exact AI/ML API chat model ID +* MCP (optional): `aimlapi@builtin` plugin enabled ## Troubleshooting @@ -155,10 +198,10 @@ Make sure these values are set: aimlapi.com is not in the /provider list -Update to the latest version β€” the preset ships upstream: +Update to the latest version. The preset ships upstream: ```bash -npm install -g @gitlawb/openclaude@latest +npm install -g @twigpine/openclaude@latest ``` @@ -193,8 +236,8 @@ Usage reporting is not supported for this provider. Track spend at [aimlapi.com/ ## Links -* [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) -* [OpenClaude repository](https://github.com/Gitlawb/openclaude) -* [OpenClaude AI/ML API setup guide](https://github.com/Gitlawb/openclaude/blob/main/docs/aimlapi-setup.md) +* [OpenClaude repository](https://github.com/Twigpine/openclaude) +* [OpenClaude AI/ML API setup guide](https://github.com/Twigpine/openclaude/blob/main/docs/aimlapi-setup.md) diff --git a/docs/integrations/opencodex.md b/docs/integrations/opencodex.md new file mode 100644 index 000000000..fe32c77b8 --- /dev/null +++ b/docs/integrations/opencodex.md @@ -0,0 +1,170 @@ +--- +description: >- + Route Codex, Claude Code and other coding tools through OpenCodex to AI/ML API + models with its built-in provider preset. +--- + +# OpenCodex + +## About + +[OpenCodex](https://github.com/lidge-jun/opencodex) (`ocx`) is a local gateway for AI coding tools. It runs a proxy and a dashboard on your machine and lets Codex, Claude Code, Claude Desktop, Grok Build and other tools use models from the providers you add. + +AI/ML API is a **built-in provider preset** in OpenCodex, listed as **AI/ML API** (provider ID `aimlapi`). It was added in [PR #8935](https://github.com/lidge-jun/opencodex/pull/8935) and ships in OpenCodex **v2.100.9** and later. + +## Quick start + +{% stepper %} +{% step %} +## Install OpenCodex + +```bash +npm install -g --allow-scripts=bun @bitkyc08/opencodex +``` + +Desktop installers (.dmg, .msi, .AppImage, .deb) are on the [releases page](https://github.com/lidge-jun/opencodex/releases). +{% endstep %} + +{% step %} +## Add AI/ML API + +```bash +ocx provider add aimlapi +``` + +Paste your AI/ML API key when asked, or give the reference `${AIMLAPI_API_KEY}` to read it from the environment. +{% endstep %} + +{% step %} +## Start the proxy + +```bash +ocx start +``` + +The proxy and dashboard run on `localhost:10100`. +{% endstep %} + +{% step %} +## Connect your tool + +For example, run `ocx claude` to launch Claude Code through the proxy, or turn on the Codex switch on the dashboard's **Route** page and run `codex`. +{% endstep %} +{% endstepper %} + +## When to use AI/ML API with OpenCodex + +AI/ML API works well with OpenCodex when you want: + +* one key for models from many providers behind your existing coding tools +* to keep Codex or Claude Code and swap the model behind them +* a live model list instead of hand-written provider config + +## Prerequisites + +Before you start, make sure you have: + +* OpenCodex v2.100.9 or later +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* a model ID from [aimlapi.com/models](https://aimlapi.com/models) + +The base URL is built into the preset: + +``` +https://api.aimlapi.com/v1 +``` + +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). + +## Set up AI/ML API in OpenCodex + +You can add the provider in any of three places. All of them write to `~/.opencodex/config.json`. + +### Option 1: CLI command + +```bash +ocx provider add aimlapi +``` + +### Option 2: Interactive setup + +```bash +ocx init +``` + +Pick **AI/ML API** from the provider list. `ocx init` also offers to wire Codex to the proxy. + +### Option 3: Dashboard + +Run `ocx start`, open the dashboard, click **Add provider**, and pick **AI/ML API**. + +### API key from the environment + +Instead of pasting the key, you can store the reference `${AIMLAPI_API_KEY}` and export the key in your shell: + +```bash +# ~/.zshrc or ~/.bashrc +export AIMLAPI_API_KEY=your_key_here +``` + +## Model selection + +OpenCodex loads the live model list from AI/ML API and keeps only chat models. Model IDs keep their vendor prefix and are routed as `aimlapi/`, for example `aimlapi/openai/gpt-5.6-terra`. + +### Good starting models + +* `openai/gpt-5.6-terra`: the preset default +* `anthropic/claude-sonnet-5-5`: strong for coding +* `google/gemini-3.5-flash`: lower latency and lower cost + +For the full catalog, use [All Model IDs](../api-references/model-database.md). + +## Config checklist + +Make sure these values are set: + +* provider: **AI/ML API** (`aimlapi`) +* API key: pasted directly or as `${AIMLAPI_API_KEY}` +* base URL: `https://api.aimlapi.com/v1` (built in) +* model ID: `aimlapi/` plus an exact AI/ML API chat model ID + +## Troubleshooting + +
+ +AI/ML API is not in the provider picker + +The preset ships in OpenCodex v2.100.9. Update OpenCodex: + +```bash +npm install -g --allow-scripts=bun @bitkyc08/opencodex@latest +``` + +
+ +
+ +The provider was added, but requests fail with an auth error + +OpenCodex cannot check the key when you add the provider, so a wrong key shows up only on the first request. Check that: + +* the key is valid at [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* `AIMLAPI_API_KEY` is exported in the shell that runs `ocx start`, if you used the `${AIMLAPI_API_KEY}` reference +* your balance is sufficient at [aimlapi.com/app](https://aimlapi.com/app) + +
+ +
+ +New models do not appear in my tool + +Restart the proxy after adding providers so the tool gets the refreshed model list. + +
+ +## Links + +* [OpenCodex repository](https://github.com/lidge-jun/opencodex) +* [OpenCodex docs](https://opencodex.me/) +* [AI/ML API keys](https://aimlapi.com/app/keys) +* [AI/ML API model catalog](https://aimlapi.com/models) diff --git a/docs/integrations/our-integration-list.md b/docs/integrations/our-integration-list.md index ed2e7ff13..ffc47ccff 100644 --- a/docs/integrations/our-integration-list.md +++ b/docs/integrations/our-integration-list.md @@ -10,4 +10,4 @@ Our API endpoint can be integrated with popular AI workflow platforms and tools, For coding agents (Claude Code, Codex, OpenCode, Cline, OpenClaude, OpenClaw, Hermes Agent, zero and ZCode) there is also a one-command setup: `npx aimlapi `. See [CLI](../quickstart/cli.md). {% endhint %} -
ServiceDescription
AgnoA lightweight library for building agents β€” AI programs that operate autonomously, use tools, and have memory, knowledge, storage, and reasoning capabilities.
AiderA command-line pair programming tool that connects to OpenAI-compatible APIs. It lets you chat with models to edit your codebase, auto-commit changes, and build software collaboratively from the terminal.
Atomic AgentAn open-source, local-first AI agent for the terminal that plans multi-step tasks and executes them with real tools: shell, files, browser automation, skills, and MCP servers. Ships with AI/ML API as a native built-in provider β€” pick it in the setup wizard, paste your key, and choose any of 500+ models fetched live from the catalog.
AutoGPTAn open-source platform designed to help you build, test, and run AI agents using a no-code visual interface. It allows users to link LLMs with tools, memory, planning modules, and action chains.
Browser UseAn LLM-powered browser automation tool that allows language models to control a real browser via structured system and user prompts. The LLM decides which browser actions to perform (open pages, navigate, click, read content), while the execution is handled by the browser runtime. The integration works with any supported LLM and does not rely on model-specific features.
Claude CodeA powerful coding agent by Anthropic that can analyze codebases, generate code, and assist with development workflows. By pointing it to AIML API, you can use Claude models available on our platform without connecting directly to Anthropic.
ClineAn open-source AI coding assistant with two working modes (Plan/Act), terminal command execution, and support for the Model Context Protocol (MCP) in VS Code.
CodexOpenAI's coding agent for the terminal. Connect it to AI/ML API with one command: npx aimlapi codex signs you in through the browser and starts Codex with AI/ML API as its model provider.
continue.devAn open-source IDE extension and hub for rules, tools, and models that let you create, share, and use custom AI code assistants.
DifyAn open-source platform for building LLM applications - chat apps, agents, and visual workflows - with a built-in RAG pipeline. AI/ML API ships as an official Dify Marketplace plugin: install aimlapi.com, add one key, and every app in the workspace can use 300+ chat models and embeddings.
ElizaOSA powerful multi-agent simulation framework designed to create, deploy, and manage autonomous AI agents. Built with TypeScript, it provides a flexible and extensible platform for developing intelligent agents that can interact across multiple platforms while maintaining consistent personalities and knowledge.
GPT ResearcherAn autonomous agent that takes care of the tedious task of research for you, by scraping, filtering and aggregating over 20+ web sources per a single research task.
HermesAn agent framework for CLI and messaging workflows that supports OpenAI-compatible providers. It can connect to AI/ML API through a native provider fork or a manual custom backend setup.
Hermes DesktopA native desktop app for installing, configuring, and chatting with Hermes Agent. Supports AI/ML API as a built-in provider preset for easy access to OpenAI-compatible models through a GUI.
Kilo CodeAn open-source AI coding assistant and VS Code extension that enables natural-language code generation, debugging, and refactoring through customizable modes (Architect, Code, Debug, etc.). It supports multiple model providers, integrates with the Model Context Protocol (MCP), and allows developers to extend functionality with custom tools and workflows.
LangChainA framework for building applications and agents on top of language models, with a common interface across providers. AI/ML API is an official LangChain provider: install langchain-aimlapi and use chat, text, embedding, image, and video models from one key.
LangflowA new visual framework for building multi-agent and RAG applications. It is open-source, Python-powered, fully customizable, and LLM and vector store agnostic. Its intuitive interface allows for easy manipulation of AI building blocks, enabling developers to quickly prototype and turn their ideas into powerful, real-world solutions.
LiteLLMAn open-source Python library that provides a unified API for interacting with multiple large language model providers. It allows developers to switch between different models with minimal code changes, optimizing cost and performance. LiteLLM simplifies integration by offering a single interface for various LLM endpoints, enabling seamless experimentation and deployment across different AI providers.
MakeA powerful, enterprise-scale automation platform. It offers flow control, data manipulation, HTTP/webhooks, AI agents and tools, notes, an MCP server, and many other features at your service.
ManusA workflow and AI-agent orchestration platform that lets users integrate custom APIs, define automation logic, and run LLM-powered tools inside a unified interface. Manus supports custom model backends (such as AI/ML API), prompt templates, request routing, secure secret storage, and visual debugging.
MarvinA Python framework by PrefectHQ for building agentic AI workflows and producing structured outputs. It allows developers to define Tasks (objective-focused units of work) and assign them to specialized Agents (LLM-powered configurations). Marvin supports type-safe results via Pydantic models, integrates with multiple LLM providers through Pydantic AI, and enables orchestration of multi-agent threads for complex workflows.
Money Printer TurboA one-click short video generator powered by AI LLMs. Uses AI/ML API as a built-in provider for script and story generation β€” configure via config.toml or the built-in WebUI.
n8nAn open-source workflow automation tool that lets you connect various services and automate tasks without writing full integrations manually.
Oh My PiAn AI coding agent for the terminal with subagents, plan mode, LSP, and DAP. Supports AI/ML API as a built-in provider preset β€” set AIMLAPI_API_KEY and omp discovers 350+ chat-compatible models automatically.
OpenClaudeAn open-source coding-agent CLI for the terminal. Ships AI/ML API as a built-in provider preset - run /provider, pick aimlapi.com, and either paste a key or let OpenClaude create an account and issue one for you.
OpenClaw

A personal AI assistant that runs on your own devices and connects to popular messaging platforms (such as WhatsApp, Telegram, Slack, Discord, and others) while preserving full data privacy (all agent data is stored locally in a SQLite database).

Developers use OpenClaw to build multi-channel AI assistants with streaming responses, browser automation, vision, and voice features. It includes a local Gateway service, a CLI for management, and support for 12+ messaging platforms.

OpenCodeAn open-source AI coding agent for the terminal. Connect it to AI/ML API with one command: npx aimlapi opencode signs you in through the browser and starts OpenCode with AI/ML API as a provider.
RAGFlowA leading open-source Retrieval-Augmented Generation (RAG) engine that pairs deep document understanding with agent capabilities. Ships AI/ML API as a built-in model provider from v0.27.0 - one key for chat, embedding, and image-to-text models.
Roo CodeAn autonomous AI programming agent that works right inside your editor, such as VS Code. It helps you code faster and smarter β€” whether you're starting a new project, maintaining existing code, or exploring new technologies.
SillyTavernA locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models. Integration with the AI/ML API currently applies only to LLMs.
ToolhouseA Backend-as-a-Service (BaaS) to build, run, and manage AI agents. Toolhouse simplifies the process of building agents in a local environment and running them in production.
ZCodeAn open-source AI coding workspace from Z.ai with a desktop app, a browser UI and a terminal TUI on one agent runtime. Add AI/ML API as a custom provider once - Chat completions format, https://api.aimlapi.com/v1, your key - and every model you register is available in all three interfaces.
ZeroAn AI coding agent for your local terminal, with a TUI and a scriptable zero exec mode. Ships AI/ML API as a recommended built-in provider preset - run zero providers setup aimlapi --set-active, or onboard straight from the terminal without a key.
+
ServiceDescription
AgnoA lightweight library for building agents β€” AI programs that operate autonomously, use tools, and have memory, knowledge, storage, and reasoning capabilities.
AiderA command-line pair programming tool that connects to OpenAI-compatible APIs. It lets you chat with models to edit your codebase, auto-commit changes, and build software collaboratively from the terminal.
AiSOCAn open-source, self-hostable AI Security Operations Center that detects and investigates threats with AI agents. Point its Custom endpoint credential at https://api.aimlapi.com/v1 and pick an AI/ML API model from the list it loads.
Atomic AgentAn open-source, local-first AI agent for the terminal that plans multi-step tasks and executes them with real tools: shell, files, browser automation, skills, and MCP servers. Ships with AI/ML API as a native built-in provider β€” pick it in the setup wizard, paste your key, and choose any of 500+ models fetched live from the catalog.
AutoGPTAn open-source platform designed to help you build, test, and run AI agents using a no-code visual interface. It allows users to link LLMs with tools, memory, planning modules, and action chains. AI/ML API is available as an LLM provider and in the AutoGPT MCP catalog.
Browser UseAn LLM-powered browser automation tool that allows language models to control a real browser via structured system and user prompts. The LLM decides which browser actions to perform (open pages, navigate, click, read content), while the execution is handled by the browser runtime. The integration works with any supported LLM and does not rely on model-specific features.
Claude CodeA powerful coding agent by Anthropic that can analyze codebases, generate code, and assist with development workflows. By pointing it to AIML API, you can use Claude models available on our platform without connecting directly to Anthropic.
ClineAn open-source AI coding assistant with two working modes (Plan/Act), terminal command execution, and support for the Model Context Protocol (MCP) in VS Code. Since v4.1.24, AI/ML API is in its provider list.
CodexOpenAI's coding agent for the terminal. Connect it to AI/ML API with one command: npx aimlapi codex signs you in through the browser and starts Codex with AI/ML API as its model provider.
continue.devAn open-source IDE extension and hub for rules, tools, and models that let you create, share, and use custom AI code assistants.
DifyAn open-source platform for building LLM applications (chat apps, agents, and visual workflows) with a built-in RAG pipeline. AI/ML API ships two official Dify Marketplace plugins: aimlapi.com for 300+ chat models and embeddings, and AI/ML API Media & Search with image, video, speech, OCR and web search tools.
ElizaOSA powerful multi-agent simulation framework designed to create, deploy, and manage autonomous AI agents. Built with TypeScript, it provides a flexible and extensible platform for developing intelligent agents that can interact across multiple platforms while maintaining consistent personalities and knowledge.
GooseAn open-source, general-purpose agent for coding, research, writing and automation, with a desktop app and a CLI. Ships AI/ML API as a built-in provider: run goose configure, pick AI/ML API, and paste your key.
GPT ResearcherAn autonomous agent that takes care of the tedious task of research for you, by scraping, filtering and aggregating over 20+ web sources per a single research task.
HermesAn agent framework for CLI and messaging workflows. Install the official aimlapi.com plugin with hermes plugins install aimlapi to get AI/ML API as a model provider, with optional AI/ML API MCP tools.
Hermes DesktopA native desktop app for installing, configuring, and chatting with Hermes Agent. Supports AI/ML API as a built-in provider preset for easy access to OpenAI-compatible models through a GUI.
Kilo CodeAn open-source AI coding assistant and VS Code extension that enables natural-language code generation, debugging, and refactoring through customizable modes (Architect, Code, Debug, etc.). It supports multiple model providers, integrates with the Model Context Protocol (MCP), and allows developers to extend functionality with custom tools and workflows.
LangChainA framework for building applications and agents on top of language models, with a common interface across providers. AI/ML API is an official LangChain provider: install langchain-aimlapi and use chat, text, embedding, image, and video models from one key.
LangflowA new visual framework for building multi-agent and RAG applications. It is open-source, Python-powered, fully customizable, and LLM and vector store agnostic. Its intuitive interface allows for easy manipulation of AI building blocks, enabling developers to quickly prototype and turn their ideas into powerful, real-world solutions.
LiteLLMAn open-source Python library that provides a unified API for interacting with multiple large language model providers. It allows developers to switch between different models with minimal code changes, optimizing cost and performance. LiteLLM simplifies integration by offering a single interface for various LLM endpoints, enabling seamless experimentation and deployment across different AI providers.
MakeA powerful, enterprise-scale automation platform. It offers flow control, data manipulation, HTTP/webhooks, AI agents and tools, notes, an MCP server, and many other features at your service.
ManusA workflow and AI-agent orchestration platform that lets users integrate custom APIs, define automation logic, and run LLM-powered tools inside a unified interface. Manus supports custom model backends (such as AI/ML API), prompt templates, request routing, secure secret storage, and visual debugging.
MarvinA Python framework by PrefectHQ for building agentic AI workflows and producing structured outputs. It allows developers to define Tasks (objective-focused units of work) and assign them to specialized Agents (LLM-powered configurations). Marvin supports type-safe results via Pydantic models, integrates with multiple LLM providers through Pydantic AI, and enables orchestration of multi-agent threads for complex workflows.
models.devAn open catalog of AI models and providers that coding tools use to build their provider lists. AI/ML API is listed as aimlapi, so it shows up natively in OpenCode, Cline and other tools that read the catalog.
Money Printer TurboA one-click short video generator powered by AI LLMs. Uses AI/ML API as a built-in provider for script and story generation β€” configure via config.toml or the built-in WebUI.
n8nAn open-source workflow automation tool that lets you connect various services and automate tasks without writing full integrations manually.
Oh My PiAn AI coding agent for the terminal with subagents, plan mode, LSP, and DAP. Supports AI/ML API as a built-in provider preset β€” set AIMLAPI_API_KEY and omp discovers 350+ chat-compatible models automatically.
OmniRouteA local OpenAI-compatible AI gateway that routes requests across the providers you connect. Ships AI/ML API as a built-in provider: connect it in the dashboard and call models with the aiml/ prefix.
OpenClaudeAn open-source coding-agent CLI for the terminal. Ships AI/ML API as a built-in provider preset: run /provider, pick aimlapi.com, and either paste a key or let OpenClaude create an account and issue one for you. A built-in plugin connects AI/ML API MCP tools.
OpenClaw

A personal AI assistant that runs on your own devices and connects to popular messaging platforms (such as WhatsApp, Telegram, Slack, Discord, and others) while preserving full data privacy (all agent data is stored locally in a SQLite database).

Developers use OpenClaw to build multi-channel AI assistants with streaming responses, browser automation, vision, and voice features. It includes a local Gateway service, a CLI for management, and support for 12+ messaging platforms.

OpenCodeAn open-source AI coding agent for the terminal. Connect it to AI/ML API with one command: npx aimlapi opencode signs you in through the browser and starts OpenCode with AI/ML API as a provider.
OpenCodexA local gateway that lets Codex, Claude Code and other coding tools use models from the providers you add. Ships AI/ML API as a built-in provider preset: run ocx provider add aimlapi.
RAGFlowA leading open-source Retrieval-Augmented Generation (RAG) engine that pairs deep document understanding with agent capabilities. Ships AI/ML API as a built-in model provider from v0.27.0 - one key for chat, embedding, and image-to-text models.
rea-videoA tool that breaks videos down shot by shot: filmed, AI-generated or coded, and how to remake each shot. Use an AI/ML API vision model as its VLM through three REA_VLM_* environment variables.
Roo CodeAn autonomous AI programming agent that works right inside your editor, such as VS Code. It helps you code faster and smarter β€” whether you're starting a new project, maintaining existing code, or exploring new technologies.
SillyTavernA locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models. Integration with the AI/ML API currently applies only to LLMs.
ToolhouseA Backend-as-a-Service (BaaS) to build, run, and manage AI agents. Toolhouse simplifies the process of building agents in a local environment and running them in production.
ZCodeAn open-source AI coding workspace from Z.ai with a desktop app, a browser UI and a terminal TUI on one agent runtime. Add AI/ML API as a custom provider once - Chat completions format, https://api.aimlapi.com/v1, your key - and every model you register is available in all three interfaces.
ZeroAn AI coding agent for your local terminal, with a TUI and a scriptable zero exec mode. Ships AI/ML API as a recommended built-in provider preset - run zero providers setup aimlapi --set-active, or onboard straight from the terminal without a key.
diff --git a/docs/integrations/ragflow.md b/docs/integrations/ragflow.md index dec251ffd..d7fafae43 100644 --- a/docs/integrations/ragflow.md +++ b/docs/integrations/ragflow.md @@ -68,7 +68,7 @@ The base URL is: https://api.aimlapi.com/v1 ``` -Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de41a1a02c07771cac9b). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Supported model types @@ -93,7 +93,7 @@ The provider ships a short preset list, and you can add any other AI/ML API mode * `google/gemini-2.5-flash` β€” lower latency and lower cost * `openai/text-embedding-3-small` β€” embeddings -For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Config checklist @@ -144,7 +144,7 @@ Changing the embedding model changes the vector space. Re-parse the affected kno ## Links -* [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) * [RAGFlow repository](https://github.com/infiniflow/ragflow) diff --git a/docs/integrations/rea-video.md b/docs/integrations/rea-video.md new file mode 100644 index 000000000..9ca6443e7 --- /dev/null +++ b/docs/integrations/rea-video.md @@ -0,0 +1,144 @@ +--- +description: >- + Use an AI/ML API vision model as the VLM in rea-video, the shot-by-shot video + breakdown tool. +--- + +# rea-video + +## About + +[rea-video](https://github.com/JuneYaooo/rea-video) reverse-engineers videos shot by shot: whether a shot was filmed, AI-generated or coded, and how to remake it. It runs deterministic forensics offline and can add a multimodal model (VLM) that looks at the frames to improve its calls. + +rea-video talks to any OpenAI-compatible VLM endpoint, so you can point it at AI/ML API with three environment variables. Since [PR #19](https://github.com/JuneYaooo/rea-video/pull/19) (rea-video **v0.1.0**), its VLM requests carry a `rea-video` User-Agent, which some gateways require. + +## Quick start + +{% stepper %} +{% step %} +## Install rea-video + +You need Python 3.10 or later and ffmpeg. + +```bash +pip install "rea-video[ocr] @ git+https://github.com/JuneYaooo/rea-video" +``` +{% endstep %} + +{% step %} +## Point the VLM at AI/ML API + +```bash +export REA_VLM_BASE_URL=https://api.aimlapi.com/v1 +export REA_VLM_API_KEY=your_key_here +export REA_VLM_MODEL=google/gemini-3.6-flash +``` +{% endstep %} + +{% step %} +## Run a breakdown with the VLM + +```bash +rea-video decompose ref.mp4 -o out/ref --vlm +``` +{% endstep %} +{% endstepper %} + +## When to use AI/ML API with rea-video + +AI/ML API works well with rea-video when you want: + +* to try different vision models for shot analysis with one key +* a fallback list of models from different providers +* the same key for other tools in your video workflow + +## Prerequisites + +Before you start, make sure you have: + +* rea-video v0.1.0 or later +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) +* a vision-capable chat model ID from [aimlapi.com/models](https://aimlapi.com/models) + +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). + +## Configure rea-video + +rea-video reads its VLM settings from the environment: + +| Variable | Value for AI/ML API | +| --- | --- | +| `REA_VLM_BASE_URL` | `https://api.aimlapi.com/v1` | +| `REA_VLM_API_KEY` | your AI/ML API key | +| `REA_VLM_MODEL` | a vision model ID, or a comma-separated fallback list | + +All three must be set. When they are, rea-video uses this endpoint instead of Gemini and sends requests to `https://api.aimlapi.com/v1/chat/completions`. The same model also rewrites remake prompts. + +### Keep settings in a file + +Put the same lines in a file and pass it with `--env-file`: + +```bash +# aimlapi.env +REA_VLM_BASE_URL=https://api.aimlapi.com/v1 +REA_VLM_API_KEY=your_key_here +REA_VLM_MODEL=google/gemini-3.6-flash +``` + +```bash +rea-video --env-file aimlapi.env decompose ref.mp4 -o out/ref --vlm +``` + +### Optional settings + +* `REA_VLM_MEDIA`: `both` (default: a short clip plus keyframes), `video` or `frames`. Use `frames` if your model does not accept video input. +* `REA_VLM_VIDEO_PART`: `image_url` or `video_url`, how a clip is attached. +* `REA_VLM_REASONING_EFFORT`: `low`, `medium` or `high`, passed to thinking models. + +## Model selection + +Use a model that accepts image input. To fall back to another model when a call fails, list several IDs: + +```bash +export REA_VLM_MODEL=google/gemini-3.6-flash,anthropic/claude-sonnet-5 +``` + +For the full catalog, use [All Model IDs](../api-references/model-database.md). + +## Verify + +After a run, check the `VLM:` line in the summary: + +```bash +rea-video summary out/ref +``` + +If every VLM call failed, the run still finishes, and the summary says so. + +## Troubleshooting + +
+ +The summary says all VLM calls failed + +Check that: + +* all three `REA_VLM_*` variables are set in the shell that runs rea-video, or in the `--env-file` +* the key is valid at [aimlapi.com/app/keys](https://aimlapi.com/app/keys) and your balance is sufficient +* the model accepts images; if it rejects video clips, set `REA_VLM_MEDIA=frames` + +
+ +
+ +rea-video still uses Gemini + +rea-video uses the OpenAI-compatible endpoint only when `REA_VLM_BASE_URL`, `REA_VLM_API_KEY` and `REA_VLM_MODEL` are all set. + +
+ +## Links + +* [rea-video repository](https://github.com/JuneYaooo/rea-video) +* [AI/ML API keys](https://aimlapi.com/app/keys) +* [AI/ML API model catalog](https://aimlapi.com/models) diff --git a/docs/integrations/roo-code.md b/docs/integrations/roo-code.md index 48fd0ebd2..65d2fe986 100644 --- a/docs/integrations/roo-code.md +++ b/docs/integrations/roo-code.md @@ -74,7 +74,7 @@ These models have been tested by our team for compatibility with Roo Code integr * [qwen-max-2025-01-25](../api-references/text-models-llm/alibaba-cloud/qwen-max.md) * [qwen-plus](../api-references/text-models-llm/alibaba-cloud/qwen-plus.md) * [anthracite-org/magnum-v4-72b](../api-references/text-models-llm/anthracite/magnum-v4.md) -* [google/gemini-2.0-flash](/broken/pages/CapOhTrzos7y9s3QTcET) +* google/gemini-2.0-flash * [mistralai/mistral-nemo](../api-references/text-models-llm/mistral-ai/mistral-nemo.md) * [MiniMax-Text-01](../api-references/text-models-llm/minimax/text-01.md) * [x-ai/grok-3-beta](../api-references/text-models-llm/xai/grok-3-beta.md) diff --git a/docs/integrations/zero.md b/docs/integrations/zero.md index a24f38dec..d99f21837 100644 --- a/docs/integrations/zero.md +++ b/docs/integrations/zero.md @@ -8,7 +8,7 @@ description: >- ## About -[Zero](https://github.com/Gitlawb/zero) is an AI coding agent for your local terminal. It inspects a repository, edits files, and runs commands, either through its TUI or non-interactively with `zero exec` for scripts and CI. +[Zero](https://github.com/Twigpine/zero) is an AI coding agent for your local terminal. It inspects a repository, edits files, and runs commands, either through its TUI or non-interactively with `zero exec` for scripts and CI. AI/ML API is a **built-in, recommended provider preset** in Zero β€” it ships upstream, so there is nothing to patch or build from source. Zero also offers guided onboarding: you can create an AI/ML API account, top it up, and get a key without leaving the terminal. @@ -25,7 +25,7 @@ If you use `aimlapi zero`, don't export `AIMLAPI_API_KEY` as described below: it ## Install Zero ```bash -npm install -g @gitlawb/zero +npm install -g @twigpine/zero ``` {% endstep %} @@ -68,7 +68,7 @@ AI/ML API works well with Zero when you want: Before you start, make sure you have: -* Zero installed (see [github.com/Gitlawb/zero](https://github.com/Gitlawb/zero)) +* Zero installed (see [github.com/Twigpine/zero](https://github.com/Twigpine/zero)) * an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) β€” or use the guided onboarding below * a model ID from [aimlapi.com/models](https://aimlapi.com/models) @@ -78,7 +78,7 @@ The base URL is: https://api.aimlapi.com/v1 ``` -Need a key first? Use [API Key Management](/broken/pages/cdd447f8b558d5268491de41a1a02c07771cac9b). +Need a key first? Use [API Key Management](../api-references/service-endpoints/api-key-management.md). ## Set up AI/ML API in Zero @@ -98,7 +98,7 @@ Run `zero` and follow the setup wizard, or run it directly: zero setup ``` -AI/ML API is listed as **aimlapi.com** and sorts to the top of the picker as a recommended provider. +AI/ML API is listed as **aimlapi.com** among the recommended providers near the top of the picker. ### Option 3 β€” Environment variable @@ -115,19 +115,19 @@ If you have no key yet, the onboarding flow in the TUI takes an email, creates a ## Model selection -Use exact AI/ML API model IDs. List what is available: +Use exact AI/ML API model IDs. List the models AI/ML API serves: ```bash -zero models list +zero providers models aimlapi ``` ### Good starting models -* `anthropic/claude-sonnet-5` β€” the preset default, strong for coding -* `openai/gpt-5-5` β€” strong general use -* `google/gemini-3-7-flash` β€” lower latency and lower cost +* `anthropic/claude-sonnet-5`: the preset default, strong for coding +* `openai/gpt-5-5`: strong general use +* `google/gemini-3.7-flash`: lower latency and lower cost -For the full catalog, use [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984). +For the full catalog, use [All Model IDs](../api-references/model-database.md). ## Config checklist @@ -166,7 +166,7 @@ zero providers list Update Zero to the latest version β€” the preset ships upstream: ```bash -npm install -g @gitlawb/zero@latest +npm install -g @twigpine/zero@latest ``` @@ -187,13 +187,13 @@ Check that: I want to point Zero at a different endpoint -`AIMLAPI_INFERENCE_URL` overrides the inference base URL. Leave it unset to use the default `https://api.aimlapi.com/v1`. +`AIMLAPI_INFERENCE_URL` overrides the inference base URL used by the guided onboarding in the TUI. Leave it unset to use the default `https://api.aimlapi.com/v1`. ## Links -* [All Model IDs](/broken/pages/9db43b2a9ecf64fedb7fcfc447a3ace848669984) +* [All Model IDs](../api-references/model-database.md) * [AI/ML API keys](https://aimlapi.com/app/keys) * [AI/ML API model catalog](https://aimlapi.com/models) -* [Zero repository](https://github.com/Gitlawb/zero) +* [Zero repository](https://github.com/Twigpine/zero)