Skip to main content

Text-to-Image Generation

Generates images from text prompts using the 0G Compute Network, supporting multiple resolutions and batch generation.

Install this skill

or
42/100

Security score

The Text-to-Image Generation skill was audited on Feb 25, 2026 and we found 22 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 77

Template literal with variable interpolation in command context

SourceSKILL.md
77const response = await fetch(`${endpoint}/images/generations`, {
medium line 122

Template literal with variable interpolation in command context

SourceSKILL.md
122const response = await fetch(`${endpoint}/images/generations`, {
medium line 146

Template literal with variable interpolation in command context

SourceSKILL.md
146console.log(`Image saved to ${outputPath}`);
medium line 170

Template literal with variable interpolation in command context

SourceSKILL.md
170console.log(`Generating ${i + 1}/${prompts.length}: "${prompts[i]}"`);
medium line 178

Template literal with variable interpolation in command context

SourceSKILL.md
178const response = await fetch(`${endpoint}/images/generations`, {
medium line 190

Template literal with variable interpolation in command context

SourceSKILL.md
190const outputPath = `${outputDir}/image-${i + 1}.png`;
medium line 222

Template literal with variable interpolation in command context

SourceSKILL.md
222const response = await fetch(`${endpoint}/images/generations`, {
medium line 229

Template literal with variable interpolation in command context

SourceSKILL.md
229throw new Error(`HTTP ${response.status}: ${await response.text()}`);
medium line 20

Access to .env file

SourceSKILL.md
20- `.env` with `PRIVATE_KEY`, `RPC_URL`, `PROVIDER_ADDRESS`
low line 62

Access to .env file

SourceSKILL.md
62const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 63

Access to .env file

SourceSKILL.md
63const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 66

Access to .env file

SourceSKILL.md
66const providerAddress = process.env.PROVIDER_ADDRESS!;
low line 109

Access to .env file

SourceSKILL.md
109const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 110

Access to .env file

SourceSKILL.md
110const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 113

Access to .env file

SourceSKILL.md
113const providerAddress = process.env.PROVIDER_ADDRESS!;
low line 158

Access to .env file

SourceSKILL.md
158const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 159

Access to .env file

SourceSKILL.md
159const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 162

Access to .env file

SourceSKILL.md
162const providerAddress = process.env.PROVIDER_ADDRESS!;
low line 207

Access to .env file

SourceSKILL.md
207const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 208

Access to .env file

SourceSKILL.md
208const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 211

Access to .env file

SourceSKILL.md
211const providerAddress = process.env.PROVIDER_ADDRESS!;
low line 139

Buffer.from base64 decode

SourceSKILL.md
139fs.writeFileSync(outputPath, Buffer.from(imageData.b64_json, 'base64'));
Scanned on Feb 25, 2026
View Security Dashboard

Install this skill with one command

/learn @0gfoundation/text-to-image
GitHub Stars 8
Rate this skill
Categorydevelopment
UpdatedMarch 29, 2026
0gfoundation/0g-agent-skills