Skip to main content

Get started in three steps

Generate your first AI image with the Firemoon Studio API.

Step 1: Create your API key

Create your API key directly from the Firemoon Studio dashboard:
  1. Sign in to Firemoon Studio
  2. Navigate to the API Keys page
  3. Click “Add key” and provide a description
  4. Copy your API key immediately - you won’t be able to see it again!
You can create multiple API keys for different environments (development, staging, production).

Step 2: Make your first API call

Generate your first image:
const response = await fetch('https://firemoon.studio/api/v1/flux/dev', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    prompt: 'A beautiful sunset over mountains',
    num_images: 1,
    image_size: 'landscape_4_3',
    guidance_scale: 3.5
  })
});

const result = await response.json();
console.log('Generated image:', result.images[0].url);
Replace YOUR_API_KEY with the API key you created in your dashboard.
Create a short video with our Kling integration:
const response = await fetch('https://firemoon.studio/api/v1/kling/kling-2-1-master', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    prompt: 'A butterfly emerging from its chrysalis',
    duration: '5',
    aspect_ratio: '16:9'
  })
});

const result = await response.json();
console.log('Generated video:', result.videos[0].url);

Next steps

Now that you’ve made your first API call, explore:

API Reference

Complete API documentation with all endpoints.

Provider Guides

Learn about FLUX, Ideogram, Kling, and other providers.

Authentication

Best practices for API key management.

Error Handling

Handle errors and edge cases gracefully.
Need help? Contact us at hi@firemoon.studio.