piyushbuildsai/skilldotmd-library/stepfun

Claude Code and agent skill by piyushbuildsai/skilldotmd-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill when working with Stepfun LLMs (Step-1, Step-2). Triggers when user mentions Stepfun or uses the Stepfun API endpoint.

Install

npx vskill@latest install piyushbuildsai/skilldotmd-library/stepfun

SKILL.md

The same SKILL.md was published earlier as piyushbuildsai/skilldotmd-library/stepfun.

Stepfun

What this is

Stepfun provides a suite of large-scale language models including Step-1 (text), Step-1V (multimodal/vision), and Step-2. It offers an OpenAI-compatible API interface, allowing developers to integrate high-performance Chinese-centric LLMs with context windows up to 256k.

Installation

Stepfun uses the standard OpenAI SDK for integration:

bash
pip install openai

Key concepts

  • API Compatibility: Uses the OpenAI client but requires a custom base_url.
  • Model Tiers: Models are categorized by context window size (e.g., step-1-8k, step-1-32k, step-1-128k, step-1-256k).
  • Step-1V: A multimodal model capable of understanding images and text simultaneously.
  • Step-2: Next-generation model with improved reasoning and knowledge capabilities.

Correct usage patterns

Basic Chat Completion

Always set the base_url to https://api.stepfun.com/v1.

python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_STEPFUN_API_KEY",
base_url="https://api.stepfun.com/v1"
)
response = client.chat.completions.create(
model="step-1-8k",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain quantum entanglement in Chinese."}
]
)
print(response.choices[0].message.content)
Vision Input (Step-1V)

Use the step-1v-32k model for image-related tasks.

python
response = client.chat.completions.create(
model="step-1v-32k",
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "What is in this image?"},
{
"type": "image_url",
"image_url": {"url": "https://example.com/image.jpg"}
}
]
}
]
)

Common mistakes to avoid

  • Incorrect Base URL: Forgetting to set base_url="https://api.stepfun.com/v1" will cause the SDK to default to OpenAI's servers.
  • Model Naming: Using OpenAI model names (like gpt-4) instead of Stepfun names (like step-1-256k).
  • Context Overload: Choosing a model with a context window too small for the input (e.g., using 8k for a 100k document).
  • Vision Model Selection: Trying to perform image analysis with step-1-8k instead of the multimodal step-1v series.

File and folder conventions

  • Environment Variables: Store the API key in .env as STEPFUN_API_KEY.
  • Configuration: Centralize client creation in a client.py or config.py file to ensure the base_url is consistently applied.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/piyushbuildsai/skilldotmd-library/stepfun/badge)](https://verified-skill.com/skills/piyushbuildsai/skilldotmd-library/stepfun)

Something wrong with this skill or its page? Tell us.