Skip to main content
Create and revoke tokens at meigen.ai → Settings → API Keys. Each account supports up to 5 active tokens. Token format: meigen_sk_ followed by 32 characters. The full value is shown only at creation — copy it immediately. Pass the token as a Bearer credential on any authenticated endpoint:
curl -X POST https://www.meigen.ai/api/generate/v2 \
  -H "Authorization: Bearer meigen_sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a minimalist logo"}'
API tokens can only spend purchased credits. Daily free credits are not available via the API.