Lite is 0 cost forever · X2.5 Flagship 50% off at ¥1.6/M · No hidden charges
https://spark-api-open.xf-yun.com/v1 💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).
lite Spark-X2.5-1.7B Spark-X2.5-4B 4.0Ultra iFLYTEK Spark is one of the rare premier Chinese foundation model platforms providing a genuine 'permanent free + unlimited tokens' tier for all individual developers.
The flagship lightweight model Spark Lite (model: lite) provides continuous zero-cost inference with minimal registration friction—just a mobile phone SMS verification without real-name KYC or credit card binding!
Spark Lite enforces a 2 QPS (2 requests per second, equivalent to 120 RPM) rate limit per account. Ideal for personal chat and prototype development; concurrent bursts will return error code 11202.
iFLYTEK's API gateway does not return Access-Control-Allow-Origin headers. Browser-based client-side fetches will be blocked by CORS; use backend proxy routes or desktop tools like NextChat / ChatBox.
Lite supports JSON mode and streaming, with an 8K input window (4K maximum output). It does not support web search plugins or Function Calling (which require 4.0Ultra or Max tiers).
The HTTP API conforms to standard OpenAI specifications. Forget legacy HMAC signature generation—simply pass your dashboard APIPassword in the Authorization: Bearer <APIPassword> header.
Access the console (https://console.xfyun.cn/services/bmx1) and log in with your mobile SMS code, skipping ID card and payment binding.
Locate or create your LLM application in the console, navigate to service credentials, and copy your APIPassword.
Set Base URL to https://spark-api-open.xf-yun.com/v1, enter APIPassword as API Key, select model lite, and start querying unlimited free tokens!
from openai import OpenAI
client = OpenAI(
api_key="your_api_key_here", # 填入申请的 Key
base_url="https://spark-api-open.xf-yun.com/v1"
)
response = client.chat.completions.create(
model="lite",
messages=[
[object Object]
]
)
print(response.choices[0].message.content)