# Multimodal endpoints, Realtime, and cross-protocol translation

Source: https://cch-plus.com/en/docs/providers/multimodal-protocols

> Learn about CCHP's pairwise cross-protocol translation across all endpoint families, OpenAI Responses WebSocket mode, Realtime voice and SIP, async image/video/3D tasks and callbacks, Message Batches, Anthropic Files, and Azure/AWS upstream credentials.

Beyond standard text chat, the CCHP gateway provides **pairwise cross-protocol translation** across all protocol families, **OpenAI Responses WebSocket mode**, **Realtime voice and video**, **image/audio/video/3D generation with async tasks**, **batch and file endpoints**, and native cloud authentication for Azure and AWS.

## Endpoint protocol picker and pairwise cross-protocol translation (since v1.0.15)

Open any provider in **Org management** → **Provider Management** and click **Add endpoint** (or edit an existing endpoint) to configure upstream capabilities with the compact endpoint picker:

![Provider endpoint picker: chat and image quick presets, full protocol family selection, and upstream model discovery](https://cch-plus.com/en/docs/providers/multimodal-01-endpoint-picker.webp)

- **Quick presets and expand on demand** (since v1.0.15): Common chat presets (OpenAI Responses, OpenAI Chat Completions, Anthropic Messages, Gemini generateContent / Interactions) and image presets sit at the top, with one click to expand every protocol family. After entering a Base URL and key, you can probe upstream models to help identify supported protocols.
- **Pairwise translation across all protocol families** (since v1.0.15): The gateway translates bidirectionally between OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini `generateContent` (both `/v1` and `/v1beta` (since v1.0.13)), Gemini Interactions (since v1.0.13), and xAI, while preferring same-protocol passthrough and preserving consistent cross-protocol prompt cache ordering (since v1.0.14).
- **Automatic compatibility normalization**: During cross-protocol re-encoding, the gateway pairs tool calls with tool results, maps oversized tool call IDs and invalid function names, handles mid-conversation `system` messages, enforces Anthropic sampling and thinking-budget constraints, and normalizes structured-output `strict` schemas. Every automatic adjustment is recorded in the [request decision chain](https://cch-plus.com/en/docs/guide/request-logs#trace).

## OpenAI Responses WebSocket mode (since v1.0.13)

The gateway implements OpenAI Responses over WebSocket (`wss://<gateway-host>/v1/responses`), letting Codex CLI (with `supports_websockets = true`) and official OpenAI SDKs stream multi-turn conversations over a single persistent connection:

- **Client events**: Supports `response.create` (including concurrent `stream_id` channels—up to 16 in-flight responses and 32 named channels per connection—`previous_response_id` continuation and branching, and `generate: false` warmup), `response.steer` (append input to an active turn), and `response.interrupt` (cancel the active turn).
- **Upstream connection mode (`executor.responses_websocket`)**: On a provider, provider key, or endpoint, choose **Auto** (default: prefers upstream WebSocket, seamlessly falls back to `POST /v1/responses` if the upstream does not support WebSocket, and remembers that result in Dragonfly for 1 hour), **WebSocket only**, or **HTTP only**.
- **Managed state**: Responses with `store=true` are persisted in gateway conversation history and resume seamlessly across reconnects or when switching back to HTTP `POST /v1/responses`.

## Realtime sessions and multimodal endpoints (since v1.0.3)

CCHP brings unified gateway authentication, limits, routing, and media-aware billing to realtime and multimodal workloads:

| Capability | Supported endpoints and protocol features |
| - | - |
| **Realtime voice** (since v1.0.3) | Supports WebSocket, WebRTC, and SIP ingress; routes sessions to their owning gateway replica across multi-replica deployments, with audio caching and duration-based billing (`ffprobe` (since v1.0.1)) |
| **Image generation and editing** (since v1.0.3) | Covers OpenAI Images, JSON-format image editing (since v1.0.15), Gemini / Google Imagen, Seedream, Flux, and more, supporting both synchronous responses and async tasks |
| **Speech recognition (ASR) and synthesis (TTS)** (since v1.0.11) | Supports OpenAI Audio, Google streaming TTS, and additional ASR/TTS upstreams (since v1.0.13), billed automatically by audio duration or character count |
| **Embeddings, rerank, and moderation** (since v1.0.3) | Unified passthrough and billing for Embeddings, Rerank, and Moderations endpoints |
| **Video and 3D generation** (since v1.0.3) | Supports major async video and 3D generation upstreams (since v1.0.13) with unified task state tracking, retries, and persisted result files |

## Async media tasks, result downloads, and callbacks

Long-running image, video, audio, and 3D generation calls execute as async tasks and appear in **Task History** (`/app/tasks`) in the sidebar (members see their own tasks; admins see tasks within their managed scope):

![Task History: async image, video, and 3D task list, status filters, and previews](https://cch-plus.com/en/docs/providers/multimodal-02-async-tasks.webp)

- **Result storage and retention**: Generated artifacts are saved to the platform's [Task result storage](https://cch-plus.com/en/docs/installation/ops-and-storage#task-results) (local volume or S3-compatible storage) with inline previews (including 3D models and audio waveforms), per-attempt upstream details, and raw file downloads.
- **Synchronous wait and cross-format webhooks** (since v1.0.9): Callers can pass the `X-CCHP-Wait` header to have the gateway wait within a bounded window and return the finished result inline, or configure a webhook URL to receive signed completion/failure callbacks (unified across video and 3D formats).
- **Built-in Task results API docs**: Open **Documentation** → **Task results** (`/app/docs/task-results`) in the console for ready-to-run status polling and file download examples pre-populated with your site's gateway URL:

![Task results API docs: task ID sources, status and download endpoints, and request examples](https://cch-plus.com/en/docs/providers/multimodal-03-task-results-api.webp)

## Batches, files, and Codex remote compaction (since v1.0.11)

For long-running agents and bulk inference, CCHP natively supports these extended endpoints:

- **Claude Code Message Batches**: Full proxying for Anthropic Message Batches creation, status checks, cancellation, and result retrieval, billed at batch pricing tiers.
- **Anthropic Files & Google Resumable Upload**: Large file uploads, references, and lifecycle management, including the Google Resumable Upload protocol.
- **Codex remote compaction v2 and model discovery** (since v1.0.15): Supports Codex remote context compaction and `api_key_model_discovery`, allowing Codex clients to discover available models and context capabilities directly from the gateway.

## Cloud upstream authentication (Azure and AWS) (since v1.0.15)

Alongside standard API keys, provider and provider key configuration natively supports public cloud LLM authentication:

- **Microsoft Azure AI / Azure OpenAI**: Supports static **API Key** credentials as well as **Microsoft Entra ID** (service principal / managed identity automatic token refresh).
- **Amazon Bedrock (AWS SigV4)**: Configure an Access Key, Secret Key (plus optional Session Token), and target Region; the gateway signs outbound requests with AWS Signature Version 4 automatically with no client-side or external signing proxy required.

## Frequently asked questions

### Do I need extra configuration when a client sends OpenAI Chat format to an upstream that only supports Anthropic Messages?

No. As long as the provider endpoint declares the upstream protocol it supports (such as Anthropic Messages) and the model is in the whitelist, the gateway automatically translates requests and streaming events in both directions when routing selects that candidate, while still preferring same-protocol candidates first.

### Why can't I download result files from a completed async task after some time?

Task result files follow the retention period configured in [Task result storage](https://cch-plus.com/en/docs/installation/ops-and-storage#task-results) and are removed automatically by the `task_result_retention` cron job once expired. Download or copy generated media you need to archive long-term before retention elapses.

## Related pages

- [Providers and provider groups](https://cch-plus.com/en/docs/providers)
- [Provider endpoints](https://cch-plus.com/en/docs/providers/endpoints)
- [Group routing strategies](https://cch-plus.com/en/docs/providers/routing-strategy)
- [Storage, observability, and platform operations](https://cch-plus.com/en/docs/installation/ops-and-storage)
