Skip to content

Anyport API Integration Guide ​

Welcome to Anyport AI API services. We are fully compatible with the official OpenAI API protocol, providing high-speed, stable, and multi-model integrated API proxy services.


💡 Core Configuration ​

When configuring any third-party client, please ensure the following parameters are set correctly:

  1. API Key / Token: The sk-xxxxxxxx key generated in your Anyport dashboard.
  2. API Base URL: https://anyport.xyz/v1

âš ī¸ Note: Most clients automatically append endpoints onto the Base URL. If you encounter connection errors, try removing /v1 from the end (i.e., change it to https://anyport.xyz) and test again.


🚀 Quick Start (cURL Test) ​

Open your terminal and run the following command to verify if your token and connection are working properly:

bash
curl [https://anyport.xyz/v1/chat/completions](https://anyport.xyz/v1/chat/completions) \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-YOUR_ANYPORT_TOKEN" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

đŸ› ī¸ Third-Party Client Setup Guide ​

1. NextChat (ChatGPT Next Web) ​

  • API Key: Enter your exclusive Anyport token (sk-...).
  • Base URL: https://anyport.xyz/v1

2. LobeChat ​

  • Path: Settings -> Language Model -> OpenAI
  • API Key: Enter your Anyport token.
  • Proxy Address (Base URL): https://anyport.xyz/v1

3. Cherry Studio ​

  • Provider: Settings (bottom left) -> Add Custom OpenAI Compatible Service.
  • API Address: https://anyport.xyz/v1
  • API Key: Enter your Anyport token.

4. Chatbox ​

  • AI Provider: Select OpenAI API Compatible Format or OpenAI.
  • API Domain (Base URL): https://anyport.xyz/v1
  • API Key: Enter your Anyport token.

âœī¸ Productivity & Translation Tools ​

1. Immersive Translate ​

  • Translation Service: Select OpenAI.
  • API Key: Enter your Anyport token.
  • Custom API URL: https://anyport.xyz/v1/chat/completions

2. Bob (Mac Translation App) ​

  • Service Provider: Choose a plugin that supports custom OpenAI domains.
  • API Key: Enter your Anyport token.
  • Service URL: https://anyport.xyz/v1/chat/completions

3. Pot (Cross-platform Translation Tool) ​

  • Interface Type: Select OpenAI Compatible Mode.
  • API Key: Enter your Anyport token.
  • Endpoint / API Address: https://anyport.xyz/v1

❓ FAQ ​

Q: What should I do if I get a 401 Error (Unauthorized)?

  • A: Please check if your API key was copied completely without trailing spaces, and ensure your account balance is sufficient in the Anyport console.

Q: What should I do if I get a 404 Error (Not Found)?

  • A: Check the URL structure inside your client app. Some apps automatically append /v1. If your client setup already has /v1, it may cause a duplication. If it fails, try changing the Base URL to https://anyport.xyz.