Getting Started
Quick Start
Generate your first AI photo with MakePhotos in under 5 minutes.
Quick Start
Get up and running with MakePhotos AI in three steps.
1. Get an API key
Sign up at makephotos.ai, subscribe to a plan, and create an API key from the developer dashboard.
Your API key looks like mk_live_a3f8... — store it securely. You'll only see it once.
2. Install the SDK
npm install makephotosInitialize the client:
import MakePhotos from 'makephotos';
const client = new MakePhotos({
apiKey: process.env.MAKEPHOTOS_API_KEY,
});3. Generate a photo
const result = await client.generate.create({
imageUrl: 'https://example.com/product.jpg',
type: 'product',
style: 'studio',
});
console.log(result.resultUrl);
// https://res.cloudinary.com/.../makephotos/outputs/...That's it. The resultUrl is a permanent Cloudinary URL you can use directly.
What just happened?
- The SDK sent your image URL and style preferences to the MakePhotos API
- The server deducted credits from your account (1 credit at 1K resolution)
- Google Gemini generated a studio-quality version of your product
- The result was uploaded to Cloudinary and the URL was returned
Next steps
- Authentication — API key security and best practices
- SDK Reference — All generation options (styles, aspect ratios, resolutions)
- Upload images — Upload local files when you don't have a public URL
- Credit system — How credits work and what things cost