APIMaster.ai

Use the APIMaster plugin in New API

Install the APIMaster plugin by code, configure a channel, fetch models, and send your first chat request.

The APIMaster plugin adds OpenAI-compatible chat to your New API gateway. Sign in as Root on a New API version that supports channel plugins.

Install and configure

  1. Open Admin → Plugins → Plugin Marketplace. Enter 80243969 in Plugin Code, click Find, select APIMaster 1.0.1 or later, then click Install and Enable.
  2. Open Channels and add a channel using the APIMaster plugin. Enter your APIMaster API key as the channel credential and keep https://apimaster.ai as the base URL.
  3. Choose a channel group, save, and fetch models. Version 1.0.1 prefills gpt-6.2-astra and gpt-6.2-sol. Use a model returned for your key and grant the client key access to the channel group.

Send a test request

Set NEW_API_BASE_URL to your own New API gateway URL without /v1. Set NEW_API_CLIENT_KEY to a client key issued by that gateway. Keep your APIMaster API key in the channel configuration.

curl --fail-with-body --silent --show-error "${NEW_API_BASE_URL%/}/v1/chat/completions" \
  -H "Authorization: Bearer ${NEW_API_CLIENT_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "gpt-6.2-sol",
    "messages": [{"role": "user", "content": "Reply with OK."}],
    "reasoning_effort": "none",
    "max_completion_tokens": 64
  }'

On success, read the reply from choices[0].message.content. Set stream to true for an SSE response.

Troubleshooting and billing

If you cannot find the plugin, refresh the marketplace and confirm the Community source is enabled. If a model is unavailable, fetch models again and check the model status and the client key's group access.

APIMaster bills usage to the account that owns the channel credential. If you bill downstream users through New API, set input, output, and cache rates for the enabled models in your gateway.

New API installation guide