Get config /skill/config.json

Fetches the region endpoints, token policy type, tool list, and default parameters available to your account. Call it once at startup and cache the gid.

Request

FieldValue
MethodPOST
Hostwapi-skill.vmake.ai
Path/skill/config.json
Content-Typeapplication/json
AuthRequired, SDK-HMAC-SHA256. See Signing

Request body

{
  "gid": "",
  "version": "v2.0.3",
  "supported_schemas": ["v2", "v1"]
}
FieldRequiredDescription
gidNoGroup ID. Send an empty string on the first call. The response returns one to reuse in later requests.
versionRecommendedThe caller's catalog version. The server uses it to set need_update and to decide which tools to return. Tools added in v2.0.3, such as Seedance video generation and Nano Banana Pro image generation, are returned only when you send v2.0.3 or later.
supported_schemasRecommendedCatalog schemas the caller can parse, in order of preference. A V2 server picks the first match in the list.

Response

Example of a successful response (V2 schema):

{
  "meta": { "code": 0, "msg": "ok" },
  "response": {
    "schema": "v2",
    "latest_version": "2.0.0",
    "need_update": true,
    "update_message": "...",
    "gid": "sk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "notices": [
      {
        "code": "skill_upgrade_available",
        "level": "warning",
        "message": "Your Skill version is out of date...",
        "dedupe_key": "skill_upgrade_available",
        "action_url": "https://vmake.ai/developers"
      }
    ],
    "algorithm": {
      "regions": {
        "cn-north-4": "strategy.stariidata.com"
      },
      "token_policy_type": "mtai",
      "invoke": {
        "SKM0006": {
          "name": "Watermark - Remove Image Watermark",
          "description": "Removes watermarks from images.",
          "media_type": "image",
          "task": "/v1/eraser_watermark_v2_async",
          "task_type": "mtlab",
          "params": { "parameter": { "automatic": true, "requester": "design_studio", "rgb_mask": true, "target": "watermark" } },
          "material_id": "SKM0006",
          "max_duration": 600,
          "max_size": 314572800,
          "max_width": 4096,
          "max_height": 4096
        }
      }
    }
  }
}

Top-level fields

FieldDescription
meta.codeBusiness code. 0 means success. Otherwise see meta.msg
response.schemaConfig schema version. The current stable value is "v2"
response.gidGroup ID. Persist it and reuse it in later requests
response.need_update / update_messageSDK version notice
response.noticesArray of notices, such as upgrade reminders and quota warnings
response.algorithm.regionsRegion → tool endpoint
response.algorithm.token_policy_typeToken policy type, used as the type parameter of /ai/token_policy
response.algorithm.invokeTool list

Tool entry fields

FieldDescription
material_idTask ID, the same as the key, such as SKM00xx. Send it as task in quota requests. Use the task path below when submitting
name / descriptionDisplay text
media_typeimage / video
taskUnderlying tool task path, sent as task when submitting
task_typemtlab / speedup / workflow / inference
paramsDefault parameters, deep-merged with your input when you submit
params_schemaOptional JSON Schema describing the fields you can override
profileOptional fixed profile, overridden as needed when you submit
input_mediaOptional limits on the number and type of inputs
max_duration / max_size / max_width / max_heightPer-file limits

Typical use

  1. Call it once at startup and cache gid, regions[region], and invoke.
  2. Before submitting, read invoke[material_id].task and the default parameters, and deep-merge them with your input.
  3. Fetch it again periodically (for example every 24 hours) or when need_update=true.
  4. If notices contains entries with level of warning or higher, surface them in your UI or logs.

cURL example

First define the api function from the HTTP API quick start. Fetching config does not consume quota.

config=$(api POST "$platform/skill/config.json" '{"gid":"","version":"v2.0.3","supported_schemas":["v2"]}')
region_name=$(jq -er '.response.algorithm.regions | keys[0]' <<< "$config")
printf '%s\n' "$config" | jq '{meta, gid: .response.gid, regions: .response.algorithm.regions, tool: .response.algorithm.invoke.SKM0006}'

Check that meta.code is 0 and that the response includes gid and the config for the image watermark removal tool SKM0006. region_name holds the first region in regions. Set it to another key if your account uses a different region.

Errors

HTTPmeta.codeAction
2000Success
200Non-zeroRead meta.msg. Typical causes: invalid gid, outdated version, or none of supported_schemas supported
401 / 403-Check the signature, clock, and whether the AK is valid
5xx-Retry with backoff

Next steps