Kling Image o1: Text-to-Image and Image-to-Image via Agent

Introduction

When creating or modifying images in environments like Cursor or Claude Code, a common practice is to manually write HTTP requests, manage authentication and uploads yourself, and then paste the returned URL back into the conversation. This involves many steps, and parameters often don’t align with the official documentation. The following introduces kling image o1 on SkillHub (coordinate @user_f95f21b8/dlazy-kling-image-o1): it encapsulates the image capabilities of Kling o1 into a standard SKILL.md, allowing the Agent to call the dLazy CLI kling-image-o1 subcommand according to the documentation, unifying text-to-image and reference image-to-image workflows.

What is this

kling image o1 is a design-media category Skill from community sources (community). The SkillHub publisher is user_f95f21b8, and the current listed version is 1.0.4. The official description is: Generate exquisite images with Kling o1 model. Supports text-to-image and image-to-image.

The skill itself is a thin wrapper around the dLazy hosted API: the maintainers specify in the documentation that the CLI comes from dlazyai (github.com/dlazyai/cli), inference requests are sent to api.dlazy.com, and local reference images are uploaded to oss.dlazy.com via the CLI. The SkillHub tags include requires_api_key=true, so a dLazy API Key must be configured before use.

Core Features

Based on the SKILL.md / SKILL-cn.md within the skill package, the verified capabilities are as follows:

  1. Text-to-image: Submit a prompt via --prompt to generate an image.
  2. Image-to-image / Reference image: Pass up to 10 reference images via --images, supporting local paths or URLs.
  3. Output specifications: --clarity can be 2k, 4k (default 2k); --aspect_ratio supports 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, auto (default 16:9).
  4. Advanced parameters: --promptRefs, --input (JSON, supporting inline, @file, or stdin); --dry-run estimates costs without actually calling the API; async scenarios can use --no-wait and --timeout (default wait limit 1800 seconds).
  5. Agent trigger words (facilitating skill invocation in conversations): such as “kling o1”, “kling image”, “text-to-image, image-to-image”, etc. See the “Trigger Keywords” section in the skill documentation.

On success, the CLI returns JSON with kind as urls, and data.urls contains the result links hosted on oss.dlazy.com.

Installation and Activation

1. Install the SkillHub CLI (if not already installed)

Check or install according to the SkillHub installation instructions:

command -v skillhub && skillhub --version

If not installed, you can execute the full installation script (recommended in documentation):

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

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

When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, it may default to ./skills/ and not be loaded. Common paths (excerpted from SkillHub documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example command to install this Skill:

skillhub install @user_f95f21b8/dlazy-kling-image-o1 --dir ~/.cursor/skills/

The SkillHub page also supports handing the prompt below to an AI to let it complete the installation according to the installation documentation:

Please install `@user_f95f21b8/dlazy-kling-image-o1` based on https://skillhub.cn/install/skillhub.md.

3. Install and configure the dLazy CLI

The skill metadata requires npm and npx on the local machine and fixes the version to @dlazy/cli@1.0.8:

npm install -g @dlazy/cli@1.0.8

Or call it on-demand without global installation:

npx @dlazy/cli@1.0.8 <command>

Configure the API Key (you can also use the environment variable DLAZY_API_KEY):

dlazy auth set YOUR_API_KEY

The Key is saved in ~/.dlazy/config.json (on Windows: %USERPROFILE%\.dlazy\config.json). Get it at: dlazy.com/dashboard/organization/api-key.

After installing or upgrading the Skill, restart or refresh the Agent according to your client’s instructions to load the new skill.

Typical Usage

The skill requires the Agent to execute dlazy kling-image-o1 to get results. First, view the full parameters:

dlazy kling-image-o1 -h

Text-to-image example (prompt only):

dlazy kling-image-o1 --prompt 'An orange cat sitting on a windowsill, afternoon warm light, film texture'

With reference image (the parameter name in the help is --images; the skill documentation example writes --image, but prioritize the -h output):

dlazy kling-image-o1 --prompt 'Keep the subject, switch to a cyberpunk night scene background' --images '/path/to/reference.png'

Using a remote reference image and specifying clarity and aspect ratio:

dlazy kling-image-o1 \
  --prompt 'Same composition, watercolor illustration style' \
  --images 'https://oss.dlazy.com/image.png' \
  --clarity 4k \
  --aspect_ratio 1:1

You can use --dry-run before calling to view the payload and cost estimation; for long tasks, you can combine it with --no-wait and then poll using dLazy CLI’s status subcommand (see the skill’s error handling and async instructions).

Use Cases and Notes

Who it’s for

  • Developers or designers already using Cursor / Claude Code / Codex etc., who want to drive Kling o1 image generation or modification with natural language without repeatedly piecing together APIs in conversations.
  • Teams willing to use dLazy accounts and credits and accept that prompts and reference images are uploaded to their cloud inference and storage.

Limitations and Notes

  1. Paid quotas: 401 means the Key is invalid or missing; 503 with code: "insufficient_balance" indicates insufficient balance, requiring a top-up at dLazy Credit Settings.
  2. Compliance and Security: In case of async failures or policy interception, the backend may return specific reasons such as Prompt violates safety policy (504 type scenarios in the skill error table).
  3. Local files: Incorrect paths will trigger 502 type local read failures; uploading reference images means the files enter oss.dlazy.com via the CLI.
  4. Versions: The SkillHub list is 1.0.4, but the front matter inside the skill package may be 1.0.2 and bound to CLI 1.0.8; prioritize the package pulled by your skillhub install and dlazy kling-image-o1 -h.
  5. Community Skill: The source is the community. Before installation, you can check the rating and download count on SkillHub (current data: rating 100000, downloads 1163, installs 3), and review the CLI source code yourself.

Conclusion

kling image o1 converges Kling o1’s text-to-image and reference image-to-image into an executable dlazy kling-image-o1 workflow for the Agent: The Skill handles trigger words and parameter conventions, while the dLazy CLI handles authentication, uploads, and returning URLs. If you want to stably call Kling o1 image capabilities within your Agent, you can install this skill from SkillHub and configure the API Key.

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

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

Xiaoye