
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
text-se-image
Advanced tools
A simple Node.js package to generate AI image URLs. Just pass a prompt (and optionally choose a model), and get back a direct image URL.
flux model)npm install text-se-image
const { generateImage } = require("text-se-image");
(async () => {
const url = await generateImage("A futuristic city skyline at sunset");
console.log(url);
})();
import { generateImage } from "text-se-image";
const url = await generateImage("A futuristic city skyline at sunset");
console.log(url);
generateImage(prompt, model?)Generates an image URL from a given prompt.
prompt (string, required) → The text description of the image.
model (object, optional) → Choose which model to use.
{ id: "flux" }const url = await generateImage("A cyberpunk robot", { id: "flux-schnell" });
console.log(url);
Input:
await generateImage("A cute cat wearing glasses");
Output:
https://image.pollinations.ai/prompt/A%20cute%20cat%20wearing%20glasses?width=512&height=512&seed=42&model=flux&nologo=true
You can pass any of these models in the second parameter:
| Model ID | Description |
|---|---|
flux | High-quality image generation (default) |
flux-schnell | Faster, lightweight version of Flux |
turbo | Ultra-fast but lower quality images |
majestic | Stylized, artistic outputs |
anime | Optimized for anime/manga style images |
realistic | More photorealistic images |
✅ Example:
const url = await generateImage("An anime-style dragon", { id: "anime" });
console.log(url);
<img> tags or fetch it in your app.width = 512, height = 512, seed = 42, model = flux.Rishav Tiwari — Software Developer with a passion for AI, automation, and building developer tools. When I’m not coding, I love exploring new ideas, experimenting with AI projects, and helping others learn tech.
MIT © 2025 Rishav Tiwari
FAQs
Generate image using prompt.
We found that text-se-image demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.