AI Model Gateway
Connect through Chat Completions, Responses, or Anthropic Messages using the Base URL, private key, and permitted model shown in your dashboard.
Open dashboardOn this page
- Endpoint
- Authentication
- Private gateway API key
- Protocol
- HTTPS / JSON
Workflow
-
Create an API key
Create or select a key in AI Model Gateway. Allow the models you need and store the key in the ARCVENZA_API_KEY environment variable.
-
Choose the API mode
OpenAI-compatible clients use /api/v1 as the Base URL and append /chat/completions or /responses. Claude Code uses /api as its Base URL and appends /v1/messages.
-
Select a permitted model
Replace MODEL_ID in these examples with an exact model identifier permitted for the selected key. The live dashboard model catalog is authoritative.
Parameters
Examples
Chat Completions
curl 'https://www.arcvenza.com/api/v1/chat/completions' \
-H "Authorization: Bearer $ARCVENZA_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"model": "MODEL_ID",
"messages": [{"role":"user","content":"Hello"}]
}'Responses
curl 'https://www.arcvenza.com/api/v1/responses' \
-H "Authorization: Bearer $ARCVENZA_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"model": "MODEL_ID",
"input": "Hello"
}'Anthropic Messages
curl 'https://www.arcvenza.com/api/v1/messages' \
-H "x-api-key: $ARCVENZA_API_KEY" \
-H 'anthropic-version: 2023-06-01' \
-H 'Content-Type: application/json' \
--data '{
"model": "MODEL_ID",
"max_tokens": 1024,
"messages": [{"role":"user","content":"Hello"}]
}'Troubleshooting and notes
- GET /api/v1/models returns models accessible to the supplied key. Model names must match exactly.
- A 401 response can indicate an invalid key. A 429 response can indicate an RPM or TPM limit; reduce the request rate and inspect the returned error and headers.
- The dashboard integration example follows the selected mode and model. Keep gateway keys in server-side environment variables.
Import to CC Switch
Import your account configuration from the dashboard. The import includes your selected key, model and the correct endpoint for Claude Code or Codex.
- Install CC Switch 4.0.10 or newer on your computer.
- Open AI Model Gateway, select an active key and a permitted model, then choose Import to CC Switch and the target application.
- Review the provider in CC Switch and confirm the import. The switch-after-import option starts off; decide whether to activate it in CC Switch.
AI integration prompt
Read the Arcvenza Markdown at https://www.arcvenza.com/docs/markdown/guides/ai-gateway.md and use https://www.arcvenza.com/llms.txt to find related guides. Cite https://www.arcvenza.com/docs/guides/ai-gateway for this page. Ask what I want to integrate, then identify the correct product, endpoint and authentication method. Confirm the required access before sending a live request through API Playground, and show how to supply credentials through environment variables. Indicate any account, plan or usage requirements and flag anything the docs do not establish.