Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

3.8 KB
Raw Blame

🧠 Running AI/ML API with AutoGPT

Follow these steps to connect AI/ML API with the AutoGPT platform for high-performance AI text generation.


✅ Prerequisites

  1. Make sure you have gone through and completed the AutoGPT Setup Guide, and AutoGPT is running locally at http://localhost:3000.
  2. You have an API key from AI/ML API.

⚙️ Setup Steps

1. Start AutoGPT Locally

Follow the official guide: 📖 AutoGPT Getting Started Guide

Make sure AutoGPT is running and accessible at: http://localhost:3000

💡 Keep AutoGPT running in a terminal or Docker throughout the session.

Step 1 AutoGPT Running


2. Open the Visual Builder

Open your browser and go to: http://localhost:3000/build

Or click “Build” in the navigation bar.

Step 2 Build Screen


3. Add an AI Text Generator Block

  1. Click the "Blocks" button on the left sidebar.

Step 3 AI Block

  1. In the search bar, type AI Text Generator.
  2. Drag the block into the canvas.

Step 4 AI Generator Block


4. Select an AI/ML API Model

Click the AI Text Generator block to configure it.

In the LLM Model dropdown, select the model currently available from AI/ML API:

Step 5 AIMLAPI Models

Model Model ID
Llama 3.3 70B Instruct Turbo meta-llama/Llama-3.3-70B-Instruct-Turbo

✅ This model is available via the OpenAI-compatible API from AI/ML API


5. Configure the Prompt and API Key

Inside the AI Text Generator block:

  1. Enter your prompt text in the Prompt field.
  2. Enter your AI/ML API Key in the designated field.

🔐 You can get your key from: https://aimlapi.com/app/keys/

Key Placeholder

Key Empty

Key Filled

Overview


6. Save Your Agent

Click the “Save” button at the top-right of the builder interface:

  1. Give your agent a name (e.g., aimlapi_test_agent).
  2. Click “Save Agent” to confirm.

Save Agent

💡 Saving allows reuse, scheduling, and chaining in larger workflows.


7. Run Your Agent

From the workspace:

  1. Press “Run” next to your saved agent.
  2. The request will be sent to the selected AI/ML API model.

Run Agent


8. View the Output

  1. Scroll to the AI Text Generator block.
  2. Check the Output panel below it.
  3. You can copy, export, or pass the result to further blocks.

Agent Output


🔄 Expand Your Agent

Now that AI/ML API is connected, expand your workflow by chaining additional blocks:

  • 🔧 Tools – fetch URLs, call APIs, scrape data
  • 🧠 Memory – retain context across interactions
  • ⚙️ Actions / Chains – create full pipelines

🎉 You’re now generating AI responses using enterprise-grade models from AI/ML API in AutoGPT!