Text-to-Image Generation
Generates images from text prompts using the 0G Compute Network, supporting multiple resolutions and batch generation.
Install this skill
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
Template literal with variable interpolation in command context
| 77 | const response = await fetch(`${endpoint}/images/generations`, { |
Template literal with variable interpolation in command context
| 122 | const response = await fetch(`${endpoint}/images/generations`, { |
Template literal with variable interpolation in command context
| 146 | console.log(`Image saved to ${outputPath}`); |
Template literal with variable interpolation in command context
| 170 | console.log(`Generating ${i + 1}/${prompts.length}: "${prompts[i]}"`); |
Template literal with variable interpolation in command context
| 178 | const response = await fetch(`${endpoint}/images/generations`, { |
Template literal with variable interpolation in command context
| 190 | const outputPath = `${outputDir}/image-${i + 1}.png`; |
Template literal with variable interpolation in command context
| 222 | const response = await fetch(`${endpoint}/images/generations`, { |
Template literal with variable interpolation in command context
| 229 | throw new Error(`HTTP ${response.status}: ${await response.text()}`); |
Access to .env file
| 20 | - `.env` with `PRIVATE_KEY`, `RPC_URL`, `PROVIDER_ADDRESS` |
Access to .env file
| 62 | const provider = new ethers.JsonRpcProvider(process.env.RPC_URL); |
Access to .env file
| 63 | const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider); |
Access to .env file
| 66 | const providerAddress = process.env.PROVIDER_ADDRESS!; |
Access to .env file
| 109 | const provider = new ethers.JsonRpcProvider(process.env.RPC_URL); |
Access to .env file
| 110 | const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider); |
Access to .env file
| 113 | const providerAddress = process.env.PROVIDER_ADDRESS!; |
Access to .env file
| 158 | const provider = new ethers.JsonRpcProvider(process.env.RPC_URL); |
Access to .env file
| 159 | const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider); |
Access to .env file
| 162 | const providerAddress = process.env.PROVIDER_ADDRESS!; |
Access to .env file
| 207 | const provider = new ethers.JsonRpcProvider(process.env.RPC_URL); |
Access to .env file
| 208 | const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider); |
Access to .env file
| 211 | const providerAddress = process.env.PROVIDER_ADDRESS!; |
Buffer.from base64 decode
| 139 | fs.writeFileSync(outputPath, Buffer.from(imageData.b64_json, 'base64')); |
Install this skill with one command
/learn @0gfoundation/text-to-image