Skip to main content
AnyAIGC

iFLYTEK · SparkDesk-v2.1

SparkDesk-v2.1 API

IFLYTEK Spark's early 2.x release (API version v2.1) for chat, knowledge Q&A, reasoning and code understanding. One API key, an OpenAI-compatible endpoint and the same price for input and output.

Explain API rate limiting to a new teammate in three sentences, with an example

Chat Q&ALowest priceExisting apps

SparkDesk-v2.1 costs $8.7360 per million input tokens and $8.7360 per million output tokens, with unlimited RPM and self-service invoices.

SparkDesk-v2.1 is an early iFLYTEK Spark release that the current iFLYTEK Open Platform version table no longer lists. New projects should look at SparkDesk-v3.1 or SparkDesk-v3.5. Check the model catalog for current availability.

  • Model ID SparkDesk-v2.1
  • Official tier Early 2.x release
  • Input $8.7360 / 1M
  • RPM Unlimited
  • Teams Self-service invoices
About the model

iFLYTEK Spark's early 2.x release

SparkDesk-v2.1 is an early 2.x API release of iFLYTEK's Spark cognitive model. The catalog describes it as a model with cross-domain knowledge and language understanding that carries out tasks through natural conversation, covering language understanding, knowledge Q&A, logical reasoning, math problem solving and code comprehension.

The current iFLYTEK Open Platform version table no longer lists this tier, so this page gives no official context window, maximum output or feature limits rather than print numbers without a source. It has the lowest price of the three on AnyAIGC, which suits workloads that already use it or low-cost tasks where quality matters less.

On AnyAIGC, SparkDesk-v2.1 uses the OpenAI-compatible /v1/chat/completions endpoint with a single Bearer key. For new projects, evaluate SparkDesk-v3.1 or SparkDesk-v3.5 first. Billing is per token with no concurrency limit.

Model ID
SparkDesk-v2.1the model field, case-sensitive
Official tier
Early 2.xnot in the current official doc
Context window
Not listedconfirm by testing
Max output
Not listedconfirm by testing
Endpoint
Chat CompletionsPOST /v1/chat/completions
Input / output
Same price$8.7360 per 1M tokens each
Capabilities

What SparkDesk-v2.1 can do

  • 01

    Natural conversation

    Understands and carries out tasks through conversation, a fit for simple Q&A and assistants.

  • 02

    Knowledge Q&A

    Cross-domain question answering across common reference and office topics.

  • 03

    Logical reasoning

    Handles simple rule checks and comparisons.

  • 04

    Math problem solving

    The catalog lists math problem solving, useful for basic study help.

  • 05

    Code understanding

    Explains short snippets for lightweight developer help.

  • 06

    Drop-in for existing apps

    An app already calling SparkDesk-v2.1 only needs a new base_url and key. The model ID stays the same.

Pricing

SparkDesk-v2.1 API pricing

Billed per token at a fixed price, with no subscription or monthly fee. Input and output cost the same.

  • Per-token billingInput and output metered separately
  • Same input and output price$8.7360 per 1M each
  • Unlimited RPMOn by default for every account
  • USDOne balance for 300+ models
SparkDesk-v2.1 price per 1M tokens in USD
ItemModelAnyAIGC price (USD)
Inputper 1M tokensSparkDesk-v2.1$8.7360
Outputper 1M tokensSparkDesk-v2.1$8.7360

Prices are in US dollars and billed on the tokens you actually use. Input and output cost the same. These are the lowest catalog prices; live prices are on the AnyAIGC model catalog.

Cost examples

Estimated for typical usage by adding up the unit prices above.

  • 10,000 support answers

    800 input + 300 output tokens each

    $96.10

  • One long-document summary

    6,000 input + 800 output tokens

    $0.059

  • 1M input + 1M output

    1M input tokens + 1M output tokens

    $17.47

Compare

SparkDesk-v3.5, v3.1 or v2.1?

Choose v3.5 for system prompts, v3.1 for general chat and Q&A, and v2.1 for existing apps and low-cost tasks.

SparkDesk-v3.5, SparkDesk-v3.1 and SparkDesk-v2.1 compared, with AnyAIGC prices per 1M tokens in USD
ItemSparkDesk-v3.5SparkDesk-v3.1SparkDesk-v2.1
iFLYTEK tierSpark MaxSpark ProEarly 2.x release
API versionv3.5v3.1v2.1
Context / max outputofficial doc8,192 / 8,1928,192 / 8,192Not listed
System prompt (system role)official docSupportedNot supportedNot listed
AnyAIGC inputper 1M tokens$13.1040$13.1040$8.7360
AnyAIGC outputper 1M tokens$13.1040$13.1040$8.7360

Tiers and specs come from the iFLYTEK Open Platform docs. Prices are AnyAIGC's current prices; live prices are in the model catalog. Details: SparkDesk-v3.5, SparkDesk-v3.1, SparkDesk-v2.1.

Use cases

What SparkDesk-v2.1 is good for

  • 01 · Existing apps

    Workloads that already use it

    For an app running SparkDesk-v2.1 today, keep the model ID and point requests at AnyAIGC.

  • 02 · Low cost

    Batch text where quality matters less

    The lowest price of the three, a fit for simple classification or rewriting. Test on your own samples before launch.

  • 03 · Comparison

    Old versus new release

    Run the same prompts through v2.1, v3.1 and v3.5 to measure the gap before deciding whether to migrate.

  • 04 · Prototypes

    Cheap prototype validation

    Get a flow working on a low-priced model first, then move to a higher tier if the results call for it.

