spark-integration

Integrate Spark LLM APIs for text analysis, chat, and content generation in Node.js.

24|7|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/ptreezh/sscisubagent-skills --skill spark-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spark-integration
Source: https://github.com/ptreezh/sscisubagent-skills/tree/main/skills/spark-integration
Command: npx skills add https://github.com/ptreezh/sscisubagent-skills --skill spark-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It standardizes access to the iFLYTEK Spark (星火) large language models so you can perform text analysis, intelligent chat, and content generation without rewriting API-call boilerplate each time.

Core Features & Use Cases

  • API integration layer: Wraps Spark model API calls with unified methods for downstream skills.
  • Multi-model support: Selects from spark-max, spark-pro, spark-standard, spark-mini, and spark-vision.
  • Common NLP tasks: Enables sentiment analysis, summary extraction, topic identification, open-ended text analysis, and generated content (article/summary/outline).
  • Use case: When you have multiple research-skills that need consistent LLM behavior, you can route their requests through this integration to analyze user text and produce structured outputs.

Quick Start

Provide your app credentials via environment variables and ask the AI to analyze the sentiment of a given text using the spark-integration skill.

Frequently Asked Questions about spark-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Spark model API calls for text analysis in Node.js?

To integrate Spark model API calls for text analysis, use this Skill to wrap Spark API requests with unified methods like analyzeText, chat, and generateContent in a Node.js environment. It standardizes access to iFLYTEK Spark models without rewriting API-call boilerplate.

What tasks can I perform using the Spark large language model API?

Using the Spark large language model API, you can perform sentiment analysis, summary extraction, topic identification, general dialogue, and content generation. This Skill exposes these specific NLP tasks through configurable Spark model backends.

Do I need SPARK_API_KEY and SPARK_APP_ID environment variables to use this integration?

Yes, you need to set SPARK_APP_ID, SPARK_API_KEY, and SPARK_API_SECRET environment variables for SDK initialization. Optional baseUrl and model variables can also be configured to select specific Spark model backends.

Can I select different Spark models like spark-max or spark-pro for content generation?

Yes, you can select different Spark models for content generation. This integration supports multi-model selection across spark-max, spark-pro, spark-standard, spark-mini, and spark-vision backends to handle various writing and analysis tasks.

What is the best way to standardize LLM behavior across multiple research skills?

The best way to standardize LLM behavior across multiple research skills is to route their requests through this Spark API integration layer. It ensures consistent text analysis and structured outputs by unifying prompt construction and model selection.

Why use a dedicated integration layer for iFLYTEK Spark models instead of direct API calls?

Using a dedicated integration layer for iFLYTEK Spark models prevents rewriting API-call boilerplate. It abstracts prompt construction and model selection into unified methods, ensuring consistent LLM behavior for downstream skills.