Skip to main content
BYOK stands for “bring your own key.” It lets you connect a model provider using your own API key, choose a preset provider or manually configure a compatible service, and then select those models from the MiniMax Code model menu.Custom Model create or edit modal

Add a Provider

1

Open custom models

Go to Settings → Usage & model, then select Add model under Custom model.
2

Choose a preset or other provider

Search for a preset provider, select it, and enter your API key. The preset supplies the base URL, API format, and model configuration. If your provider is not listed, select Others and enter the provider name, base URL, API key, and API format.
3

Add models

Enter a model ID, or select Fetch to choose models from the provider’s list. The model ID must match the ID in the provider’s documentation.
4

Save and switch

Select Save. Return to the message box and choose the newly added model from the model menu. For models that support thinking settings, you can also adjust them in the parameters menu.
The base URL is the address MiniMax Code sends requests to. The API format determines how those requests and responses are structured. Use the values listed in your provider’s setup guide.

Save and Test Connections

Recommendation

Run a connection test before using a model for your work. A successful test confirms that the test request went through. Support for images, video, and other input types should still be checked with examples from your intended use case.
Custom model availability, context length, multimodal support, and cost depend on the provider you configure.
To have an agent edit the configuration file and verify a real model response, follow Configure BYOK Models with an Agent.