Kling 3.0: Text to Image

This ComfyUI workflow leverages the Kling 3.0 model to transform text prompts into high-quality images. The core of this workflow is the KlingImageGenerationNode, which processes the input text to generate a visually rich and accurate representation of the described scene. This node is specifically designed to interpret complex language constructs, making it ideal for creating detailed and nuanced images. The workflow concludes with the SaveImage node, which ensures that the generated image is stored efficiently for further use or sharing. This workflow is particularly useful for artists, content creators, and developers who need to quickly prototype visual concepts based on textual descriptions.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

api_kling_v3_t2i.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "Kling 3.0: Text to Image" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_kling_v3_t2i_api.json");

const job = await client.run(wf);
await job.getOutputs("29")[0].toFile("output.png"); // SaveImage

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates