Model provider reference

Complete configuration reference for connecting OpenAI, Anthropic, Gemini, Bedrock, Vertex AI, Azure, Codex, ChatGPT, and custom gateways in Service.

Use this reference for provider-specific setup after choosing your model workflow.

Model providers

  1. Open Models → Add model. An empty workspace opens the connection form directly. If providers already exist, select one or choose Connect a new provider.
  2. Choose the provider type and enter its connection details, placing API keys in the dedicated credential fields.
  3. Save the provider, then continue to Add a model. To manage the account later, open Workspace settings → Providers.

Console model provider catalog

The provider type determines which calling APIs a model may use. The first API in each row is the default:

Provider typeModel APIs
openai, azure_openaiopenai.responses, openai.chat_completions
anthropicanthropic.messages
google_gemini, google_vertexgoogle.generate_content
aws_bedrockbedrock.converse, bedrock_mantle.responses, bedrock_mantle.chat_completions
openrouteropenrouter.chat_completions
fireworks, together, cerebras, sambanova, vercel, xaiopenai.chat_completions
ollamaollama.chat_completions
alibaba_model_studio, deepseek, moonshot, minimax, zhipuopenai.chat_completions
cloudflare_ai_gatewayopenai.chat_completions
typesafetypesafe.system_one
openai_chatgptopenai.responses; authorize as described below

API clients create accounts at /api/v1/model-providers. Read GET /api/v1/provider-types/model for the deployment's configuration, credential, and request-setting schemas. Most API-key types accept credential: {"api_key": "..."} and an optional config.base_url. Provider operations covers saving, testing, and rotating credentials.

For these Chat Completions providers, keep the full upstream model ID and use the default endpoint unless your account needs an override:

Provider typeDefault endpointCatalog channel
fireworkshttps://api.fireworks.ai/inference/v1fireworks-ai
togetherhttps://api.together.xyz/v1togetherai
cerebrashttps://api.cerebras.ai/v1cerebras
sambanovahttps://api.sambanova.ai/v1sambanova
vercelhttps://ai-gateway.vercel.sh/v1vercel
xaihttps://api.x.ai/v1xai, x-ai

For example, Fireworks uses IDs such as accounts/fireworks/models/llama-v3p3-70b-instruct, Together uses meta-llama/Llama-3.3-70B-Instruct-Turbo, and Vercel uses gateway IDs such as anthropic/claude-sonnet-4.6. Choose an ID available to your account. These integrations use HTTP Chat Completions, without Responses API or xAI native server-side search tools. All except Vercel offer a connection-only test; Vercel's public model list cannot validate credentials, so verify access with a model request.

For Google Vertex AI, match the credential to your access method:

  • API key: use this for an API-key gateway or Vertex Express Mode. Leave Project ID and Location empty. For a gateway, set Base URL to its origin without /v1beta1 or a model path. The SDK sends x-goog-api-key to /v1beta1/publishers/google/models/....
  • Service account: enter the flat service-account credential object and the required Project ID and Location. Switching credential types clears the previous form draft.

For Cloudflare AI Gateway, set account_id to the 32-character Cloudflare account ID and save its API token as api_key. The token needs Account → Workers AI → Read permission. Configure default-alias BYOK credentials or unified billing in Cloudflare. Set gateway_id to choose a gateway, or omit it for the default gateway's third-party models. Use full IDs such as openai/gpt-5.4 or anthropic/claude-sonnet-4.6; both use openai.chat_completions. A custom base_url replaces the account-derived endpoint and must end in /ai, without /v1, a method path, query, or fragment. Test with a model request: this integration has no connection-only probe, native server tools, or separate Workers AI catalog. See Cloudflare's unified REST API.

For a gateway that routes or bills by header, add up to 32 extra request headers to the provider. Values are encrypted; reads expose only header_names. In a provider PATCH, a value sets that name, null removes it, and omission keeps it. Transport, authentication, and protocol header names are reserved. Use these encrypted headers for secrets; request-level headers are readable configuration.

ChatGPT subscription provider

Use openai_chatgpt to authorize workspace-wide ChatGPT plan usage stored on the provider resource.

  1. In Workspace settings → Providers, add a ChatGPT provider. The default flow dynamically registers a public OAuth client and needs no static credential.
  2. Choose Continue with ChatGPT and open the authorization link. Grant ChatGPT plan usage consent during sign-in so the connection can invoke models.
  3. Copy the entire callback URL from the browser address bar into Complete callback URL, then choose Complete sign-in. Copy it even if the loopback page cannot be reached. Keep the URL private.
  4. Add a model using openai.responses and an account model slug. Select an account-visible choice or enter an ID manually, then send a test message through an agent.

The Service can run remotely: it validates and exchanges the pasted callback without fetching that URL or requiring the browser to reach the server's loopback listener. Invalid callback input can be corrected and retried. Once code exchange starts, a failed sign-in needs a new authorization attempt.

For an API integration, use these operations in order:

TaskRequest under /api/v1/model-providers/{id}What to retain or inspect
Start sign-inPOST /authorize with {}Open authorization_url; retain attempt_id
Finish sign-inPOST /authorization/callback with attempt_id and the full callback_urlAuthorization state
Check statusGET /authorizationCredential-free state and account metadata
List account modelsGET /modelsAccount-visible slug and display_name (inference access depends on plan entitlement)
DisconnectDELETE /authorizationLocal tokens are cleared; manage remote access in ChatGPT settings

Returning login reuses registration metadata. Use another ChatGPT account, or POST /authorize with {"new_registration": true}, omits retained account hints. It creates a new dynamic registration when no client is configured and retains an explicitly configured client. Codex credentials cannot replace this authorization.

This provider has a fixed endpoint and stores tokens and pending authorization in encrypted provider-owned state. Its requests always use store: false and streaming; a non-streaming caller receives the collected stream. Temperature, Top P, and output-token limits are omitted. Other settings and tools follow the official ChatGPT profile, so API-key model behavior does not carry over automatically.

Self-hosted callback

Use a public client with http://127.0.0.1:<port>/auth/callback. The provider editor's OAuth client ID and loopback callback configuration override deployment defaults; blank fields inherit them. Save changes before restarting sign-in.

Terminal
export A13N_PROVIDERS__CHATGPT_REDIRECT_URI="http://127.0.0.1:1456/auth/callback"
# Optional: reuse an issued public-client registration.
export A13N_PROVIDERS__CHATGPT_CLIENT_ID="issued-public-client"

If upgrading from a confidential client or hosted HTTPS callback, clear the old credential, configure a public loopback flow, and authorize again. Client secrets and the former hosted callback route are unsupported. Existing public-client tokens remain readable; restart pending sign-ins after an upgrade. Changing client ID avoids another client's retained account hints.

The official provider handles expiry and 401 refresh. Service saves complete replacement credentials and rejects stale saves after disconnect or replacement. Multiple Workers can still race to spend a refresh token: monitor refresh failures under concurrent subscription use and reauthorize when needed. An active provider can retain cached tokens after local disconnect. Inference, refresh, and discovery use Service's model transport limits; authorization-code exchange uses the official fixed-endpoint client. Model authentication explains the shared integration.

On this page