Logo Volcengine Api

Volcengine Api

Tổ chức
volcengine
volcengine-api

Query and answer questions about Volcengine API specifications. Use when the user asks about API parameters, error codes, request methods, enum values, required fields, response structures, pagination, parameter dependencies, service capability lists, API availability, or API comparisons, even if they do not explicitly say "API". Typical intent includes checking what an action supports, which fields are required, what values a parameter accepts, why an API returns a specific error, how to pass nested or body parameters, how pagination works, what an API response contains, whether a batch operation exists, what services or versions expose an operation, or how two APIs differ. Use API Explorer data as the authoritative source and preserve constraints, examples, and caveats found in the spec. Answer in Chinese or English. When the user needs runnable SDK code, language-specific examples, or SDK configuration, hand off to volcengine-sdk-generator. When they need CLI operations, hand off to volcengine-cli.

Tổng quan

Nhà phát hànhvolcengine
Kho mãvolcengine-agent-toolkit
Tên kỹ năngvolcengine-api
Sao
27
Bản fork
10
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được volcengine công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Volcengine Api trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/volcengine/volcengine-agent-toolkit/tree/main/plugins/volcengine-service-support/skills/volcengine-api
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/volcengine/volcengine-agent-toolkit.git /tmp/volcengine-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/volcengine-agent-toolkit/plugins/volcengine-service-support/skills/volcengine-api .claude/skills/volcengine-api
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Volcengine Api trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Volcengine Api ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Volcengine Api không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Volcengine API Query Assistant

Answer user questions about Volcengine APIs by querying the API Explorer for authoritative, up-to-date information.

Applicable Scenarios

ScenarioExample Questions
Find an API"How do I list ECS instances?", "Is there a batch tag creation API?"
Query parameters"What are the required params for RunInstances?", "What values does ChargeType accept?"
Response structure"What fields does DescribeInstances return?", "What statuses can Status have?"
Parameter dependencies"If I set Ipv6Isp, how should I fill Ipv6MaskLen?", "When is SpotPriceLimit required?"
Pagination"How do I paginate instance queries?", "How does NextToken work?"
Error codes"What does InvalidInstanceId.NotFound mean?", "CreateVpc returns QuotaExceeded"
Browse services"Which APIs does ECS have?", "What operations does VPC support?"
API comparison"What's the difference between DescribeInstances and DescribeInstancesByIds?"

Workflow

Step 1: Understand User Intent

Determine what the user is looking for:

IntentSignalQuery Path
Find an APIDescribes an operation but doesn't know the API nameSearch (2e) or Services (2a) -> API list (2c) -> Details (2d)
Query parametersKnows the API name, asks about params/enums/required fieldsGo directly to Details (2d)
Query responseAsks about return fields or status valuesGo directly to Details (2d), focus on response schema
Query parameter dependenciesAsks "when is X required?" or "how does X relate to Y?"Go directly to Details (2d), focus on conditional rules in descriptions
Query error codesProvides an error code or error messageError code handling (Step 3)
Browse a serviceAsks what capabilities a service offersServices (2a) -> API list (2c)
Compare APIsAsks about differences between two APIsQuery Details (2d) for each, compare params and functionality

Step 2: Query API Information Progressively

Start from the appropriate sub-step based on what is already known. When the user describes a requirement in natural language, Search (2e) is often faster than browsing level by level.

2a. Query service list (when the service is unknown)
text
GET https://api.volcengine.com/api/common/explorer/services

Each service in the response contains:

  • ServiceCode: service identifier (e.g., ecs, vpc)
  • ServiceCn: Chinese name (e.g., "cloud server", "virtual private cloud")
  • Product: product identifier (e.g., ECS, VPC)
  • RegionType: regional or global

Match the most appropriate ServiceCode based on the user's description.

2b. Query version list (when the version is unknown)
text
GET https://api.volcengine.com/api/common/explorer/versions?ServiceCode={ServiceCode}

Each version contains:

  • Version: version string (e.g., 2020-04-01)
  • IsDefault: 1 indicates the default version

Prefer the version with IsDefault=1. If none is marked default, use the latest version.

2c. Query API list (when the specific API is unknown)
text
GET https://api.volcengine.com/api/common/explorer/apis?ServiceCode={ServiceCode}&Version={Version}&APIVersion={Version}

The response groups APIs by category. Each API contains:

  • Action: API name (e.g., DescribeInstances)
  • NameCn: Chinese name (e.g., "Query instance list")
  • ApiGroup: group name (e.g., "Instance", "Image")
  • Description: functional description
  • UsageScenario: usage scenarios
  • Attentions: constraints and caveats

Match user intent using Action, NameCn, and Description.

2d. Query API details (core step)
text
GET https://api.volcengine.com/api/common/explorer/api-swagger?ServiceCode={ServiceCode}&Version={Version}&APIVersion={Version}&ActionName={ActionName}

Returns the full Swagger/OpenAPI specification for the API. Extract key information as follows.

HTTP Method

