ModelInfo
English
All models

Spark X2

iFlytek Spark X2 deep reasoning model with function calling and web search.

iFlytekspark-xReport incorrect data

Specs

Context
—
Max output
131.1K
Input price
¥3/ 1M tokens
Output price
¥3/ 1M tokens
Released
—

Context

Context window
—
Max input
65.5K
Max output
131.1K

Pricing · CNY / 1M tokens

Input
¥3
Output
¥3
Cache read
—
Cache write
—

Modalities

Input
Text
Output
Text

API

API types
chat

Reasoning

Reasoning
Yes
Levels
—

Info

Status
Active
Released
—
Knowledge cutoff
—

Features

Confirmed
toolsstreaming
Source · official docsVerified 2026-10-11

How to call

1 provider

iflytekmodel = spark-xreasoning = thinking

chat
POSThttps://spark-api-open.xf-yun.com/x2/chat/completions

JSON

Standard format
spark-x.json
{
  "id": "spark-x",
  "object": "model",
  "created": null,
  "owned_by": "iflytek",
  "name": "Spark X2",
  "api": {
    "types": [
      "chat"
    ]
  },
  "limits": {
    "context": null,
    "input": 65536,
    "output": 131072
  },
  "modalities": {
    "input": [
      "text"
    ],
    "output": [
      "text"
    ]
  },
  "reasoning": {
    "supported": true,
    "efforts": []
  },
  "pricing": {
    "currency": "CNY",
    "unit": "1M_tokens",
    "input": 3,
    "output": 3,
    "cache_read": null,
    "cache_write": null
  },
  "features": [
    "tools",
    "streaming"
  ],
  "info": {
    "status": "active",
    "release_date": null,
    "knowledge_cutoff": null,
    "description": "iFlytek Spark X2 deep reasoning model with function calling and web search.",
    "docs": "https://www.xfyun.cn/doc/spark/X1http.html",
    "verified_at": "2026-10-11"
  }
}

Official sources

3