Recraft v3 SVG: Generating Vector Graphics by Invoking Recraft v3 via Text in an Agent

Introduction

When creating icons, illustrations, or UI decorations, scaling up bitmaps often leads to blurriness, while manually tracing SVGs is time-consuming. Writing the requirements as a prompt and letting the model generate scalable vector results directly is a more efficient path. Here is an introduction to recraft v3 svg on SkillHub: it encapsulates the Recraft v3 SVG capability hosted by dLazy into a standard Skill. Agents can invoke @dlazy/cli according to SKILL.md without needing to construct HTTP requests themselves.

What is this

recraft v3 svg (coordinates @user_f95f21b8/dlazy-recraft-v3-svg, current version 1.0.9) is a community-sourced (community) Skill categorized under design-media. The SkillHub description is: Generate high-quality SVG vector graphics from text using Recraft v3.

Maintenance and implementation side: The Skill is published by user_f95f21b8; the underlying CLI and API are provided by dlazyai (@dlazy/cli, pinned to 1.0.9 for this Skill). The Skill is essentially a thin wrapper for the dLazy API: prompts and parameters are sent to api.dlazy.com, and generated asset URLs are returned by files.dlazy.com.

The SkillHub page marks requires_api_key=true, so a dLazy API Key must be configured before use.

Core Features

Based on the SKILL.md within the Skill package, verified capabilities include:

  1. Text-to-Vector: Use the subcommand dlazy recraft-v3-svg with --prompt to describe the image; the model identifier is recraft-v3-svg.
  2. Aspect Ratio & Style: --aspect_ratio supports auto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9; --style can be Vector Art (default), Line Art, or Engraving.
  3. Reference Image: Examples show support for --image accepting a local path or a URL starting with https://files.dlazy.com/... (uploaded or referenced by the CLI).
  4. Debugging & Async: --dry-run prints the request body and cost estimate without actually calling the API; --no-wait returns a generateId, which can be polled using dlazy status <generateId> --wait; --timeout defaults to a maximum wait of 1800 seconds.
  5. Agent Trigger Keywords: Such as recraft svg, generate svg, text to image, etc. (see the “Trigger Keywords” section in the Skill documentation).

Upon success, the CLI returns a JSON envelope where result.outputs contains fields like url and mimeType for image resources (the documentation example shows a hosted link in image/png format, but the actual return should prevail).

Installation and Activation

1. Install SkillHub CLI (if not already installed)

Check or install according to the SkillHub installation instructions:

command -v skillhub && skillhub --version

If not installed, run the full installation script (recommended by documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install the Skill to the current Agent’s skills directory

SkillHub requires --dir to point to the directory actually recognized by the Agent; otherwise, the default ./skills/ might not be loaded. Common paths (same as official installation docs):

Environment skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ in the project

Install this Skill:

skillhub install @user_f95f21b8/dlazy-recraft-v3-svg --dir ~/.cursor/skills/

Replace ~/.cursor/skills/ with the corresponding path for your current client. After installation, restart or refresh the Skill list as required by the client.

Alternatively, let the Agent complete the installation by following the SkillHub page prompts and referencing https://skillhub.cn/install/skillhub.md.

3. Install and configure dLazy CLI

The Skill metadata requires npm / npx to be available on the local machine. Global installation (consistent with Skill declaration):

npm install -g @dlazy/cli@1.0.9

Or invoke on-demand:

npx @dlazy/cli@1.0.9 <command>

Configure the API Key (written to ~/.dlazy/config.json on Linux/macOS; %USERPROFILE%\.dlazy\config.json on Windows):

dlazy auth set YOUR_API_KEY

The Key can be obtained at dlazy.com/dashboard/organization/api-key; it can also be passed per-use via the environment variable DLAZY_API_KEY.

Typical Usage

First, check the subcommand help (the Skill requires the Agent to use this as the standard):

dlazy recraft-v3-svg -h

Basic Invocation (documentation example, including optional reference image):

dlazy recraft-v3-svg --prompt 'prompt text' --image '/path/to/image.png'

Using a Remote Reference Image:

dlazy recraft-v3-svg --prompt 'prompt text' --image 'https://files.dlazy.com/image.png'

To generate only without calling the API, use:

dlazy recraft-v3-svg --prompt 'your description' --dry-run

In environments like Cursor, the user simply describes the image in natural language; after reading the Skill, the Agent should execute the above CLI commands rather than fabricating image URLs.

Use Cases and Notes

Suitable for: Vector illustrations, icon sketches, and line-art style assets orchestrated by Agents; scenarios where the team already uses a dLazy account and is willing to send prompts and optional reference images to cloud inference.

Limitations and Notes:

  1. Billing and Quota: Calls consume dLazy organization credits; if insufficient_balance is returned, you need to recharge in the console (the Skill documentation provides a link to the credits settings page).
  2. Keys: Unconfigured or invalid Keys will result in unauthorized; the SkillHub tags already indicate that an API Key is required.
  3. Dependencies and Environment: Requires npm/npx within the Node ecosystem; the network must be able to access api.dlazy.com and files.dlazy.com.
  4. Data Paths: Local paths like --image will be uploaded to dLazy storage by the CLI; sensitive materials require self-evaluation of compliance.
  5. Versioning: Both the Skill and CLI are locked to 1.0.9; before upgrading, it is recommended to review changes at github.com/dlazyai/cli.

SkillHub Statistics (based on crawled data): Rating 100000, Downloads 1043, Installations 1.

Conclusion

recraft v3 svg connects the SVG generation capability of Recraft v3 to the general Skill workflow: SkillHub handles distribution and coordinates, while dLazy CLI handles authentication and invocation. If you are already using a client that supports Skills like Cursor / Claude Code, follow this article to install the Skill and @dlazy/cli@1.0.9, configure the Key, and you can drive vector graphics generation using natural language.

Official Entry Points:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye