How do I get started?
Get an API key from your dashboard, then choose where to use it.
Build websites
Set up chatA headline, album cover and vinyl record appear on Needle’s record shop website.
For beginners
Install a desktop chat app for Claude and ChatGPT
Use Cherry Studio to create websites and presentations, ask questions and work with documents.
For advanced users and developers
Connect an AI agent to your project
Ask Claude Code or Codex to edit a project file and run your tests.
Connect your app to AI
Send a request from your own app. Choose a Python, JavaScript or cURL example.
Create an image with the API
Run a Python example to generate an image from a description or edit one of your own.
Reference
Install a desktop chat app for Claude and ChatGPT
Use Cherry Studio to create websites and presentations, ask questions and work with documents. Try attaching a PDF and asking for the main points. All you need to use Claude from Anthropic and GPT from OpenAI is an internet connection and one ModelProxy key.

The Slide Designer assistant replied with an eight-slide PowerPoint file.
-
Install the chat app
Choose your operating system and download Cherry Studio.
The first download works for most PCs. Open the downloaded file and follow the instructions. Once installed, you’ll find Cherry Studio in the Start menu.
Open the Apple menu and choose About This Mac to check which chip you have. Open the downloaded file, drag Cherry Studio into Applications, then open the app.
These packages are for Intel and AMD PCs. For Linux Mint, choose the Ubuntu download. Open the file in your software manager and install Cherry Studio.
AppImage and ARM downloads
In the AppImage file’s properties, allow it to run as a program. Then double-click the file.
Cherry Studio 2.2.3Other Cherry Studio downloads -
Connect the app to ModelProxy
Click the gear to open Settings, then select Model Provider. Click + Add Provider and fill in the three fields below.
- Provider name
- ModelProxy
- API Key
- Open API keys, create a key and paste it here. You can also use an existing key.
- OpenAI · Base URL
https://api.modelproxy.org
Click Add, then turn on the switch next to ModelProxy.
-
Choose a model and start chatting
Click Sync models. Add a GPT model, a Claude model or both from the list.
Start a new chat and select a model at the top of the window. Try asking, “Help me write an email asking a colleague to move our meeting to Friday.”
My model isn’t listed
Check the OpenAI field. It should contain
https://api.modelproxy.org. The app adds/v1/chat/completionsautomatically.To add a model manually, click + next to the sync button. In the Model ID field, try
gpt-5.6-lunafor GPT orclaude-fable-5for Claude.
Connect an AI agent to your project
Choose the program you use to work with files and code.
Checked against the developers’ guides on
Connect Claude Code
Claude Code connects to ModelProxy through the Anthropic Messages API. Installation guide
-
Set the address and key
Replace
mp-YOUR-KEYwith your key from API keys, then run both commands in your terminal. For Claude Code, the address ends in.org.export ANTHROPIC_BASE_URL="https://api.modelproxy.org" export ANTHROPIC_AUTH_TOKEN='mp-YOUR-KEY'Windows commands
$env:ANTHROPIC_BASE_URL = "https://api.modelproxy.org" $env:ANTHROPIC_AUTH_TOKEN = 'mp-YOUR-KEY' -
Start Claude Code
Start Claude in the same terminal and send “Hello” in the chat. To use another Claude model, copy its exact ID from the model catalog.
claude --model claude-fable-5
/status in the Claude chat. Check that Anthropic base URL shows https://api.modelproxy.org and Auth token shows ANTHROPIC_AUTH_TOKEN.Connect Codex CLI
These settings connect Codex in your terminal to ModelProxy through the Responses API. Installation guide
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Open the configuration file
Open
~/.codex/config.tomlin your home directory. If it doesn’t exist, create it and any missing folders. If you already have a config, updatemodelandmodel_providerat the top, before the first section in square brackets. Then add or update the[model_providers.modelproxy]section.model = "gpt-5.6-luna" model_provider = "modelproxy" [model_providers.modelproxy] name = "ModelProxy" base_url = "https://api.modelproxy.org/v1" env_key = "MODELPROXY_API_KEY" wire_api = "responses" -
Test it in your project
In the same terminal, open your project’s Git directory and run the command.
codex exec "Reply with one word: hello"
codex.Connect Kilo Code
Open the Kilo Code extension in VS Code. If you use the terminal, see the CLI example below. Installation guide
-
Add a provider
Click the gear in Kilo Code, open
Providersand selectCustom providerat the bottom of the list.- Provider ID
modelproxy- Display name
- ModelProxy
- Provider API
OpenAI Compatible- Base URL
https://api.modelproxy.org/v1- API key
- Your key from API keys
-
Add a model
In
Models, selectgpt-5.6-luna. If the list is empty, clickFetch modelsor add the model manually using the same ID. ClickSubmit. -
Open the Kilo chat
Type
/models, select your model under ModelProxy and send “Hello.”
I only use Kilo in the terminal
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Open the configuration file
Open
~/.config/kilo/kilo.jsoncin your home directory. If it doesn’t exist, create it and any missing folders. If you already have a config, add the provider settings to it.{ "model": "openai-compatible/gpt-5.6-luna", "provider": { "openai-compatible": { "options": { "apiKey": "{env:MODELPROXY_API_KEY}", "baseURL": "https://api.modelproxy.org/v1" }, "models": { "gpt-5.6-luna": { "name": "gpt-5.6-luna", "tool_call": true } } } } } -
Send your first message
Run this command in the same terminal.
kilo run --model openai-compatible/gpt-5.6-luna "Reply with one word: hello"
Connect Hermes Agent
You can set the address, key and model directly in Hermes. Installation guide
-
Open the model picker
Run this command in your terminal, then select
Custom endpoint.hermes model -
Enter the connection details
Enter
https://api.modelproxy.org/v1and your key from API keys. If prompted for the API format, chooseChat Completions. Selectgpt-5.6-lunaor type its model ID. -
Test the connection
This sends one message and prints the reply in your terminal.
hermes chat --oneshot -q "Reply with one word: hello"
Connect Pi
Add ModelProxy to Pi’s list of providers to make it available in the model picker. Installation guide
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Open the configuration file
Open
~/.pi/agent/models.jsonin your home directory. If it doesn’t exist, create it and any missing folders. If you already have aproviderssection, addmodelproxyto it. Keep the$inapiKeyso Pi reads the key from your terminal environment.{ "providers": { "modelproxy": { "baseUrl": "https://api.modelproxy.org/v1", "api": "openai-completions", "apiKey": "$MODELPROXY_API_KEY", "models": [ { "id": "gpt-5.6-luna" } ] } } } -
Test the connection
Run this command in the same terminal. Pi prints a single reply.
pi --model modelproxy/gpt-5.6-luna --no-session -p "Reply with one word: hello"
Connect oh-my-pi (omp)
oh-my-pi reads its model settings from a YAML file. Installation guide
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Open the configuration file
Open
~/.omp/agent/models.ymlin your home directory. If it doesn’t exist, create it and any missing folders. If you already have aproviderssection, addmodelproxyto it, keeping the indentation shown below. InapiKey, enter the variable name exactly as shown.providers: modelproxy: baseUrl: https://api.modelproxy.org/v1 api: openai-completions apiKey: MODELPROXY_API_KEY models: - id: gpt-5.6-luna -
Test the connection
Run this command in the same terminal. You should see a greeting.
omp -p --model modelproxy/gpt-5.6-luna "Reply with one word: hello"
Connect OpenClaw
Set up ModelProxy on the computer where OpenClaw runs. Installation guide
-
Open model settings
If OpenClaw is already configured, run the first command. For a new installation, open the setup wizard.
openclaw configure --section modelCommand for a new installation
openclaw onboard --classic -
Select Custom Provider
If the option isn’t visible, open
More…. Enterhttps://api.modelproxy.org/v1, selectOpenAI-compatible(Chat Completions) and paste your key from API keys. Usemodelproxyfor the endpoint ID andgpt-5.6-lunafor the model. Save the settings. -
Test with one message
This command sends a message directly to the selected model. You can run the check from your terminal.
openclaw agent exec "Reply with one word: hello" --model modelproxy/gpt-5.6-luna
Connect your app to AI
Try sending a message from your terminal. For an app, choose the Python or JavaScript example.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Send a message
Copy and run the command for your operating system.
curl -sS https://api.modelproxy.org/v1/chat/completions \ -H "Authorization: Bearer $MODELPROXY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "Reply with just the word hello"}] }'Windows command
Save the text below in the current folder as
request.jsonusing UTF-8 encoding. Then run the command in the same PowerShell window.{ "model": "gpt-5.6-luna", "messages": [ { "role": "user", "content": "Reply with just the word hello" } ] }curl.exe -sS https://api.modelproxy.org/v1/chat/completions ` -H "Authorization: Bearer $env:MODELPROXY_API_KEY" ` -H "Content-Type: application/json" ` --data-binary "@request.json"
choices[0].message.content.Connect your app to AI
You’ll need Python for this example. Open a terminal in the folder where you want to work.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Install the OpenAI library
python -m pip install openai -
Run the example
Save the code below as
chat.py. In the same folder, runpython chat.py.import os from openai import OpenAI client = OpenAI( api_key=os.environ["MODELPROXY_API_KEY"], base_url="https://api.modelproxy.org/v1", ) reply = client.chat.completions.create( model="gpt-5.6-luna", messages=[{"role": "user", "content": "Reply with the word hello"}], ) print(reply.choices[0].message.content)
Connect your app to AI
You’ll need Node.js for this example. Open a terminal in your project folder.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Install the OpenAI library
npm install openai -
Run the example
Save the code below as
chat.mjs. In the same folder, runnode chat.mjs.import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.MODELPROXY_API_KEY, baseURL: "https://api.modelproxy.org/v1", }); const reply = await client.chat.completions.create({ model: "gpt-5.6-luna", messages: [{role: "user", content: "Reply with the word hello"}], }); console.log(reply.choices[0].message.content);
Create an image
gpt-image-2 creates an image from your description. You’ll need Python for this example. Open a terminal in the folder where you want to save the result.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Install the OpenAI library
python -m pip install openai -
Run the example
In
prompt, describe the image you want to create. Save the code asimage.py, then runpython image.py.import base64 from pathlib import Path import os from openai import OpenAI client = OpenAI( api_key=os.environ["MODELPROXY_API_KEY"], base_url="https://api.modelproxy.org/v1", ) result = client.images.generate( model="gpt-image-2", prompt="A paper boat on dark water, seen from above", quality="low", ) Path("result.png").write_bytes(base64.b64decode(result.data[0].b64_json))
result.png in the same folder.Edit an image
This Python example uses gpt-image-2 to change an image’s background. Open a terminal in the folder containing your image.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Install the OpenAI library
Save your original image in this folder as
source.png.python -m pip install openai -
Run the example
In
prompt, describe what you want to change. Save the code asimage.py, then runpython image.py.import base64 from pathlib import Path import os from openai import OpenAI client = OpenAI( api_key=os.environ["MODELPROXY_API_KEY"], base_url="https://api.modelproxy.org/v1", ) with open("source.png", "rb") as original: result = client.images.edit( model="gpt-image-2", image=original, prompt="Make the background light gray", ) Path("edited.png").write_bytes(base64.b64decode(result.data[0].b64_json))
edited.png in the same folder.Which files can I use?
You can send up to five images in PNG, JPEG or WebP format. Each image’s longest side can be up to 8192 pixels. Each image can be up to 20 MB, and the entire request up to 64 MB.
Get an API key
An API key lets an app use models on your behalf. Treat it like a password.
-
Create and copy your key
You’ll only see the full key once. Save it in a password manager now.
How to replace a key
Create a new key, update your apps and check that they work. Then revoke the old key in your dashboard. If someone else has obtained your key, revoke it immediately.
Check your key through the API
Replace mp-YOUR-KEY with your key and run the commands in your terminal. You’ll find your models in data.
export MODELPROXY_API_KEY='mp-YOUR-KEY'
curl -sS "https://api.modelproxy.org/v1/models" \
-H "Authorization: Bearer $MODELPROXY_API_KEY"Windows commands
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY'
curl.exe -sS https://api.modelproxy.org/v1/models -H "Authorization: Bearer $env:MODELPROXY_API_KEY"Check your balance
Check how much money you have left for model requests.
Your balance appears on the dashboard home screen.
Check your balance through the API
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Request your balance
Use your personal key.
curl -sS "https://api.modelproxy.org/v1/available_balance" \ -H "Authorization: Bearer $MODELPROXY_API_KEY"
available_balance and the currency is in currency. The default currency is US dollars.Your organization spending limit
See how much you can still spend on a particular model this month. The limit resets at the start of each month, in UTC.
-
Set your API key
Get your organization key. Replace
mp-YOUR-KEYwith it and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Choose a model
In the command, replace
gpt-5.6-lunawith the ID of the model you want.curl -sS "https://api.modelproxy.org/v1/available_balance?model=gpt-5.6-luna" \ -H "Authorization: Bearer $MODELPROXY_API_KEY"
available_balance. A status of no_limit means you have no spending limit for this model.Models and pricing
Find a model in the catalog and copy its ID. This is the exact name to use in your app’s settings.
Input is what you send to a model. Output is what it sends back.
List models through the API
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Request the list
Run the command and find your model in the
datalist.curl -sS "https://api.modelproxy.org/v1/models" \ -H "Authorization: Bearer $MODELPROXY_API_KEY"
id value into the model field of your request.API formats
Choose the format your app supports.
OpenAI Responses
Codex CLI uses this API to send messages. In the OpenAI library, set the base URL to https://api.modelproxy.org/v1.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Send a message
curl -sS https://api.modelproxy.org/v1/responses \ -H "Authorization: Bearer $MODELPROXY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-5.6-luna", "input": "Reply with just the word hello" }'
output list. The reply text is inside that message.Anthropic Messages
Claude Code uses this API to send messages. In the Anthropic library, set the base URL to https://api.modelproxy.org.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Send a message
curl -sS https://api.modelproxy.org/v1/messages \ -H "x-api-key: $MODELPROXY_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-fable-5", "max_tokens": 128, "messages": [{"role": "user", "content": "Reply with just the word hello"}] }'
content list, in a block of type text.Troubleshooting
Find the number in your error message to see what to do next.
Invalid request
The error message identifies the field to fix. Correct its value and try again. When checking an organization limit, include model only once.
API key rejected
Check that you copied the whole key, starting with mp-, and pasted it into your app or terminal. If the key was revoked, create a new key.
Insufficient balance
Check your balance. If you need more funds, top up your account and try again.
Organization disabled
If you see this error when checking your balance, contact your organization administrator.
Model not found
Copy the exact model name from the model catalog into the model field.
Model service busy
Try again shortly. The Retry-After response header tells you when you can retry.
Service temporarily unavailable
Try again later. If you were checking a balance in rubles or yuan, try requesting it in US dollars (USD).
Connect another agent
Open your app’s model settings. You’ll need a field for the API address and another for the key.
-
Find the provider setting
Under
ProvidersorModels, look forCustom providerorBase URL. This setup requires an app that lets you change its API address. -
Enter the address for your API format
Use the OpenAI address for Chat Completions or Responses, and the Anthropic address for Messages. Paste it into
Base URL.- OpenAI
https://api.modelproxy.org/v1- Anthropic
https://api.modelproxy.org
My app asks for the full endpoint URL
- Chat Completions
https://api.modelproxy.org/v1/chat/completions- Responses
https://api.modelproxy.org/v1/responses- Messages
https://api.modelproxy.org/v1/messages
-
Enter the key and model
Paste your key from API keys into
API Key. InModel, enter the exact ID from the model catalog. Save the settings and send “Hello.”
Connect an existing app
If your app already uses the OpenAI library, you can update its connection settings. This example uses Python.
-
Set your API key
Get a key from API keys in your dashboard. Replace
mp-YOUR-KEYwith your key and run the command. Keep this terminal open.export MODELPROXY_API_KEY='mp-YOUR-KEY'Windows command
$env:MODELPROXY_API_KEY = 'mp-YOUR-KEY' -
Update the address and key in your code
Find
OpenAI(in your project. Set the address and key as shown below.import os from openai import OpenAI client = OpenAI( api_key=os.environ["MODELPROXY_API_KEY"], base_url="https://api.modelproxy.org/v1", ) -
Choose a model
In
chat.completions.create, specifygpt-5.6-lunaor another model from the model catalog. Run your app and send a message.