Back to Integrations
Agent Framework

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

1. Client
Your agents
Instructions, tools and handoffs
2. Gateway
DEVUP OpenAI-compatible API
POST /v1/responses
3. Inference
Models
DeepSeek-V4-Pro, gpt-5.4-mini or any catalog ID
4. Response
Response
Answers, tool calls and handoffs

Configuration

Two Settings That Matter

Base URL

https://api.devupai.com/v1

Pass it as base_url of the AsyncOpenAI client.

Model provider

MultiProvider with model_id prefix modes

Keeps DEVUP AI model IDs such as deepseek-ai/DeepSeek-V4-Pro whole.

Quick Start

Configure Once, Run Any Agent

devup_config.py

python
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)
python
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.

Ready to Build Agents on DEVUP AI?