Skip to main content

Overview

Coze is an AI Bot development platform by ByteDance that supports calling external APIs through plugins.

Configuration

Via HTTP Plugin

1

Create Plugin

In the Coze workspace, go to PluginsCreate Plugin → Select Create from API
2

Configure API

  • Request Method: POST
  • URL: https://crazyrouter.com/v1/chat/completions
  • Headers:
    • Authorization: Bearer sk-xxx
    • Content-Type: application/json
3

Configure Request Body

{
  "model": "gpt-4o",
  "messages": [
    {"role": "user", "content": "{{input}}"}
  ]
}
4

Use in Bot

Add the plugin node to your Bot’s workflow.

Via Model Configuration

Some Coze versions support custom model integration:
  1. Go to SettingsModel Management
  2. Add a custom model
  3. Enter the API URL and key
Configuration may differ slightly between Coze international and domestic versions. Refer to the official Coze documentation for the latest custom model integration methods.