Skip to content

IFlytek ​

Spark ​

This guide introduces how to configure and use the IFlytek Spark model in Aide.

You can find more detailed information in the official IFlytek Spark reference documentation.

API Base URL Configuration ​

You need to set aide.openaiBaseUrl to https://spark-api-open.xf-yun.com/v1.

API Key Configuration ​

You need to set aide.openaiKey to your IFlytek Spark API key:secret.

Model Configuration ​

You need to set aide.openaiModel to the IFlytek Spark model. We recommend using the 4.0Ultra model. For more models, please refer to the official reference documentation linked above.

Example Configuration File ​

Here is a complete configuration example:

json
{
  "aide.openaiBaseUrl": "https://spark-api-open.xf-yun.com/v1",

  // Assuming your iFlytek key is k123, and secret is s123
  "aide.openaiKey": "k123:s123",
  "aide.openaiModel": "4.0Ultra"
}

Make sure to replace "aide.openaiKey" with your actual API key:secret.

Released under the MIT License.