Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
75 changes: 40 additions & 35 deletions docs/integrations/agno.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="<YOUR_AIMLAPI_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 %}
Expand All @@ -60,22 +60,30 @@ agent.print_response("Tell me, why is the sky blue in 2 sentences")

</details>

{% 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

Expand All @@ -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
```

</details>
Expand All @@ -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)
Expand All @@ -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,
)

Expand All @@ -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?")
Expand All @@ -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).
129 changes: 129 additions & 0 deletions docs/integrations/aisoc.md
Original file line number Diff line number Diff line change
@@ -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

<details>

<summary>I don't see "List models from endpoint"</summary>

Model listing arrived in AiSOC v20.3.0. Update AiSOC, or type the model ID into **Model** by hand.

</details>

<details>

<summary>Test fails with an auth error</summary>

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)

</details>

<details>

<summary>AiSOC keeps using the default model</summary>

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.

</details>

## 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)
30 changes: 26 additions & 4 deletions docs/integrations/autogpt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).

***

Expand Down Expand Up @@ -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.

<div align="left"><figure><img src="../.gitbook/assets/Step 6.1 Key Placeholder.png" alt=""><figcaption></figcaption></figure></div>

Expand Down Expand Up @@ -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).

<div align="left"><figure><img src="../.gitbook/assets/Step 9 Output.png" alt=""><figcaption></figcaption></figure></div>
Expand All @@ -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 <a href="#more" id="more"></a>

For further information about the framework, please check [the official AutoGPT documentation](https://docs.agpt.co/platform/getting-started/).
Loading
Loading