Delv
fal.ai
Getting Started Guide

How to Use fal.ai

A practical guide to get you up and running with fal.ai. Written by Delv Editorial, Delv Team.

Getting started with fal.ai

In this guide, you will learn how to set up your fal.ai account, run your first generative AI model, and optimise your results for faster inference. By the end, you'll be ready to use fal.ai effectively for your projects.

Step 1: Sign up and set up

  1. Go to fal.ai.
  2. Click on the "Sign Up" button located at the top right of the homepage.
  3. Fill in your details (name, email, password) and click "Create Account".
  4. Verify your email by clicking the link sent to your inbox.
  5. Log in to your account and navigate to the dashboard.

Step 2: Your first API call

  1. On the dashboard, locate the "API Documentation" link in the menu.
  2. Select a model you want to use, such as "Stable Diffusion".
  3. Copy the example API call provided.
  4. Open a tool like Postman or your preferred API client.
  5. Paste the API call into the request field and update the necessary parameters (like input text or image).
  6. Click "Send" to execute the API call.
  7. Review the response, which will contain the generated output.

Step 3: Get better results

  1. Experiment with different models available in the API documentation, such as "Flux" or "Stable Diffusion".
  2. Adjust parameters like "temperature" for creativity and "max tokens" for output length.
  3. Use batch processing to send multiple requests at once for efficiency.
  4. Check the response times and adjust your API calls to optimise for sub-second latency.

Pro tip

Take advantage of the "Playground" feature on the dashboard to test different models and configurations without needing to set up an external API client. This can save you time when experimenting.

Common mistake to avoid

Many users forget to include the required headers in their API calls, such as the "Authorization" header with your API key. Always ensure your requests are formatted correctly as shown in the documentation to avoid errors.