Imgix Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Imgix MCP or direct API to optimize images, generate thumbnails, apply transformations, and analyze image metadata through natural language.
Imgix Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Imgix Auto OptimizationTool to apply automatic best-effort image optimizations.
Blend OverlayTool to overlay an image, text, or color onto a base image using imgix blending parameters.
Imgix Blend AlignTool to align the overlay relative to the base image when blending.
Blend Color Over ImageTool to blend a solid color over an image using CSS keyword or hex.
Imgix Blend X PositionTool to position the overlay horizontally on an Imgix-rendered image.
Draw Image BorderTool to draw a border around an image.
Adjust Image BrightnessTool to adjust image brightness.
IMGIX_CHTool to opt in to Client Hints.
Extract Image Color PaletteTool to specify how many colors to return when extracting a color palette.
Adjust Image ContrastTool to adjust image contrast.
IMGIX_CROPTool to control cropping alignment and behavior using Imgix's 'crop' parameter.
IMGIX_CSTool to set or strip output color space/profile on an Imgix image.
IMGIX_DLTool to force asset download.
Adjust Image DPITool to embed DPI (dots-per-inch) metadata for print output on an Imgix-rendered image.
Set Device Pixel RatioTool to set device pixel ratio for an Imgix image.
Imgix URL ExpirationTool to append an expiration parameter to an Imgix URL so it returns 404 after a given time.
IMGIX_FITTool to control how an image fits target dimensions after resizing.
IMGIX_FMTool to choose output file format for the rendered asset.
Force Aspect RatioTool to force a target aspect ratio on an Imgix image.
IMGIX_HTool to set output image height in pixels or as a ratio of the source height.
Adjust Image HighlightsTool to adjust highlight tonal mapping (−100 to 0).
IMGIX_LIST_SOURCESTool to list all Sources for an account.
Set Watermark Base URLTool to set the base URL prepended to the watermark image path.
Watermark Fit ModeTool to set how a watermark fits its target dimensions.
Imgix Mark HeightTool to set watermark height on an Imgix URL in pixels or as a ratio of the watermark source.
IMGIX_MARK_PADTool to set pixel padding between a watermark and the image edge or between tiled watermarks.
Watermark WidthTool to set watermark width.
IMGIX_MASKTool to apply a mask to an image.
IMGIX_MAX_HTool to limit output image height.
IMGIX_MAX_WTool to set the maximum output width on an Imgix URL.
IMGIX_PALETTETool to extract a color palette from an image in CSS or JSON form.
Set CSS Palette PrefixTool to set class-name prefix for CSS palette output.
Set Output QualityTool to set output quality for lossy formats.
IMGIX_RECTTool to select a source-image rectangle region in Imgix before other resizing.
Imgix RotateTool to rotate an image on Imgix.
IMGIX_ROT_TYPETool to control rotation behavior when `rot` is applied.
Text OverlayTool to render a single-line UTF-8 text overlay on an image.
IMGIX_TXT_ALIGNTool to align a text overlay on an Imgix image.
Set Text ColorTool to set text overlay color on an Imgix image.
Set Text FontTool to choose font family/style for overlay text.
Set Text Outline WidthTool to set outline width around overlay text.
Text Outline ColorTool to set outline color for text.
IMGIX_TXT_SHADTool to set text shadow strength for overlay text.
IMGIX_TXT_SIZETool to set text font size in pixels.

Connect Imgix MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Imgix tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Extract main color palette from this image URL: https://assets.imgix.net/examples/kingfisher.jpg')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Imgix API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Imgix Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Extract a five-color palette from this product image URL'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Imgix actions with your Agent

Why Use Composio?

AI Native Imgix Integration

  • Supports both Imgix MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Imgix data

Managed Auth

  • Built-in API key management for Imgix
  • Central place to manage, scope, and revoke Imgix access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Imgix
  • Scoped, least privilege access to Imgix resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Imgix with Composio?

Yes, Imgix requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.