Skip to content

Using New API with Droid CLI

Install Droid CLI

bash
curl -fsSL https://app.factory.ai/cli | sh
bash
irm https://app.factory.ai/cli/windows | iex

Configure Model

Edit ~/.factory/config.json, modify the content as follows, remember to replace YOUR_NEW_API_KEY with your New API Key

json
{
    "custom_models": [
        {
            "model_display_name": "newapi-gpt-4.1-mini", // Display name
            "model": "gpt-4.1-mini", // Model ID, can be filled with models supported in the model marketplace
            "base_url": "https://model.imkk.us/v1",
            "api_key": "YOUR_NEW_API_KEY",
            "provider": "generic-chat-completion-api",
            "max_tokens": 1280000
        }
    ]
}

Direct Launch and Use

After configuration, enter droid in the command line, and in the pop-up interface, enter /model, then select newapi-gpt-4.1-mini from Custom Model.