Setup guide

Provider setup guide

Browse setup steps and troubleshooting by tool.

Provider setup guide/Replicate / fal.ai Configuration

Replicate / fal.ai Configuration

Replicate and fal.ai are more like 'model API platforms. ' They can call models for images, audio, video, etc. , but not all models use the same set of parameters. Beginners need to first choose a specific model and then look at the input fields provided on that model's page.

How it is different from ordinary AI providers

PlatformWhat you need to prepare firstPoints to Note
ReplicateAPI Token, Model Page, Input ParametersOfficial Node SDK usually reads REPLICATE_API_TOKEN the Token; the input fields differ for different models.
fal.aiFAL_KEY, Model ID, Input ParametersOfficial JS client usually reads FAL_KEY the Key; you also need to check the specific model page fields.
Ordinary Chat AI providerKey, Base URL, Model NameMainly text/multimodal chat, does not mean it supports all image and video models

First understand the specific model page

Page FieldsWhat it meansHow to Fill
Model ID / VersionWhich specific model to callReplicate commonly uses the format owner/model or owner/model: version given on the model page; fal.ai fills in according to the model page ID
Input schemaWhich input fields this model requiresFill in each item according to the model page, do not copy fields from another model.
OutputWhat does the returned result look like?It may be an image URL, video URL, array, or task object. After calling, you need to extract the result according to the return format.
Example codeOfficial call examples generated for the current modelPreferably copy the current example from the model page first, then replace with your own Key and input content.

Request example

Do not mix the writing of the following two platforms. Use the tab for the platform you are using, and only replace your own Key, model ID, and input fields.

Replicate example for creating a prediction task
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN }); const output = await replicate.run("owner/model:version from the model page", { input: { prompt: "A clean product showcase video", duration: 5 } }); console.log(output);

How to verify fields

The most important thing on such platforms is the "specific model page. " Do not just copy the platform Key; fill in the input field according to the model page.
Errors or phenomenaCommon CausesSolutions
Model not foundModel ID, version number, or namespace is incorrectCopy the full call name from the model page
Input field errorField name, type, or required item does not meet the current model requirementsCheck the input schema on the model page and add any missing items
Returned result is emptyThe task may not be completed, or the output field is not in the position you are reading fromFirst print the full returned result, then extract the URL or file according to the output structure