Back to home

Quickstart

Get your first generation in under 5 minutes.

Last updated: August 2026

1. Get an API key

Sign in to MuseAI, open Settings, and copy your API key. Your key is shown once; store it securely.

2. Generate your first icon

A single POST request generates one icon. Each generation costs 1 credit.

curl -X POST https://api.museai.xeycompany.com/v1/generate \
  -H "Authorization: Bearer $MUSEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a minimalist bird icon for a social app",
    "type": "icon",
    "style": "flat"
  }'

3. Poll for the result

Generation is async. Poll the status endpoint until status is completed.

curl https://api.museai.xeycompany.com/v1/generations/{id} \
  -H "Authorization: Bearer $MUSEAI_API_KEY"

// Response
{
  "id": 1284,
  "status": "completed",
  "result_url": "https://storage.museai.xeycompany.com/icon_abc.png"
}

4. Done!

You have your first AI-generated asset. Check out Authentication and Webhooks for the full picture.