1. Fal-ai 聚合平台
NiceRouter
  • 引言
  • 在线调试说明
  • 发出请求
  • API 快速开始指南
  • 聊天完成对象
  • 聊天完成块对象
  • Flux 分辨率
  • 接入教程
  • 状态码
  • python 使用 语音转文本
  • python 使用文本转语音
  • python 使用Embeddings 向量化
  • python 调用DALL·E
  • python简单调用 openai function-calling demo
  • python 简单langchain 调用openai demo
  • python llama_index 配置
  • Python基础对话
  • Python使用gpt-4o识别图片-本地图片
  • Python使用gpt-4o识别图片
  • Python使用Claude识别图片
  • python 库流式输出
  • gpt realtime模型调用
  • python request 请求 流式输出demo
  • python 使用gpt-image-1 创建编辑图片
  • python openai官方库(使用AutoGPT,langchain等)
  • python 连续对话
  • php使用图片编辑demo
  • nodejs 基础对话
  • Codex 配置教程
  • OpenClaw Clawdbot 自定义中转站配置教程
  • N8N 工作流使用中转API 教程
  • opencode 配置教程
  • Gemini CLI 中转站配置使用教程
  • Claude Code 安装使用教程
  • CherryStudio调用cluade MCP
  • Cherry Studio配置教程
  • Cherry Studio配置 banana pro 4K和分辨率教程
  • CherryStudio配置o4推理级别
  • 扣子工作流简单配置从输入到获取url
  • dify添加模型
  • cline 配置教程
  • aider 配置教程
  • Cursor 配置教程
  • lobechat 设置教程
  • ChatBox(推荐使用)
  • 开源gpt_academic
  • nextchat 设置教程
  • zotero gpt 配置方法
  • CLAUDE DEV 配置教程
  • 沉浸式翻译 设置gpt翻译
  • 浏览器插件ChatGPT Sidebar
  • chatgpt-on-wechat 配置教程
  • chatgpt GPT Academic 学术优化配置gpt教程
  • RikkaHub 配置教程
  • coze 工作流使用中转API 教程
  • n8n 工作流获取本地图片生成视频例子
  • OpenClaw 最新版本 自定义中转站配置教程
  • OpenClaw配合CC switch自定义中转站配置教程
  • 聊天(Chat)
    • ChatGpt 接口
      • ChatGPT音频(Audio)
        • 音频转文字 gpt-4o-transcribe
        • 创建语音 gpt-4o-mini-tts
        • 创建翻译 (不支持)
      • ChatGPT自动补全(Completions)
        • 完成对象
        • 创建完成
      • ChatGPT嵌入(Embeddings)
        • 嵌入对象
        • 文本嵌入 [chat兼容格式]
    • Anthropic Claude 接口
      • 聊天完成对象
      • 聊天完成块对象
      • 文本合成
    • 谷歌Gemini 接口
      • 原生格式
        • 文本生成 + 思考
        • 文本生成-流
        • 文本生成+思考-流
        • 图片生成
        • 图片生成 gemini-2.5-flash-image 控制宽高比
        • 图片编辑
        • 视频理解-url [原生格式] 开发中
        • Imagen 4 开发中
        • 文本生成-流
        • 图片生成
        • google search
        • 图片生成 gemini-3-pro-image-preview 控制宽高比 +清晰度
        • TTS 文本转语音
        • 文本生成 gemini-3-pro-preview:generateContent
        • Imagen 生成图片
        • gemini-tts文本转语音
        • 文本嵌入
  • GPTs 相关
    • 简介
    • 连续修改生成视频
  • 系统API
    • 获取令牌列表
    • 新增令牌
    • 修改令牌
    • 获取账号信息
    • 搜索令牌
    • 删除令牌
    • 列出模型
    • 获取令牌使用情况
    • 批量修改令牌
  • 聊天(Responses)
    • Responses API与Chat API对比
    • 创建函数调用 Copy
  • 绘画模型
    • README
    • 图像对象
    • Midjourney
      • 上传图片
      • 提交Imagine任务
      • 根据任务ID 查询任务状态
      • 根据ID列表查询任务
      • 获取任务图片的seed
      • 执行Action动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Modal
      • 提交Shorten任务
      • 提交swap_face任务
    • Ideogram
      • Generate 3.0(文生图)Generate
      • Generate 3.0(图片编辑)Edit
      • Generate 3.0(图片重制)Remix
      • Generate 3.0(图片重构)Reframe
      • Generate 3.0(替换背景) Replace Background
      • ideogram(文生图)
      • Remix(混合图)
      • Upscale(放大高清)
      • Describe(描述)
    • 千问 Qwen-Image 系列
      • qwen-image-edit-2509
    • FLUX 系列
      • gpt 兼容格式
        • 编辑 image
    • Fal.ai平台
      • 状态码
      • /fal-ai/nano-banana 文生图
      • 获取请求结果
      • /fal-ai/nano-banana/edit 图片编辑
    • 腾讯AIGC生图
      • 状态码
      • 获取请求结果
      • 创建任务
  • Replicate 聚合平台
    • 接入教程
    • Flux 分辨率
    • 创建任务 black-forest-labs/flux-kontext-dev
    • 查询任务
    • 创建任务 lucataco/remove-bg
    • 创建任务 ideogram-ai/ideogram-v2-turbo
    • 创建任务 minimax/video-01-live
    • 创建任务 minimax/video-01
    • 创建任务 recraft-ai/recraft-v3
    • 创建任务 recraft-ai/recraft-v3-svg
    • 创建任务 black-forest-labs/flux-1.1-pro-ultra
    • 创建任务 black-forest-labs/flux-kontext-pro
    • 创建任务 black-forest-labs/flux-kontext-max
    • 创建任务 flux-kontext-apps/multi-image-kontext-max
    • 创建任务 flux-kontext-apps/multi-image-kontext-pro
    • 创建任务 riffusion/riffusion
    • 创建任务 black-forest-labs/flux-fill-dev
    • 创建任务 black-forest-labs/flux-fill-pro
    • 创建任务 google/imagen-4-fast
    • 创建任务 google/imagen-4-ultra
    • 创建任务 google/imagen-4
    • 创建任务 prunaai/vace-14b
    • 创建任务 bytedance/seedream-4
  • 视频模型
    • sora 视频生成
      • 统一视频格式
        • 创建视频
        • 查询任务
        • 创建角色
      • OpenAI官方视频格式
        • openai 下载视频
        • openai 编辑视频
        • openai 创建视频,图生
        • openai 查询任务
        • 创建一个来自上传视频的角色
    • luma 视频生成
      • 官方API格式
        • 状态码
        • 提交生成视频任务
        • 扩展视频
      • 查询任务
        • 查询单个任务
        • 批量获取任务
    • Kling 快手可灵
      • 图像生成
      • 文生视频
      • 图生视频
      • 多图参考生视频
      • 虚拟试穿
      • 视频延长
      • 视频特效
      • 查询任务(免费)
      • 对口型
    • Runway 视频生成
      • 状态码
      • 提交视频生成任务
      • 查询视频任务(免费)
    • 即梦 视频生成
      • 提交视频生成任务
      • 查询视频任务(免费)
    • 海螺 视频生成
      • 状态码
      • 首尾帧生成视频
      • 查询视频生成任务状态
    • 豆包 视频生成
      • seedance-1-5-pro
      • 查询视频生成任务列表-搜索多个任务 ID
      • 查询单个任务
      • 创建视频生成任务 API(doubao-2.0)
      • doubao-2.0 查询视频生成任务 API
    • 通义万象 视频生成
      • 生成视频
      • 视频查询
    • grok 视频生成
      • 视频统一格式
        • 状态码
        • 扩展视频
    • 腾讯AIGC视频生成
      • 状态码
      • 创建任务
      • 特效模板创建任务
    • 豆包 视频生成(官)
      • doubao-2.0 查询视频生成任务列表
  • Rerank 重排序模型
    • 重排序
  • 帮助中心
    • AI 返回字段:思考相关
    • HTTP状态码及其含义
    • 自建图床API
    • 上传图片到图床
  • 文生音乐 Suno
    • 说明
    • 参数
    • 任务提交
      • 生成歌曲(拼接歌曲)
      • 生成歌词
      • 歌曲拼接
      • 报告上传完毕
      • 查询上传处理状态
      • 初始化音频文件
      • 请求上传授权
      • s3上传示例
      • 场景三: 纯音乐.自定义
    • 查询接口
      • 批量获取任务
      • 查询单个任务
      • 获取wav
      • Timing:歌词、音频时间线
      • 场景详情获取
  • 可灵 Kling 平台
    • Callback协议
    • 文生视频
      • 查询任务(单个)
    • 图生视频
      • 查询任务(单个)
    • Omni-Video
      • Omni-Video
      • 查询任务(单个)
    • 多图参考生视频
      • 查询任务(单个)
    • 多模态视频编辑
      • 初始化待编辑视频
      • 增加视频选区
      • 删减视频选区
      • 预览已选区视频
      • 多模态视频
      • 查询任务(单个)
    • 视频延长
      • 查询任务(单个)
    • 视频特效
      • 查询任务(单个)
    • 图像生成
      • 查询任务(单个)
    • 多图参考生图
      • 多图参考生图
      • 查询任务(单个)
    • Omni-Image
      • Omni-Image
      • 查询任务(单个)
    • 扩图
      • 扩图
      • 查询任务(单个)
    • 图像识别
      • 图像识别
    • 数字人
      • 数字人
      • 查询任务(单个)
    • 文生音效
      • 文生音效
      • 查询任务(单个)
    • 视频生音效
      • 视频生音效
      • 查询任务(单个)
    • 语音合成
      • 语音合成
    • 虚拟试穿
      • 查询任务(单个)
    • 对口型
      • 人脸识别
      • 对口型
      • 查询任务(单个)
    • 自定义音色
      • 自定义音色
      • 查询自定义音色(单个)
      • 查询官方音色
      • 删除自定义音色
    • 动作控制
      • 动作控制
      • 查询任务(单个)
    • 主体
      • 主体(旧)
      • 主体(新版本)
      • 查询自定义主体(单个新版本)
      • 查询官方主体(列表新版本)
      • 删除自定义主体(新版本)
  • MiniMax官方
    • 创建异步语音合成任务 V2
    • 同步语音合成 V2
    • 上传示例音频
    • 音色快速复刻
    • 检索(用于视频下载,异步音频下载)
    • 查询语音生成任务状态
    • 音色设计
  • Vidu 官方视频生成、图片生成、音频生成
    • 状态码
    • 创建文生视频任务
    • 创建图生视频任务
    • 创建图片生成任务
    • 创建文生音频任务
    • 语音合成
    • 创建参考生视频任务(非主体调用)
    • 创建首尾帧生视频任务
    • 获取请求结果
  • Fal-ai 聚合平台
    • 接入教程
    • falai-veo3 视频生成
      • /fal-ai/veo3
      • /fal-ai/veo3/fast/image-to-video
      • /fal-ai/veo3/fast
      • /fal-ai/veo3/requests/{request_id}
      • /fal-ai/veo3/image-to-video
    • /fal-ai/flux-1/dev
      POST
    • /fal-ai/flux-1/dev/image-to-image
      POST
    • /fal-ai/flux-1/dev/redux
      POST
    • /fal-ai/flux-1/schnell/redux
      POST
    • /fal-ai/flux-pro/kontext
      POST
    • /fal-ai/flux-pro/kontext/text-to-image
      POST
    • /fal-ai/flux-pro/kontext/max
      POST
    • /fal-ai/flux-pro/kontext/max/multi
      POST
    • /fal-ai/wan/v2.2-a14b/image-to-image
      POST
    • /fal-ai/bytedance/seedream/v4/text-to-image
      POST
    • /fal-ai/bytedance/seedream/v4/edit
      POST
    • /fal-ai/vidu/reference-to-image
      POST
    • /fal-ai/imagen4/preview
      POST
    • /fal-ai/qwen-image-edit-lora
      POST
    • /fal-ai/qwen-image-edit-plus
      POST
    • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
      POST
    • /fal-ai/kling-video/v2.5-turbo/pro/image-to-video
      POST
    • /fal-ai/flux-lora
      POST
    • /fal-ai/flux-lora/image-to-image
      POST
    • /fal-ai/flux-lora/inpainting
      POST
  1. Fal-ai 聚合平台

