Connect your app to Fireworks AI
You can connect your Lovable app to Fireworks AI to use its advanced AI features like text and image generation, or to fine-tune models. This lets your app use specific open models or custom models hosted on Fireworks AI.
Anyone building an app in Lovable who needs to use specific open AI models, custom models, or fine-tune models for their app's features.
Do this, in order
- 1
Sign in to your Fireworks AI account and go to the API keys section.
You need a special key from Fireworks AI to allow Lovable to securely connect to their services.
- 2
Create a new API key, give it a clear name like 'Lovable integration', and copy the key that starts with 'fw_'.
This key is your app's password to Fireworks AI, so you must copy it and keep it safe.
- 3
In Lovable, go to 'Connectors', select 'Fireworks AI', and click 'Add connection'.
This starts the process of setting up the connection between Lovable and Fireworks AI.
- 4
Give your connection a display name (e.g., 'Fireworks AI Prod') and paste the API key you copied from Fireworks AI.
The display name helps you identify this connection in Lovable, and the API key authenticates your app with Fireworks AI.
- 5
Decide who in your Lovable workspace can use this connection, then click 'Connect'.
This sets up sharing for the connection, and Lovable will verify the key to ensure it works before saving.
- 6
Ask Lovable in your project chat to link your project to the Fireworks AI connection you just created.
Linking the connection makes the Fireworks AI features available for use within that specific project.
Paste this into your project
Connect my app to Fireworks AI. I want to use it for text generation, image generation, and embeddings. I have my API key ready.
Words decoded
- Inference platform
- A service that runs AI models to make predictions or generate content based on new data.
- Open models
- AI models whose underlying code and data are publicly available, allowing for transparency and customization.
- Text generation
- AI creating human-like text, like writing articles, summaries, or chat replies.
- Image generation
- AI creating images from text descriptions or other inputs.
- Embeddings
- Numerical representations of text or other data that capture their meaning, useful for searching or comparing items by similarity.
- Fine-tuning
- Adjusting an existing AI model with your own specific data to make it better at tasks relevant to your needs.
- API key
- A secret code that acts like a password, allowing your app to securely access services from another company, like Fireworks AI.
- Custom endpoint
- A specific web address where your app can send requests to use a particular AI model or service that you've set up.
- Semantic search
- Searching for information based on the meaning of words, not just exact keywords, allowing for more relevant results.
Where people get stuck
- Treat your Fireworks AI API key like a password; never share it publicly or embed it directly in your app's code.
- Remember that all usage (inference, fine-tuning, deployments) through this connection counts towards your Fireworks AI billing and quotas, not Lovable's.
- If you're on an Enterprise plan, an admin must first enable 'App + chat connectors' in Lovable's settings before you can create connections.
- The connector does not automatically update API keys; you'll need to manually create a new key in Fireworks AI and update the Lovable connection if you need to rotate it.
- Each Lovable connection to Fireworks AI uses a single Fireworks account, meaning it's shared across all linked projects and doesn't support individual user logins for Fireworks AI.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.