OCI
OCI is available on the Spanway gateway through the oci/ model prefix. You register an OCI model once in the gateway's config.yaml (or through the Admin UI), and every application then calls it through the gateway's OpenAI-compatible API with a Spanway virtual key. The provider credential stays on the gateway, and every request is authenticated, rate limited, logged and costed in the same way as any other provider.
The gateway translates requests and responses for OCI natively, so provider specific parameters and errors are mapped to the OpenAI format for you.
Supported endpoints
The gateway's endpoint support matrix lists the following endpoints for OCI. Each link explains the request shape and the gateway features that apply to that endpoint.
- OpenAI Chat Completions API (
/chat/completions) - Anthropic Messages API (
/messages) - OpenAI Responses API (
/responses) - A2A (Agent-to-Agent) protocol for agent communication (
/a2a) - Google Interactions API (
/interactions)
Model types
The bundled price map lists 44 OCI models across these modes: Chat, Embedding. The mode decides which gateway endpoint a model is meant for, and it is also used by the gateway's health checks to send the right kind of test request.
Credentials
The OCI integration does not read a provider specific environment variable. Set api_base, and api_key when the server requires one, directly in spanway_params. Use the os.environ/ prefix to pull those values from the environment or from a configured secret manager.
Register a model on the gateway
Add an entry to model_list in config.yaml. The model_name is the public name your applications send, and spanway_params.model tells the gateway which provider and upstream model to call.
model_list:
- model_name: meta.llama-4-scout-17b-16e-instruct
spanway_params:
model: oci/meta.llama-4-scout-17b-16e-instruct
Start the gateway with this file:
spanway --config config.yaml
Spanway is in private preview. The container images and Helm charts will be published soon. To request access, write to sales@spanway.ai, and preview customers receive download instructions in their onboarding pack.
To add the model without a restart, call POST /model/new with the same model_name and spanway_params, or use the Models + Endpoints page in the Admin UI. See model management for details.
Call the model through the gateway
Send requests to the gateway's /v1/chat/completions endpoint with a virtual key. The gateway maps the public model name to the OCI deployment, translates the request, and returns the response in the OpenAI format.
curl -X POST http://localhost:4000/v1/chat/completions \
-H "Authorization: Bearer $SPANWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meta.llama-4-scout-17b-16e-instruct",
"messages": [{"role": "user", "content": "Summarize what an AI gateway does in two sentences."}]
}'
The same request works from any OpenAI SDK by setting the base URL to http://localhost:4000 and the API key to a Spanway virtual key. Create keys with POST /key/generate as described in virtual keys.
Models and pricing
The table lists every OCI model in the gateway's bundled price map. Prices are shown in US dollars per 1 million tokens, computed from the per-token values the gateway uses for spend tracking. Context window sizes are the provider limits recorded in the same file. Capabilities are the supports_* flags set for each model.
Prices come from the price map bundled with this Spanway build. They are used to calculate the spend recorded for each request, key, team and user. Your negotiated rates may differ, and you can override them per deployment with custom pricing.
Model (model value) | Mode | Max input tokens | Max output tokens | Input per 1M tokens | Output per 1M tokens | Other pricing | Capabilities |
|---|---|---|---|---|---|---|---|
oci/cohere.command-a-03-2025 | Chat | 256,000 | 4,000 | $1.56 | $1.56 | tools | |
oci/cohere.command-a-reasoning | Chat | 256,000 | 8,192 | $1.56 | $1.56 | ||
oci/cohere.command-a-reasoning-08-2025 | Chat | 256,000 | 4,000 | $1.56 | $1.56 | tools | |
oci/cohere.command-a-translate-08-2025 | Chat | 256,000 | 4,000 | $0.09 | $0.09 | ||
oci/cohere.command-a-vision | Chat | 256,000 | 8,192 | $1.56 | $1.56 | tools, vision | |
oci/cohere.command-a-vision-07-2025 | Chat | 128,000 | 4,000 | $1.56 | $1.56 | tools, vision | |
oci/cohere.command-latest | Chat | 128,000 | 4,000 | $1.56 | $1.56 | tools | |
oci/cohere.command-plus-latest | Chat | 128,000 | 4,000 | $1.56 | $1.56 | tools | |
oci/cohere.command-r-08-2024 | Chat | 128,000 | 4,000 | $0.15 | $0.15 | tools | |
oci/cohere.command-r-plus-08-2024 | Chat | 128,000 | 4,000 | $1.56 | $1.56 | tools | |
oci/cohere.embed-english-image-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-english-light-image-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-english-light-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-english-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-multilingual-image-v3.0 | Embedding | 512 | $0.1 | vision | |||
oci/cohere.embed-multilingual-light-image-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-multilingual-light-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-multilingual-v3.0 | Embedding | 512 | $0.1 | $0 | |||
oci/cohere.embed-v4.0 | Embedding | 128,000 | $0.12 | $0 | |||
oci/google.gemini-2.5-flash | Chat | 1,048,576 | 65,536 | $0.15 | $0.6 | tools, vision, reasoning, structured output, PDF input, audio in, video in | |
oci/google.gemini-2.5-flash-lite | Chat | 1,048,576 | 65,536 | $0.075 | $0.3 | tools, vision, structured output, PDF input, audio in, video in | |
oci/google.gemini-2.5-pro | Chat | 1,048,576 | 65,536 | $1.25 | $10.00 | tools, vision, reasoning, structured output, PDF input, audio in, video in | |
oci/meta.llama-3.1-8b-instruct | Chat | 128,000 | 4,000 | $0.72 | $0.72 | tools | |
oci/meta.llama-3.1-70b-instruct | Chat | 128,000 | 4,000 | $0.72 | $0.72 | tools | |
oci/meta.llama-3.1-405b-instruct | Chat | 128,000 | 4,000 | $10.68 | $10.68 | tools | |
oci/meta.llama-3.2-11b-vision-instruct | Chat | 128,000 | 4,000 | $2.00 | $2.00 | tools, vision | |
oci/meta.llama-3.2-90b-vision-instruct | Chat | 128,000 | 4,000 | $2.00 | $2.00 | tools, vision | |
oci/meta.llama-3.3-70b-instruct | Chat | 128,000 | 4,000 | $0.72 | $0.72 | tools | |
oci/meta.llama-3.3-70b-instruct-fp8-dynamic | Chat | 128,000 | 4,000 | $0.72 | $0.72 | tools | |
oci/meta.llama-4-maverick-17b-128e-instruct-fp8 | Chat | 1,048,576 | 8,192 | $0.72 | $0.72 | tools, vision | |
oci/meta.llama-4-scout-17b-16e-instruct | Chat | 10,485,760 | 8,192 | $0.72 | $0.72 | tools | |
oci/openai.gpt-5 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, structured output | |
oci/openai.gpt-5-mini | Chat | 272,000 | 128,000 | $0.25 | $2.00 | tools, vision, reasoning, structured output | |
oci/openai.gpt-5-nano | Chat | 272,000 | 128,000 | $0.05 | $0.4 | tools, vision, reasoning, structured output | |
oci/xai.grok-3 | Chat | 131,072 | 131,072 | $3.00 | $15.00 | tools | |
oci/xai.grok-3-fast | Chat | 131,072 | 131,072 | $5.00 | $25.00 | tools | |
oci/xai.grok-3-mini | Chat | 131,072 | 131,072 | $0.3 | $0.5 | tools | |
oci/xai.grok-3-mini-fast | Chat | 131,072 | 131,072 | $0.6 | $4.00 | tools | |
oci/xai.grok-4 | Chat | 128,000 | 128,000 | $3.00 | $15.00 | tools | |
oci/xai.grok-4-fast | Chat | 131,072 | 131,072 | $5.00 | $25.00 | tools | |
oci/xai.grok-4.1-fast | Chat | 131,072 | 131,072 | $5.00 | $25.00 | tools | |
oci/xai.grok-4.20 | Chat | 131,072 | 131,072 | $3.00 | $15.00 | tools | |
oci/xai.grok-4.20-multi-agent | Chat | 131,072 | 131,072 | $3.00 | $15.00 | tools | |
oci/xai.grok-code-fast-1 | Chat | 131,072 | 131,072 | $5.00 | $25.00 | tools |