AirGraphic is built to be driven by an agent. Hand your assistant one of the prompts below and it will set itself up, call the API, and return a finished infographic.Documentation Index
Fetch the complete documentation index at: https://docs.airgraphic.io/llms.txt
Use this file to discover all available pages before exploring further.
Install
Pick whichever path fits the agent you’re using.Paste a prompt
The fastest path. Copy one of these into Claude, Claude Code, ChatGPT, Codex, OpenClaw, Hermes, or any other agent that can read URLs and call HTTP APIs. One-shot generation:docs-example: agent-prompt-now
docs-example: agent-prompt-setup
llms.txt, which is the
LLM-friendly index of every doc page in markdown form. Most modern agents
will fetch it, derive the request shape from the OpenAPI spec, and be
ready to call AirGraphic on the next user message.
Drop in the skill file
For agent hosts that load YAML-frontmatter skills (Claude projects, Cursor rules, custom agent SDKs), grab the canonical skill file: docs.airgraphic.io/agent-skill.md It contains the install, authentication, request shape, and trigger patterns in one document the agent can load.Authentication
Create a key at airgraphic.io/app/api-keys and expose it to your agent. Most users set an environment variable:ag_, inherit your workspace plan and rate limits, and
can be revoked from the same page at any time.
Compatible agents
AirGraphic works with any agent that can read a URL and make an HTTP call. The skill has been tested with:- Claude and Claude Code
- ChatGPT and OpenAI Codex
- OpenClaw, Hermes, and other autonomous agent platforms
- Cursor, Windsurf, and other agentic IDEs
- Custom agents built on the Anthropic, OpenAI, or AI SDK clients
https://docs.airgraphic.io/llms.txt and send a
Bearer header, it can use AirGraphic.
Request pattern
The agent shouldPOST /api/generate, then poll GET /api/jobs/{id}
until the status is terminal.
/api/jobs/{jobId} with the same bearer key every 2.5 seconds
until the status is completed, failed, or refunded.
What an agent can ask for
Pick one primary source per request:- A public URL (article, YouTube, TikTok, Instagram, LinkedIn, X, Reddit)
- Pasted text
- A PDF, PPTX, or image upload
brandUrl— any public site; AirGraphic extracts fonts and palettebrandProfileId— a saved brand from the user’s workspaceaspectRatio—9:16,1:1,4:5,16:9outputFormat—png,jpeg,webpoutcome— target surface (LinkedIn carousel, Instagram post, blog header, etc.)styleNotes— short free-form styling guidancereferenceImage— for style matching or as an explicit visual asset
Example agent conversations
Once the skill is loaded, these all work:- “Make me a LinkedIn carousel from this Substack post: [URL]”
- “Turn this PDF into a 1:1 Instagram post in Acme’s brand”
- “Generate a story-format infographic on Q3 trends using these stats: …”
- “Re-run that same generation but in Stripe’s brand colors”
outcome from the user’s intent, aspectRatio from the target
surface), calls the API, polls until the image is ready, and returns the
imageUrl.
Links
- Quickstart — humans calling the API directly
- Reference — full API schema and rate limits
- Pricing — plans, credits, and per-key rate limits
- Source skill file — markdown version of this page
- llms.txt — LLM-friendly index of all docs