OpenAI
Connect OpenAI and configure credentials, models, and API operations.
Create a connection
Select OpenAI in organization or Workspace LLM Integrations. Enter a name and stable slug, then configure the following fields.
Default upstream URL: https://api.openai.com/v1.
| Field | Required | Description |
|---|---|---|
project_id | Optional | OpenAI Project ID |
organization | Optional | OpenAI Organization |
api_key | Required | API key |
Advanced settings support Custom Host and Custom Headers.
Optionally set Project ID and Organization. Administrators confirm discovered Credit rate suggestions per model before saving.
APIs and models
This connection supports the following Gateway operations. Configure Streaming, Tools, Usage, modalities, and limits separately for each model in the catalog.
| Operation | Gateway path |
|---|---|
| Chat Completions | POST /v1/chat/completions |
| Responses | POST /v1/responses |
| Embeddings | POST /v1/embeddings |
| Image generation | POST /v1/images/generations |
| Image editing | POST /v1/images/edits |
| Image variations | POST /v1/images/variations |
| Speech | POST /v1/audio/speech |
| Transcription | POST /v1/audio/transcriptions |
| Translation | POST /v1/audio/translations |
In model management, fetch models from upstream, select candidates, and confirm capabilities and Credit rates before saving. You can also add models manually.
Publish and call
- Grant the target Workspace access to a shared Integration, or create an owned Integration there.
- Create a Gateway API key with direct model access, or bind a Policy that routes to this model.
- Validate, review, and publish a Release; check that the Gateway has loaded it.
- Use
GET /v1/modelsto find model IDs visible to the key, then send a request.
The example uses a direct model reference; replace it with an actual ID visible to the key. SHIELDON_GATEWAY_BASE_URL is the ShieldON URL ending in /v1.
curl "$SHIELDON_GATEWAY_BASE_URL/chat/completions" \
-H "Authorization: Bearer $SHIELDON_GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "@your-integration/your-model",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 512,
"stream": false
}'Check the actual Integration, model, status, and usage in request details.