/fal-ai/imagen4/preview

用户版环境
https://api.nicerouter.com
用户版环境
https://api.nicerouter.com
POST
/fal-ai/imagen4/preview
官方文档: https://fal.ai/models/fal-ai/imagen4/preview

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json

示例
{
    "prompt": "Capture an intimate close-up bathed in warm, soft, late-afternoon sunlight filtering into a quintessential 1960s kitchen. The focal point is a charmingly designed vintage package of all-purpose flour, resting invitingly on a speckled Formica countertop. The packaging itself evokes pure nostalgia: perhaps thick, slightly textured paper in a warm cream tone, adorned with simple, bold typography (a friendly serif or script) in classic red and blue “ALL-PURPOSE FLOUR”, featuring a delightful illustration like a stylized sheaf of wheat or a cheerful baker character. In smaller bold print at the bottom of the package: “NET WT 5 LBS (80 OZ) 2.27kg”. Focus sharply on the package details – the slightly soft edges of the paper bag, the texture of the vintage printing, the inviting \"All-Purpose Flour\" text. Subtle hints of the 1960s kitchen frame the shot – the chrome edge of the counter gleaming softly, a blurred glimpse of a pastel yellow ceramic tile backsplash, or the corner of a vintage metal canister set just out of focus. The shallow depth of field keeps attention locked on the beautifully designed package, creating an aesthetic rich in warmth, authenticity, and nostalgic appeal.",
    "aspect_ratio": "1:1",
    "num_images": 1,
    "resolution": "1K"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.nicerouter.com/fal-ai/imagen4/preview' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "prompt": "Capture an intimate close-up bathed in warm, soft, late-afternoon sunlight filtering into a quintessential 1960s kitchen. The focal point is a charmingly designed vintage package of all-purpose flour, resting invitingly on a speckled Formica countertop. The packaging itself evokes pure nostalgia: perhaps thick, slightly textured paper in a warm cream tone, adorned with simple, bold typography (a friendly serif or script) in classic red and blue “ALL-PURPOSE FLOUR”, featuring a delightful illustration like a stylized sheaf of wheat or a cheerful baker character. In smaller bold print at the bottom of the package: “NET WT 5 LBS (80 OZ) 2.27kg”. Focus sharply on the package details – the slightly soft edges of the paper bag, the texture of the vintage printing, the inviting \"All-Purpose Flour\" text. Subtle hints of the 1960s kitchen frame the shot – the chrome edge of the counter gleaming softly, a blurred glimpse of a pastel yellow ceramic tile backsplash, or the corner of a vintage metal canister set just out of focus. The shallow depth of field keeps attention locked on the beautifully designed package, creating an aesthetic rich in warmth, authenticity, and nostalgic appeal.",
    "aspect_ratio": "1:1",
    "num_images": 1,
    "resolution": "1K"
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "status": "IN_QUEUE",
    "request_id": "484ccb37-5477-44fe-8e75-6d6f6e9160b3",
    "response_url": "https://queue.fal.run/fal-ai/imagen4/requests/484ccb37-5477-44fe-8e75-6d6f6e9160b3",
    "status_url": "https://queue.fal.run/fal-ai/imagen4/requests/484ccb37-5477-44fe-8e75-6d6f6e9160b3/status",
    "cancel_url": "https://queue.fal.run/fal-ai/imagen4/requests/484ccb37-5477-44fe-8e75-6d6f6e9160b3/cancel",
    "logs": null,
    "metrics": {},
    "queue_position": 0
}
修改于 2026-06-29 17:16:49
上一页
/fal-ai/vidu/reference-to-image
下一页
/fal-ai/qwen-image-edit-lora
Built with