Some command-line AI tools allow custom OpenAI-compatible endpoints. In those cases, point the tool to 123API and use your 123API API key.
| Field | Value |
|---|---|
| Base URL | https://123api.co/v1 |
| API Key | Your 123API key |
| Model | Example: gemini-2.0-flash, gpt-4o, claude-sonnet |
For shell-based workflows, export your values before use:
export GEMINI_API_KEY="your-123api-key"
export GEMINI_BASE_URL="https://123api.co/v1"gemini chat --model gemini-2.0-flashRe-open your shell session and confirm GEMINI_BASE_URL is really exported before running the command.
Use the exact model ID returned by GET /v1/models in your current environment.
Review the available text API formats before wiring them into CLI tools.