Glif API Runner
Apps & Automationglif-api-runnerGlif API Runner is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Run Glif workflows via API. Use when executing AI image/text generation workflows or integrating Glif into apps.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/glif-api-runner/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/glif-api-runner, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Glif API Runner
Execute Glif workflows programmatically via the Simple API.
API Basics
Base URL: https://simple-api.glif.app
Auth: Bearer token from https://glif.app/settings/api-tokens
Running a Glif
curl -X POST https://simple-api.glif.app \
-H "Authorization: Bearer $GLIF_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "clgh1vxtu0011mo081dplq3xs",
"inputs": ["your prompt here"]
}'
Input Formats
Array (positional):
{"id": "glif_id", "inputs": ["input1", "input2"]}
Object (named):
{"id": "glif_id", "inputs": {"prompt": "value", "style": "anime"}}
Response Structure
{
"output": "https://res.cloudinary.com/.../image.png",
"outputFull": {"type": "IMAGE", "value": "..."},
"price": 5,
"nodes": {...}
}
Key fields:
output- Final result (URL for images, text for text)price- Credits consumederror- Error message if failed (still returns 200)
Common Patterns
Image generation:
curl -X POST https://simple-api.glif.app \
-H "Authorization: Bearer $GLIF_API_TOKEN" \
-d '{"id": "IMAGE_GLIF_ID", "inputs": ["a cat wearing a hat"]}' \
| jq -r '.output'
With visibility:
{"id": "glif_id", "inputs": [...], "visibility": "PUBLIC"}
Strict mode (fail on missing inputs):
https://simple-api.glif.app?strict=1
Error Handling
- API returns 200 even on errors - check
errorfield - Check
priceto verify credits were consumed - Token issues return 401/403
Finding Glif IDs
- Go to glif.app and find a workflow
- ID is in the URL:
glif.app/glifs/{GLIF_ID} - Or use the "API" tab on any glif page