The key under paths["/{ActionName}"] (get or post) indicates the HTTP method.

Request Parameters

Parameter location depends on the HTTP method:

GET requests: parameters are in paths["/{ActionName}"].get.parameters. Each parameter includes:

  • name: parameter name
  • required: whether it is required
  • schema.type: data type
  • schema.description: parameter description (often contains enum values, conditional rules, and value ranges)
  • schema.enum: allowed values (if any)
  • schema.default: default value (if any)
  • schema.example: example value (if any)

Arrays and nested objects in GET parameters use naming conventions:

  • Arrays: ParamName.N (N starts from 1), e.g., InstanceIds.1, InstanceIds.2
  • Nested objects: Parent.Child, e.g., TagFilters.N.Key, TagFilters.N.Values.N

POST requests: parameters are in paths["/{ActionName}"].post.requestBody.content["application/json"].schema, using JSON Schema:

  • properties: parameter definitions, keyed by name
  • required: array of required parameter names

POST parameters often have nested structures that require recursive parsing:

  • type: object -> inspect properties for child parameters
  • type: array -> inspect items for element structure
  • $ref: "#/components/schemas/XxxObject" -> look up the definition in components.schemas and expand recursively

Present nested parameters in a tree structure:

text
- InstanceId (string, required): instance ID
- DatabasePrivileges (array, optional): database privilege list
  - AccountName (string, required): account name
  - AccountPrivilege (string, required): privilege type — enum: ReadWrite, ReadOnly, ...
  - AccountPrivilegeDetail (string, optional): privilege detail, comma-separated
Parameter Dependencies

Many parameters have conditional dependencies, typically described in the description field. Watch for:

  • Conditionally required: e.g., "required when EnableIpv6 is true"
  • Mutually exclusive: e.g., "when Ipv6CidrBlock is specified, Ipv6MaskLen is ignored"
  • Value constraints: e.g., "when Ipv6Isp is BGP, only 56 is supported"
  • Prerequisites: e.g., "TagFilters.N.Values.N requires TagFilters.N.Key to be set first"

Highlight these dependencies in the answer to help users avoid misconfiguration.

Pagination Parameters

Volcengine APIs use two common pagination patterns, identifiable from the Swagger parameters:

  • Token-based: uses MaxResults (page size) + NextToken (continuation token). The response includes NextToken; an empty value means the last page.
  • Offset-based: uses PageSize + PageNumber (or Offset/Limit). The response includes TotalCount.

Specify which pagination pattern the API uses, along with default values and upper limits.

Response Structure

The response schema is defined at paths["/{ActionName}"].{method}.responses["200"].content["application/json"].schema, and may reference components.schemas via $ref.

Key response information:

  • Field names, types, and descriptions
  • Enum fields and their possible values (e.g., Status: RUNNING / STOPPED / CREATING)
  • Nested object structures (e.g., fields within each item in an Instances array)

The info.x-demo section also provides useful reference — responseDemo[0].Code shows the complete response structure with example values.

Request/Response Examples

In the info.x-demo array:

  • requestDemo[0].Code: request example (shows how parameters are filled)
  • responseDemo[0].Code: response example (shows the full return structure with sample values)

These are official examples and highly valuable. Proactively include them in the answer.

Associated Error Codes

In paths["/{ActionName}"].{method}.responses["x-error-code"].content["application/json"].schema.oneOf, each error code contains:

  • code: error code identifier (e.g., InvalidInstanceId.NotFound)
  • http_code: HTTP status code (e.g., 400, 404, 409, 429, 500)
  • message: English description
  • description: Chinese description
2e. Search APIs (quick lookup)

When the user describes a requirement in natural language, searching is often the fastest approach. This can be used alongside steps 2a–2c.

text
GET https://api.volcengine.com/api/common/search/all?Query={keyword}&Channel=api

Search terms can be in Chinese or English. If one keyword yields poor results, try synonyms, different granularity, or English Action-name style (e.g., "DescribeXxx").

Each result contains:

  • BizInfo.Action: API name
  • BizInfo.ServiceCode: service identifier
  • BizInfo.ServiceCn: service Chinese name
  • BizInfo.Version: version
  • Highlight: matched highlight text

After finding the target API, use step 2d to get full details.

Step 3: Handle Error Code Queries

Error code queries need special handling because the same error code (e.g., InvalidParameter) may appear across dozens of APIs with different meanings.

Common Error Code Categories
CategoryCommon PatternsTypical Cause
Parameter errorInvalidParameter, InvalidParameterValue, MissingParameterTypo in parameter name, value outside enum range, missing required parameter
Resource not foundInvalidXxx.NotFound, ResourceNotFoundWrong resource ID, resource in a different region, already deleted
Resource statusInvalidXxx.InvalidStatus, IncorrectInstanceStatusCurrent resource state does not allow this operation (e.g., modifying config without stopping the instance)
Quota/limitQuotaExceeded, LimitExceededAccount quota or API rate limit exceeded
Permission deniedUnauthorizedOperation, ForbiddenIAM policy not authorized, sub-account lacks permissions
ThrottlingThrottling, RequestLimitExceededAPI call rate too high — reduce request rate or use exponential backoff
Server errorInternalError, ServiceUnavailableTemporary server-side issue, usually retryable
Resource conflictResourceInUse, DuplicateXxx, OperationConflictResource is in use or name already exists
When the user provides a specific API name

