DEVUP AI for the OpenAI Agents SDK
Build agents with OpenAI's Agents SDK and run them on DEVUP AI models. Point one client at DEVUP AI, and your agents call tools, hand off to each other and stream their answers.
System Architecture
How the Agents SDK Connects to DEVUP AI
Configuration
Two Settings That Matter
Base URL
Pass it as base_url of the AsyncOpenAI client.
Model provider
Keeps DEVUP AI model IDs such as deepseek-ai/DeepSeek-V4-Pro whole.
Quick Start
Configure Once, Run Any Agent
devup_config.py
import os
from openai import AsyncOpenAI
from agents import MultiProvider, RunConfig, set_tracing_disabled
client = AsyncOpenAI(
base_url="https://api.devupai.com/v1",
api_key=os.environ["DEVUP_API_KEY"],
)
# Keep DEVUP AI model IDs such as deepseek-ai/DeepSeek-V4-Pro whole.
provider = MultiProvider(
openai_client=client,
openai_prefix_mode="model_id",
unknown_prefix_mode="model_id",
)
RUN_CONFIG = RunConfig(model_provider=provider)
# The SDK exports traces to OpenAI by default; turn tracing off.
set_tracing_disabled(True)from agents import Agent, Runner
from devup_config import RUN_CONFIG
agent = Agent(
name="Assistant",
instructions="You are concise.",
model="deepseek-ai/DeepSeek-V4-Pro",
)
result = Runner.run_sync(agent, "Reply with exactly: Salam DEVUP", run_config=RUN_CONFIG)
print(result.final_output)Capabilities
Supported Capabilities
Tools and handoffs
Agents call Python functions as tools and hand conversations to specialist agents.
Streaming
Runner.run_streamed sends the answer as it is written.
Structured output
Set a Pydantic model as output_type and get a typed result back.
Local DZD billing
Metered billing in Algerian Dinar with BaridiMob, Edahabia, and CIB local payment support.
FAQ
OpenAI Agents SDK and DEVUP AI
Does the OpenAI Agents SDK work with DEVUP AI?
Yes. Create an AsyncOpenAI client with base_url https://api.devupai.com/v1 and your DEVUP AI key, wrap it in a MultiProvider with model_id prefix modes, and pass RunConfig(model_provider=...) to every Runner call.
Which models can I use with the Agents SDK?
Any DEVUP AI chat model with tool calling, such as deepseek-ai/DeepSeek-V4-Pro or openai/gpt-5.4-mini. Set it as the model of each agent.
How is Agents SDK usage billed on DEVUP AI?
Every request from your agents is a regular DEVUP AI API call, metered in Algerian Dinar on your account.