autoglm-generate-image

Generate images from text prompts via the AutoGLM HTTP API.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill autoglm-generate-image-augustscl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autoglm-generate-image
Source: https://github.com/augustscl/awesome-xiawang-skills/tree/main/autoglm-generate-image
Command: npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill autoglm-generate-image-augustscl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines generating images from plain-language prompts by automating token retrieval, request signing, and API submission so users can quickly produce visuals without manual HTTP handling.

Core Features & Use Cases

  • Automated Auth: Automatically retrieves a Bearer token from a local service and ensures it is used in the Authorization header.
  • Signed Requests: Builds MD5-based X-Auth-Sign and timestamp headers required by the AutoGLM image generation endpoint.
  • Simple CLI Script: Includes a ready-to-run Python script that accepts a text prompt and returns the API JSON response with an image_url, suitable for content creation, prototyping, or automated media pipelines.
  • Use Case: Quickly generate concept images for social posts, marketing visuals, or illustrative assets by providing a descriptive prompt.

Quick Start

Run the included Python script with a short descriptive prompt like "Australian lobster" to obtain a generated image URL.

Frequently Asked Questions about autoglm-generate-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images from text using the AutoGLM API in Python?

To generate images from text, you run the provided Python script which sends a POST JSON body containing your text prompt to the AutoGLM API endpoint and returns a JSON response with an image_url.

Do I need a local token endpoint to use AutoGLM for image generation?

Yes, you need a local token endpoint running at http://127.0.0.1:53699/get_token. The Skill automatically retrieves a Bearer token from this service to authorize your image generation requests.

Can I automate AutoGLM image generation for marketing visuals without manual HTTP handling?

Yes, you can automate AutoGLM image generation for marketing visuals by using the included CLI script. It handles token retrieval, request signing, and API submission to output an image URL automatically.

What format does the AutoGLM API return when generating images from a descriptive prompt?

The AutoGLM API returns a JSON response containing an image_url when you submit a POST JSON body with a text field. This URL provides direct access to your generated visual asset.