Open API
Prerequisites
Supported Request Methods
- Supports Claude API by replacing the Base URL with
https://aiwith.chat - Supports OpenAI Completions API by replacing the Base URL with
https://aiwith.chat/v1 - Supports OpenAI Responses API by replacing the Base URL with
https://aiwith.chat/v1
Pricing and Supported Models
For supported models and their pricing, please refer to the API Product Page.
1. Claude Code Integration
1. Prerequisites
- Registered and obtained the platform API Key.
- Node.js environment installed.
2. Installation and Configuration
- Install Claude Code globally:bash
npm install -g @anthropic-ai/claude-code - Configure environment variables:
Please replace
YOUR_API_KEYwith your platform API Key.
3. Start Claude Code
bash
claudeEnter your questions in the dialog to experience Claude Code's intelligent programming capabilities.
2. Cline Integration
1. Prerequisites
- Registered and obtained the platform API Key.
- VSCode installed.
- Cline plugin installed from the VSCode extension marketplace.
2. Configuration Steps
Open the VSCode sidebar and enter the Cline plugin interface.
Click Use custom base URL and configure as follows:
- API Provider select
Anthropic - Anthropic API Key configure with the platform API Key
- Check 'Use custom base URL': enter
https://aiwith.chat
- API Provider select
Click Done after completion.
If using OpenAI API, select Openai Compatible for API Provider, and enter https://aiwith.chat/v1 for Base URL.
3. Roo Code Integration
Roo Code configuration is similar to Cline.
4. OpenAI SDK Integration
FAQ
- 401 Error: Please check if API Key, Base URL, and API Provider configurations are correct.
- Fast Token Consumption: It is recommended to disable automatic permission approval and enable it only when needed.
- Cline Billing Display: Actual costs vary depending on different models, and the displayed billing is no longer accurate.
For more questions, please contact us.