Quickstart

Call the SparkDesk-v2.1 API in three steps

  1. Sign up and top up: create an account at anyaigc.ai. Top-ups start at $1, and the balance works across every model on the platform.
  2. Create an API key: make a token in the console, copy the key that starts with sk-, and store it in the ANYAIGC_API_KEY environment variable.
  3. Send a request: call POST https://anyaigc.ai/v1/chat/completions with model set to SparkDesk-v2.1 and Authorization: Bearer. With the OpenAI SDK, just set base_url to https://anyaigc.ai/v1.
POST /v1/chat/completions
curl https://anyaigc.ai/v1/chat/completions \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "SparkDesk-v2.1",
    "messages": [
      {"role": "user", "content": "Explain API rate limiting in three sentences"}
    ]
  }'
Python · openai SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyaigc.ai/v1",
    api_key=os.environ["ANYAIGC_API_KEY"],
)

resp = client.chat.completions.create(
    model="SparkDesk-v2.1",
    messages=[
        {"role": "user", "content": "A customer reports HTTP 429 from our API. How should I troubleshoot it?"},
    ],
)
print(resp.choices[0].message.content)
print(resp.usage)  # input / output tokens for this request
Python · stream=True
import os
from openai import OpenAI

client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])

stream = client.chat.completions.create(
    model="SparkDesk-v2.1",
    messages=[{"role": "user", "content": "Write five release notes for a SaaS product."}],
    stream=True,
)
for chunk in stream:
    if not chunk.choices:
        continue
    delta = chunk.choices[0].delta
    if delta.content:
        print(delta.content, end="", flush=True)
print()

Parameter tip: the model ID is case-sensitive, so write SparkDesk-v2.1. The response format matches OpenAI Chat Completions, and token counts for the request are in the usage field. The context is limited, so split or retrieve long documents before asking.

See the Chat Completions reference for every parameter. Swap the model name in the examples for the SparkDesk model ID.

Enterprise

SparkDesk-v2.1 API for teams and enterprises

Teams can top up, issue invoices themselves, and work with a dedicated support and technical contact.

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Account and technical contacts

    Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

FAQ

SparkDesk-v2.1 API FAQ

How much does the SparkDesk-v2.1 API cost?

On AnyAIGC, SparkDesk-v2.1 is billed per token: $8.7360 per million input tokens and $8.7360 per million output tokens, the same for both. Prices are fixed, with no subscription or monthly fee. Live prices are in the model catalog.

What is the SparkDesk-v2.1 model ID, and how does it relate to iFLYTEK Spark?

The model ID is SparkDesk-v2.1 (case-sensitive). It is a release of iFLYTEK's Spark cognitive model, and AnyAIGC exposes it through an OpenAI-compatible API. It is unrelated to Apache Spark or the Spark email app.

How do I choose between SparkDesk-v2.1 and the other SparkDesk models?

SparkDesk-v3.5 and SparkDesk-v3.1 are the other two in the series. A higher version number maps to a newer iFLYTEK tier: v3.5 is Max, v3.1 is Pro, and v2.1 is an early 2.x release. Pick v3.5 if you need a system prompt. Consider v2.1 when cost matters most and quality needs are modest, and test on your own data before launch. All three charge the same for input and output on AnyAIGC.

Is SparkDesk compatible with the OpenAI API, and how do I call it?

Yes. SparkDesk-v2.1 uses POST https://anyaigc.ai/v1/chat/completions, and requests and responses match OpenAI Chat Completions. With the official OpenAI SDK, set base_url to https://anyaigc.ai/v1. You do not need iFLYTEK's WebSocket signing, only Authorization: Bearer.

How large is the SparkDesk-v2.1 context window?

The current iFLYTEK Open Platform version table no longer lists the 2.x release, so there is no official context figure to quote. Test with your real input lengths, or choose SparkDesk-v3.1 or SparkDesk-v3.5 when you need documented limits.

Is there a rate limit?

AnyAIGC sets no concurrency limit on SparkDesk-v2.1, and every account gets this by default, so batch jobs and parallel tasks are fine. Billing is per token, with no monthly fee or time-window quota.

Is SparkDesk-v2.1 deprecated?

The current iFLYTEK Open Platform version table no longer lists the 2.x release, so treat it as a legacy model. SparkDesk-v2.1 is still callable in the AnyAIGC model catalog today. New projects should use SparkDesk-v3.1 or SparkDesk-v3.5; check the catalog for current availability.

How do I get a SparkDesk-v2.1 API key?

Sign up and top up at anyaigc.ai, then create a token in the console. One key works for 300+ models on the platform, so you do not need an iFLYTEK Open Platform APPID, APIKey and APISecret. Set model to SparkDesk-v2.1 in the request body.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Are my prompts used for training?

No. Unless the law requires it, AnyAIGC does not persistently store your prompts or outputs and does not use them for training. Requests are encrypted with HTTPS. See the AnyAIGC Privacy Policy. The model vendor's own data policy is governed by iFLYTEK's terms.

Call SparkDesk-v2.1 with one key

Sign up, create an API key and call SparkDesk-v2.1 in minutes. Your balance works across 300+ models on the platform.