How to Use the Imagine.io MCP in OpenAI Agents SDK
Build production-grade visual commerce agents that trigger 3D renders using OpenAI Agents SDK and the Imagine.io MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Imagine.io MCP to OpenAI Agents SDK
Create your Vinkius account to connect Imagine.io to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate photorealistic product renders
Stop manually setting up scene files for every product variant. Your OpenAI agent uses `create_render_job` to kick off asynchronous 3D render jobs directly from your inventory database. By passing the correct material and scene parameters, your agent handles the heavy lifting of staging products without human intervention. Once the render starts, the agent doesn't just sit there. It monitors progress using `get_job_status` and retrieves the final high-resolution assets via `list_renders` as soon as they are ready. This hands-off pipeline turns raw product data into marketing-ready images.
Control scene assets with this MCP Server
Give your OpenAI agents the exact tools they need to navigate your 3D catalog. This integration exposes your entire asset library, letting the agent run `list_scenes` and `list_materials` to find the perfect backdrop for a product. It prevents the model from guessing asset IDs or making up materials that don't exist in your warehouse. The agent queries `get_scene` to verify spatial coordinates and camera angles before committing credits. This means your agent can intelligently swap an oak finish for a walnut finish on a dining table scene without writing a single line of rendering code.
Manage visual inventory and credits dynamically
Keep your automated rendering pipeline under budget by letting your agent track costs. The agent calls `get_account` to check your remaining render credits before initiating large batch runs. If credits are low, the agent can pause the queue or alert your team via Slack. Synchronization is handled automatically by using `list_products` and `get_product` to cross-reference active renders with your e-commerce catalog. This ensures your agent only spends compute resources on products that actually need updated visuals.
Set up Imagine.io MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all Imagine.io tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Imagine.io tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Imagine.io tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="Imagine.io Agent",
instructions="You have access to Imagine.io tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Imagine.io. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Imagine.io MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Imagine.io MCP today
We host it, we monitor it, we maintain it. You just paste one token.