Query the API Swagger via step 2d and locate the error code in x-error-code. This is the most accurate approach because the same error code can have different meanings across APIs.

Combine the description (Chinese) and message (English) fields to provide:

  1. Error meaning
  2. Specific trigger conditions in the context of this API
  3. Troubleshooting steps and resolution suggestions
When the user provides only the error code
  1. Ask for context first: ask which API triggered the error — this enables precise diagnosis. The same InvalidParameter means entirely different things in RunInstances vs. CreateVpc.
  2. If the user provides a service name but no API name: infer the most likely API from the error pattern and context, then query its Swagger to confirm.
  3. Fallback search: if the user cannot provide more context, use the error code search endpoint:
text
GET https://api.volcengine.com/api/common/search/all?Query={error_code}&Channel=error_code

Each result contains:

  • Type: error_code
  • BizInfo.ServiceCode: service identifier
  • BizInfo.ServiceCn: service Chinese name
  • BizInfo.Version: version
  • URL: error code documentation link
  • Highlight: matched highlight text

Since the same error code appears across multiple services, results may be numerous. Filter by any context the user has provided (service name, operation type, scenario).

Step 4: Compose the Answer

Organize a clear, professional answer based on the question type. Core principle: center on the user's question — extract the information the user needs rather than dumping the entire Swagger.

Finding an API
  1. Recommend the API and explain why
  2. Briefly describe its functionality and use case
  3. List core required parameters
  4. If multiple candidates exist, compare their use cases and let the user choose
Querying Parameters
  1. State the HTTP method (GET/POST)
  2. Required parameters first: list with type, description, and enum values
  3. Use tree structure for nested parameters, marking required/optional at each level
  4. Parameter dependencies: highlight conditional requirements, mutual exclusions, and value constraints
  5. Describe the pagination pattern and default values separately
  6. Show the request example (from x-demo)
  7. Group optional parameters by function (filters, sorting, advanced config) and list briefly
Querying Response Structure
  1. List key return fields with type and description
  2. Show all possible values for enum fields
  3. Use tree structure for nested objects
  4. Show the response example (from x-demo responseDemo)
Querying Error Codes
  1. Error meaning (Chinese and English descriptions)
  2. Error category (parameter error / resource not found / permission denied, etc.)
  3. Common causes
  4. Specific troubleshooting steps and resolution suggestions
  5. For throttling errors, recommend a retry strategy
Browsing Service Capabilities
  1. Organize the API list by ApiGroup
  2. Show Action name + Chinese name + one-line description for each API
  3. If there are many APIs, prioritize core/commonly-used ones
Comparing APIs
  1. Describe the functional purpose of each API
  2. Compare applicable scenarios
  3. Compare parameter differences (which is simpler, which is more flexible)
  4. Provide a usage recommendation

Query Efficiency Tips

  • API name known: go directly to 2d — one step
  • Service name known: 2b -> 2c -> 2d, or search in parallel via 2e
  • Only a natural-language description: prefer 2e search — faster than browsing level by level
  • Completely uncertain: combine 2a (service list) + 2e (keyword search)
  • Error code lookup: if an API name is available, go to 2d; otherwise, ask the user for context first

Important Notes

  • Always fetch the latest data from the API Explorer endpoints — Volcengine APIs are updated frequently, so do not rely on memory
  • Match the answer language to the user's language (Chinese question -> Chinese answer, English -> English)
  • If the user's description is ambiguous, list possible options and ask for confirmation rather than guessing
  • If the user needs runnable SDK code, direct them to the volcengine-sdk-generator skill
  • If the user needs CLI-based operations, direct them to the volcengine-cli skill
  • When presenting parameter information, enum values, conditional rules, and value ranges in the description field are the most valuable content — do not omit them
  • If a network error occurs during queries, inform the user and suggest retrying later

Câu hỏi thường gặp

Kỹ năng AI Volcengine Api làm được gì?

Query and answer questions about Volcengine API specifications. Use when the user asks about API parameters, error codes, request methods, enum values, required fields, response structures, pagination, parameter dependencies, service capability lists, API availability, or API comparisons, even if they do not explicitly say "API". Typical intent includes checking what an action supports, which fields are required, what values a parameter accepts, why an API returns a specific error, how to pass nested or body parameters, how pagination works, what an API response contains, whether a batch op...

Vì sao nên dùng Volcengine Api trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Volcengine Api là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Volcengine Api trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/volcengine/volcengine-agent-toolkit/tree/main/plugins/volcengine-service-support/skills/volcengine-api. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Volcengine Api?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Volcengine Api với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Volcengine Api với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Volcengine Api có miễn phí không?

Có. Kỹ năng này được volcengine phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