i

iFlytek SparkDesk (Spark 4.0 / Lite / Pro)

LLM

by iFlytek

iFlytek's SparkDesk models are competitive in Chinese language tasks and offer the permanently free Spark Lite API. Known for strong speech and NLP capabilities built on iFlytek's long AI history.

Registration & API Key Steps

1

Step 1

Visit iFlytek Spark API page and click "Register".

Open link
2

Step 2

Register with phone number and verify via SMS code.

3

Step 3

Complete real-name verification (may be required for full access).

4

Step 4

Create a new application — fill in the app name, category, and description.

5

Step 5

Wait for approval (usually within minutes).

6

Step 6

Obtain your three credentials: APP ID, API Key, and API Secret.

Pricing

TierPriceFeatures
Spark LiteFreePermanently free API. Limited features.
Spark Pro¥3 / ¥3 per 10K tokensInput / Output (~$0.41). Professional model.
Spark 3.5 Max¥2.1 / ¥2.1 per 10K tokensInput / Output (~$0.29). Best value for advanced tasks.
Spark 4.0 Ultra¥5 / ¥5 per 10K tokensInput / Output (~$0.69). Most capable model.

Application Tips

Tip 1

Spark Lite is permanently free — one of the best free LLM APIs for Chinese tasks.

Tip 2

Spark 3.5 Max at ¥2.1/10K tokens is significantly cheaper than Baidu and Alibaba's top models.

Tip 3

Use company email for faster application approval.

Tip 4

iFlytek also offers strong speech recognition and synthesis APIs.

Tip 5

WebSocket API is the primary interface — different from typical REST APIs.

Tip 6

Authentication requires HMAC-SHA256 signature — use official SDK for easier integration.

China Access Solutions

Access Solution

Directly accessible in China. iFlytek is a major Chinese AI company. Supports Chinese phone, domestic payment methods.

Code Example

JavaScript / TypeScript
# SparkDesk uses WebSocket API with HMAC-SHA256 authentication
# Recommended: use the official Python SDK

# pip install sparkdesk-api
from sparkdesk_api.core import SparkAPI

sparkAPI = SparkAPI(
    app_id="your-app-id",
    api_secret="your-api-secret",
    api_key="your-api-key",
    version=3.5  # Spark version
)

response = sparkAPI.chat("请介绍一下量子计算")
print(response)

# --- Using WebSocket directly requires HMAC auth ---
# See official docs: https://www.xfyun.cn/doc/spark/Web.html

Rate Limits

TierLimits
DefaultSpark Lite (free): 2 concurrent connections. Spark Pro: varies by plan. Paid models support higher concurrency.

Recommended Use Cases

Chinese Q&ASpeech + LLM integrationEducation applicationsCustomer serviceContent writing
Last Updated: 2026-02-10

Related API Guides