Setup Your API Key
To use OpenAI with Orq.ai, follow these steps:- Navigate to AI Gateway > BYOK
- Find OpenAI in the list
- Click the Configure button next to OpenAI
- In the modal that opens, select Setup your own API Key
- Enter a name for this configuration (e.g., “OpenAI Production”)
- Paste your OpenAI API Key into the provided field
- Click Save to complete the setup
Available Models
The AI Gateway supports all current OpenAI models. Here are the most commonly used:Recommended Models
For a complete list of available OpenAI models, see Supported Models.
Reasoning models (
o1, o3, o4-mini) require developer mode enabled in your OpenAI account. Enable it in your account settings and accept the reasoning model terms before using these models.Web Search
Add web search to Responses API calls with
web_search_preview tools.Reasoning models
Configure
reasoning_effort for o1 and o3 models through the AI Gateway.Quick Start
Access OpenAI’s GPT models through the AI Gateway.Using the AI Gateway
Access OpenAI’s GPT models through the AI Gateway using the Responses API or Chat Completions, with streaming, function calling, and intelligent model routing. All OpenAI models are available with consistent formatting and automatic request logging.OpenAI models use the provider slug format:
openai/model-name. For example: openai/gpt-5.6-solPrerequisites
Before making requests to the AI Gateway, you need to configure your environment and install the SDKs if you choose to use them. Router Endpoint To use the AI Gateway with OpenAI models, configure your OpenAI SDK client with the base URL:- Go to API Keys
- Click Create API Key and copy it
- Store it in your environment as
ORQ_API_KEY
Basic Usage
Send messages to OpenAI models and get intelligent responses:Function Calling
OpenAI models support function calling for structured interactions:Tool Calling
Full reference for function tools,
tool_choice, parallel calls, and streaming with tool calls through the AI Gateway.Streaming
Stream responses for real-time output and improved user experience:Using the Responses API
The Responses API combines the best of Chat Completions and Assistants APIs. Useresponses.create() with the AI Gateway:
Web Search
Add web search to Responses API calls with
web_search_preview tools.Reasoning models
Use the
reasoning object with o-series models on the Responses API.Endpoint
Basic Usage
Configure the OpenAI SDK to use the AI Gateway and call the Responses API:Automatic Request Logging
All requests made through the AI Gateway are automatically logged to your dashboard. You can view:- Request details: Model used, tokens, latency
- Cost tracking: Per-request and aggregate costs
- Error monitoring: Failed requests with error messages
- Performance metrics: Response times and throughput