OpenAI-Compatible Proxy

Send text, images, and audio through one proxy endpoint.

`oapix` forwards chat completions to your configured upstream, accepts image and audio inputs, converts audio URLs to mp3, and exposes media output as temporary URLs.

Endpoint

POST /v1/chat/completions

Use the proxy exactly like a chat completions API, then add multimodal content parts as needed.

Image Input

Provide `image_url.url` as an `https` URL, a data URL, or raw base64.

Audio Input

Provide `input_audio.data` plus `format`, or use `input_audio.url` and let the proxy convert it.

Quick Start

Example request

{
  "model": "gpt-4.1-mini",
  "messages": [
    {
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        {
          "type": "image_url",
          "image_url": { "url": "https://example.com/photo.jpg" }
        }
      ]
    }
  ],
  "audio": {
    "voice": "alloy",
    "format": "mp3"
  }
}