Skip to content

Migrate to CHUA ONE

Move an OpenAI, Anthropic, or OpenRouter integration to CHUA ONE by changing authentication, the base URL, exact model IDs, and unsupported router-specific fields.

What stays and what changes

OpenAI
For the official SDK, set base_url/baseURL to https://chuaone.si/v1 and use a CHUA ONE project key. Chat Completions and Responses are separate routes; use only their documented CHUA ONE request fields. Replace the model with an exact slug returned by GET /v1/models.
Anthropic
Send Messages to https://chuaone.si/v1/messages with x-api-key or Authorization Bearer plus anthropic-version: 2023-06-01. Use a published Claude slug such as claude-haiku-5.5. CHUA ONE accepts only the Messages fields listed in its reference.
OpenRouter
Change the OpenAI-compatible base URL from https://openrouter.ai/api/v1 to https://chuaone.si/v1 and replace provider/model IDs with CHUA ONE's exact published slug. Remove OpenRouter routing fields such as models, provider, route, plugins, and transforms; CHUA ONE does not promise those extensions or cross-model fallback.

Protocol and model mapping

/v1/chat/completions
OpenAI-compatible message requests. An SDK accepting a custom OpenAI base URL can use this route, but compatibility is limited to documented fields.
/v1/responses
Responses-compatible input, tools, output items, and SSE events for supported fields. Use this route for the Codex configuration above.
/v1/messages
Anthropic-compatible Messages request, content blocks, tools, and streaming events for supported fields. Use it for Claude models and Claude Code.

A similar model name does not establish protocol support. Select the route from the client protocol, then select an exact model that the same project key can see and that reports the required capabilities.

Migration checklist

  1. Create a separate project key, budget, model allowlist, and request limit for the migrated application.
  2. Call GET /v1/models and map every old model ID to one exact CHUA ONE slug. Do not infer IDs by removing a provider prefix.
  3. Remove undocumented provider, routing, plugin, preset, file, or hosted-tool fields before the first request.
  4. Add a unique Idempotency-Key, save X-CHUA-Request-ID, and implement the documented retry rules.
  5. Validate request and response parsing in a non-production project, then compare recorded usage and CHUA ONE pricing before moving traffic.

Related guides

Authentication · Chat Completions · Responses · Messages · Errors and retries