An OpenAI and Anthropic compatible AI gateway: the formats and addresses that work

All in One AIUsing the AI API·· 25 views· 3 min read

All in One AI is an AI gateway that speaks the formats most programs already know. Everything lives at the same address, api.mozout.com/v1, and the key goes in the Authorization: Bearer header. This table shows what works on each path.

The gateway paths

Path Format What for
POST /v1/chat/completions OpenAI Chat Completions The OpenAI SDK, n8n and apps that accept an OpenAI-compatible address
POST /v1/responses OpenAI Responses Codex CLI and programs that use this format. See the Responses format
POST /v1/messages Anthropic Messages Claude Code and apps made for Claude. See the Messages format
GET /v1/models Model list in the OpenAI format Picking the model id and seeing the price, with the type and q filters
POST /v1/media/generations The gateway’s own Images, videos and voice. The OpenAI SDK does not have these operations: you use plain HTTP requests.

Moving a program to the gateway

In a program that already uses one of these formats, three things change: the base URL becomes api.mozout.com/v1, the key becomes your prod_ or sandbox_ key, and the model becomes an id from our catalog, always with a slash. With the OpenAI SDK, in Python:

import os
from openai import OpenAI

client = OpenAI(base_url="api.mozout.com/v1", api_key=os.environ["MOZOUT_API_KEY"])
r = client.chat.completions.create(
model="deepseek-ai/deepseek-v4-flash",
messages=[{"role": "user", "content": "Hello! Answer in one sentence."}],
max_tokens=100,
)
print(r.choices[0].message.content)

In Claude Code the address goes without /v1. Each tool has its own article: see which coding tool to use.

What is the same and what is ours

Errors come in our API format, with code, message and correlation_id inside error. The OpenAI SDK reads the message from error.message and raises the exception with the HTTP status, as it would anywhere else. There are two codes you will meet here: 402 insufficient_credits, when the balance is not enough, and 409 agent_paused, for agents. See the AI API errors.

A program that asks for an "OpenAI-compatible endpoint" or a "custom base URL" nearly always works. See any app that accepts an OpenAI-compatible address.

Want to see the models you can use? Open All in One AI.

See All in One AI

SEE ALSO

Using the OpenAI SDK

Apps made for Claude

What an AI gateway is

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.