
Do you have a program that already talks directly to an AI company and want to move it to the MozOut gateway? In most cases the change is small. This is the order we recommend.
Step by step
|
|
|
|
|
What may need more care
| If your program uses | What to do |
| Streaming | Ask for stream_options with include_usage. Without it, the whole credit reservation stays charged. |
| Requests without max_tokens | Always set max_tokens. Without it, we reserve 4096 output tokens, and with a low balance that gives 402. |
| Images through the OpenAI SDK | Images, videos and voice use POST /v1/media/generations, with plain HTTP requests. |
| Tools (function calling) | They work in chat, but check that the chosen model accepts them. See sending tools in a chat request. |
| Error handling | Errors carry code and message inside error. Add 402 insufficient_credits and 429 rate_limited, which comes with the Retry-After header. |
| Make the change through environment variables (address, key and model), not in the code. That way you can go back in a minute if you need to. See how to change models without touching your code. |
|
Ready to move? Create the key and open All in One AI. See All in One AI |
|
SEE ALSO |
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 |











