Firemoon
Firemoon Studio is an AI platform specializing in high-quality image and video generation models, specifically fine-tunes and state-of-the-art models.
The Firemoon provider for the AI SDK enables you to use these models with a simple, consistent API:
- Image generation: Generate images today, with early video model support.
- Model variety: Access multiple model families through a single provider.
- Provider options: Pass model-specific parameters when you need more control.
Setup
The Firemoon provider is available via the @firemoon/ai-provider module. You can install it with:
$ pnpm add @firemoon/ai-provider
$ npm install @firemoon/ai-provider
$ yarn add @firemoon/ai-provider
$ bun add @firemoon/ai-provider
Provider Instance
Create a Firemoon provider instance with your API key:
You can obtain your Firemoon API key from the Firemoon Dashboard.
Image Generation
Firemoon supports various image generation models through the image() method:
Available Models
flux/dev- Fast, high-quality image generationflux-2-dev/edit- Fast, high-quality image editing with Flux 2nano-banana- Fast, high-quality image generationnano-banana/edit- High quality image editing by Gemini, also known as Gemini 2.5 Flash Imagenano-banana-pro/edit- High quality image editing by Gemini 3 Profiremoon-studio/memphis-style- Memphis style image generation
You can browse all available models on the Firemoon Studio Models page.
Parameters
Size
You can specify the image size using the size parameter:
Or use aspect ratio mapping:
Seed
For reproducible results, you can specify a seed:
Custom Parameters
You can pass additional parameters specific to Firemoon models:
Fine-tuned Models
You can use a fine-tuned model by passing the model id to the image() method:
Quickstart Examples
generateImage
Advanced features
- Aspect ratio mapping: Use
aspectRatiofor convenient presets instead of hard-coding sizes. - Reproducible outputs: Provide
seedto make results more repeatable. - Model-specific options: Use
providerOptions.firemoonto pass through Firemoon parameters.
Error handling
The Firemoon provider throws APICallError for API-related errors: