Skip to content

Conversation

@microfox-git
Copy link

@microfox-git microfox-git bot commented Jul 6, 2025

Automated PR created from issue #569.

Request Type: pkg-create
Query: Create a package for Suno org
URL: https://docs.sunoapi.org/suno-api/intro

Notes:
Need to support API Authentication

Closes #569

@microfox-git
Copy link
Author

microfox-git bot commented Jul 6, 2025

Packagefox: Research Report

Step Status Details Token Usage Total Tokens
📝 generateMetadata API Name: Suno
Package: @microfox/suno
Auth Type: auto
Auth SDK: N/A
392 + 64 = 456 456
🔗 extractLinks Total Links: 17
Base URL: https://docs.sunoapi.org/suno-api/intro
- -
🔍 analyzeLinks Useful Links: 1
Total Links: 17
Filtered Links: 1
Setup Instructions: Found
295 + 81 = 376 376
📄 extractContentFromUrls Successfully Extracted: 1
Skipped URLs (up to date): 0
Failed URLs: 0
Total Content Length: 0.79 KB
Average Content Length: 0.79 KB
- -
📊 summarizeContent Summary Length: 4.36 KB
Input Length: 0.85 KB
Compression Ratio: 19.39%
Saved at: /home/runner/work/microfox/microfox/packages/suno/docSummary.md
471 + 1095 = 1566 1566

Total Usage: Tokens: 2398 | Cost: $0.0153

@microfox-git
Copy link
Author

microfox-git bot commented Jul 6, 2025

Packagefox: Code Generation Report

Generated Files

File Size (bytes)
src/SunoSdk.ts 1987
src/types/index.ts 1444
src/schemas/index.ts 1408
src/index.ts 128

Setup Information

  • Auth Type: apikey

  • Setup Info: To use the Suno SDK, you need to obtain an API key from Suno. Follow these steps:

  1. Visit the Suno API Key Management Page (URL to be confirmed with Suno).
  2. Create an account or log in to your existing account.
  3. Navigate to the API section and generate a new API key.
  4. Copy the API key and keep it secure.

To use the SDK, you can either pass the API key directly to the SDK constructor or set it as an environment variable:

  • Environment variable name: SUNO_API_KEY

Example usage:

import { createSunoSDK } from '@microfox/suno';

// Using environment variable
const sunoSDK = createSunoSDK();

// Or passing the API key directly
const sunoSDK = createSunoSDK({ apiKey: 'your-api-key-here' });

Make sure to keep your API key secure and never share it publicly. If you suspect your API key has been compromised, reset it immediately through the Suno API Key Management Page.

The SDK uses the Fetch API, which is available in Node.js environments version 18 and above. If you're using an older version of Node.js, you may need to use a polyfill for Fetch.


Total Usage: Total Bytes: 4967 | Tokens: 29681 | Cost: $0.1245

@microfox-git
Copy link
Author

microfox-git bot commented Jul 6, 2025

Packagefox: Documentation Report

Step Status Details Error
📝 generate Phase 1: Environment keys and dependencies generated
Phase 2: Constructor and function documentation generated
✅ validate Constructor Docs: 2100
Functions Docs: 2
Env Keys: 1
💾 save constructor: createSunoSDK
functions: 2
envKeys: 1

Total Usage: Tokens: 213896 | Cost: $0.9128

@microfox-git
Copy link
Author

microfox-git bot commented Jul 6, 2025

Packagefox: Build Report

Step Status Details Error
🏗️ build attempt: 2/5

| 🔧 fix | ✅ | attempt: 1/5 | |

Total Usage: Tokens: 217527 | Cost: $0.9321

Total Usage: Tokens: 217527 | Cost: $0.9321


Total Usage: Tokens: 217527 | Cost: $0.9321

@microfox-git
Copy link
Author

microfox-git bot commented Jul 6, 2025

🎉 Successfully built @microfox/suno 😉

  Fantastic! Your package @microfox/suno has been built successfully and is ready to rock! 🚀

  ## 📊 Package Stats
  - Total Functions: 2 powerful functionalities at your fingertips
  - Estimated Build Cost: $0.932123$
  - Authentication: apikey based security
  
  ## 📦 Where to Find Your Package
  
  ✨ GitHub: Check out the complete source in [packages/suno](https://github.com/microfox-ai/microfox/tree/main/packages/suno)
  
  📥 NPM: Ready to install from the [NPM registry](https://www.npmjs.com/package/suno)
  run `npm install @microfox/suno` to install the package.

  Note: we will deploy all built packages at the midnight hour. so will have to wait until then to use the package.
  
  ## 🤝 Join us
  
  Join our amazing developer community on [Discord](https://discord.gg/kUuJFvEtJ6) - we're on a mission to build something incredible together (100% opensource all software)!
  
  Keep building awesome things! 🌟
  
  With excitement,
  Your Microfox 🦊
  
  P.S. Don't forget to star ⭐ our repo if you like what we're doing!

@microfox-git
Copy link
Author

microfox-git bot commented Jul 6, 2025

📊 Ai Usage Statistics Summary

Total Usage

  • Total Tokens: 217,527
  • Total Cost: $0.9321

Model Breakdown

gemini-1.5-pro

  • Prompt Tokens: 1,158
  • Completion Tokens: 1,240
  • Total Tokens: 2,398
  • Cost: $0.0153
  • Cost per Token: $0.000006

claude-3-5-sonnet-20240620

  • Prompt Tokens: 27,936
  • Completion Tokens: 2,978
  • Total Tokens: 30,914
  • Cost: $0.1285
  • Cost per Token: $0.000004

gemini-2.5-pro-preview-06-05

  • Prompt Tokens: 157,990
  • Completion Tokens: 26,225
  • Total Tokens: 184,215
  • Cost: $0.7884
  • Cost per Token: $0.000004

This usage data has been reset for the next session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packagefox: Create a package for Suno org

1 participant