Skip to content
Back to skills

Glif Api Runner

ASecurity

Run Glif workflows via API. Use when executing AI image/text generation workflows or integrating Glif into apps.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsgobashnodeapi

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill glif-api-runner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Glif Api Runner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Glif Api Runner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-glif-api-runner/badge)](https://www.skillsdirectory.com/skills/majiayu000-glif-api-runner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: glif-api-runner
description: Run Glif workflows via API. Use when executing AI image/text generation workflows or integrating Glif into apps.
allowed-tools: Bash, Read, Edit
---

# 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

```bash
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):**
```json
{"id": "glif_id", "inputs": ["input1", "input2"]}
```

**Object (named):**
```json
{"id": "glif_id", "inputs": {"prompt": "value", "style": "anime"}}
```

## Response Structure

```json
{
  "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 consumed
- `error` - Error message if failed (still returns 200)

## Common Patterns

**Image generation:**
```bash
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:**
```json
{"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 `error` field
- Check `price` to verify credits were consumed
- Token issues return 401/403

## Finding Glif IDs

1. Go to glif.app and find a workflow
2. ID is in the URL: `glif.app/glifs/{GLIF_ID}`
3. Or use the "API" tab on any glif page

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.