Sign in to MuseAI, open Settings, and copy your API key. Your key is shown once; store it securely.
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"
}'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"
}You have your first AI-generated asset. Check out Authentication and Webhooks for the full picture.