n1n Docs
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
首页工作台模型价格联系我们常见问题官方文档官方博客大模型调试大模型百科大模型国际站
首页工作台模型价格联系我们常见问题官方文档官方博客大模型调试大模型百科大模型国际站
WeChat
QQ
Telegram
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Fal-ai
  • n1n AI Gateway
  • 🔥 Quick Start in 10 Minutes
  • Quick Start Guide
  • Online Debugging Instructions
  • Send Request
  • Contact Us
  • Basic Introduction
    • Group Detailed Table
    • Specialties of Groups and Price Differences
    • Large Model API URL
  • Chat Model
    • ChatGPT API
      • ChatGPT Audio
        • Gemini Image Generation [Chat Compatible]
        • Audio to Transcriptions (Whisper-1)
        • Audio to Transcriptions (GPT-4o-transcribe)
        • Create Speech
        • Create Translations (Unsupport)
      • ChatGPT Chat
        • Chat Completion Chunk Object
        • Chat Completion Object
        • Create Chat Completions (Stream)
        • Create Chat Completions Deepseek v3.1 thinking (Stream)
        • Create Chat Completions (Not Stream)
        • Chat API [Chat Compatible]
        • Create Chat Image Recognition (Stream)
        • Create Chat Image Recognition (Stream) - base64
        • Create Chat Image Recognition (Not Stream)
        • Create Chat Image Generation (Not Stream)
        • Official Function Calling
        • Official N test
        • List Models
        • Create Chat Function (Only Not Stream)
        • Create Structured Output Format
        • Create Chat Reasoning Effort
      • ChatGPT Responses
        • Responses API vs Chat API
        • Create Responses
        • Create Function
        • Create Responses (Stream)
        • Create Responses (Reasoning Effort)
        • Create Deep Research (Very Expensive)
        • Create Web Search
        • Create Responses (GPT-5 Reasoning Effort)
      • ChatGPT Completions
        • Completions Object
        • Create Completions
      • ChatGPT Embeddings
        • Embeddings Object
        • Create Embeddings
      • Web Search
        • Web Search
    • Anthropic Claude API
      • Chat Completion Object
      • Chat Completion Chunk Object
      • Create Chat Completions (Stream) [Official Format]
      • Create Function (Stream) [Official Format]
      • Create Chat thinking [Official Format]
      • Create Chat thinking
      • Create Chat Completions (Stream)
      • Create Chat Completions (Not Stream)
      • Create Chat Image Recognition (Stream)
      • Create Chat Image Recognition (Not Stream)
    • Gemini API
      • Official Format
        • Chat API [Official Format]
        • Chat API - Stream [Official Format]
        • Chat + Thinking - Stream [Official Format]
        • Image Generation [Official Format]
        • Image Edit [Official Format] Gemini-2.5-Flash-Image-Preview
        • Image Edit [Official Format]
        • Image Understanding [Official Format]
        • Structured Output [Official Format]
        • Function [Official Format]
        • Document Understanding [Official Format]
        • Video Understanding - base64 [Official Format]
        • Chat - Read Web Page [Official Format] (in development)
        • Video Understanding - URL [Official Format] (in development)
        • Imagen 3 Image Generation [Official Format] (in development)
      • Chat Compatible
        • Gemini Image Generation [Chat Compatible]
        • Chat API [Chat Compatible]
        • Image Recognition [Chat Compatible]
        • Chat + Read File [Chat Compatible]
  • Image Generation
    • README
    • Image Object
    • Midjourney
      • Upload Image
      • Submit Imagine Task
      • Fetch Status with Task ID
      • List Task by ID
      • Fetch Task Image Seed
      • Submit Action
      • Submit Blend
      • Submit Describe
      • Submit Shorten
      • Submit Modal
      • Submit Swap Face
    • Ideogram
      • Generate 3.0 Generate Image
      • Generate 3.0 Image Edit
      • Generate 3.0 Remix
      • Generate 3.0 Reframe
      • Generate 3.0 Replace Background
      • Text to Image
      • Remix
      • Upscale
      • Describe
    • GPT-Image-1
      • Create GPT-Image-1
      • Edit GPT-Image-1
      • Mask GPT-Image-1
    • DALL·E 3
      • Create DALL·E 3
    • FLUX
      • GPT Compatible
        • Flux Create (OpenAI DALL-E-3 Format)
        • Flux Edit (OpenAI DALL-E-3 Format)
      • Replicate (Official Format)
        • Flux Aspect Ratio
        • Tutorial
        • Query Task
        • Create Task (black-forest-labs/flux-kontext-dev)
    • Fal.ai
      • Status Code
      • Fetch Result by Request ID
      • /fal-ai/nano-banana Image Generation
      • /fal-ai/nano-banana/edit Image Edit
    • Dreamina
      • Create Image
      • Edit Image
    • Doubao-Seedream
      • doubao-seedream-3-0-t2i-250415
      • doubao-seededit-3-0-i2i-250628
      • doubao-seedream-4-0-250828 Text to Image
      • doubao-seedream-4-0-250828 Image to Image
      • doubao-seedream-4-0-250828 Generation via Multi-Image
      • doubao-seedream-4-5-251128 Text to One Image
      • doubao-seedream-4-5-251128 Generation (One Image + Text)
      • doubao-seedream-4-5-251128 Multi-Image to One Image
      • doubao-seedream-4-5-251128 Multi-Image Generation
      • doubao-seedream-4-5-251128 One Image to Multi-Image
      • doubao-seedream-4-5-251128 Multi-Image to Multi-Image
    • Qwen-Image
      • qwen-image-edit-2509
    • Stable-Diffusion
  • Video Generation
    • Veo
      • United Format
        • Status Code
        • Create Video
        • Create Video with Image
        • Query
        • Create Video (from Referal Image)
      • OpenAI Format
        • Create Video with Image
        • Query
        • Video Download
    • luma
      • Official API Format
        • Status Code
        • Create Video
        • Extend Video
      • Query
        • Query by Task ID
        • Fetch Task Batch
    • Kling
      • Callback协议
      • Image Generation
      • Text to Video
      • Image to Video
      • Query by Task ID (Free)
      • Video Generation (from Multi-Image)
      • Virtual Try-On
      • Lip-Sync
      • Video Extend
      • Video Effects
    • Runway
      • Status Code
      • Create Video
      • Query by Task ID (Free)
    • Dreamina
      • Status Code
      • United Format
        • Create Video
        • Query
      • Official Format
      • Create Video
      • Query by Task ID (Free)
    • Hailuo
      • Status Code
      • Create Video
      • Query by Task ID
      • Image to Video
      • Video Generation by First_Last_Frame
    • Doubao
      • Text to Video
      • Image to Video - First Frame
      • Seedance-Lite from First_Last_Frame
      • Image to Video -base64
      • Seedance-Lite from Referral Image
      • Query by Task ID
      • Query Task List (Default)
      • Query Task List - Filter Multiple Task ID
    • Sora
      • United Format
        • Query
        • Create Video with Image, Sora-2
        • Create Video, Sora-2
        • Create Video, Sora-2-pro
        • Create Video with Character
      • Chat Compatible
        • Create Video
        • Create Video with Image
        • Video Generation (Continued Edit)
      • OpenAI Official Format
        • Query
        • Video Download
        • Create Video with Image
        • Create Video with Shot/Scene
        • Create Video with Image -Private
        • Create Video with Character
        • Video Edit
      • Create Characters
    • Grok
      • United Format
        • Create Video
        • Query
        • Create Video
        • Query
    • Tongyi Wan
      • Video Generation
      • Query
  • GPTs
    • GPT-4-All (Image Analysis)
    • GPT-4-All (Image Generation)
    • GPTs Dialogue
  • Platform API
    • Fetch Token List
    • Create Token
    • Fetch Model List of Token
    • Fetch Account Information
  • Suno
    • Readme
    • Parameters
    • Submit Task
      • Generation (GPT_Description_Prompt)
      • Generation (Prompt)
      • Generation (Continuation)
      • Generation (Persona)
      • Generation (by Song)
      • Generation (Extend by Another Song)
      • Lyrics Generation
      • Song Concatation
    • Query
      • Fetch Task Batch
      • Query by Task ID
      • Fetch WAV
  • Rerank
    • Rerank API
  • NodeJS Setting
    • NodeJS Basic Dialogue
  • Fal-ai
    • Tutorial
    • Falai-veo3 Video Generation
      • /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
    • Fetch Result by Request ID
      GET
    • /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
    • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
      POST
    • /fal-ai/qwen-image-edit-lora
      POST
  • Replicate
    • Tutorial
    • Flux Aspect Ratio
    • 查询任务
    • 创建任务 black-forest-labs/flux-kontext-dev
    • 创建任务-通过模型version(predictions)
    • 创建任务 stability-ai/stable-diffusion
    • 创建任务 stability-ai/sdxl
    • 创建任务 stability-ai/stable-diffusion-inpainting
    • 创建任务 stability-ai/stable-diffusion-img2img
    • 创建任务 lucataco/flux-schnell-lora
    • 创建任务 lucataco/flux-dev-lora
    • 创建任务 andreasjansson/stable-diffusion-animation
    • 创建任务 sujaykhandekar/object-removal
    • 创建任务 cjwbw/rembg
    • 创建任务 lucataco/animate-diff
    • 创建任务 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
    • 创建任务 lucataco/remove-bg
    • 创建任务 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
  • Python Setting
    • Python OpenAI 官方库(使用 AutoGPT,Langchain等)
    • Python 连续对话
    • Python 使用语音转文本
    • Python 使用文本转语音
    • Python 使用 Embeddings 向量化
    • Python 调用 DALL·E
    • Python 简单调用 OpenAI Function Calling Demo
    • Python 简单 Langchain 调用 OpenAI Demo
    • Python Llama_index 配置
    • Python 使用 GPT-4o 识别图片 - 本地图片
    • Python 库流式输出
    • GPT Realtime 模型调用
    • Python Request 请求流式输出 Demo
    • Python 使用 GPT-Image-1 创建编辑图片
    • Python 基础对话
    • Python 使用 GPT-4o 识别图片
    • Python 使用 Claude 识别图片
  • PHP Setting
    • PHP Demo (Image Edit)
  • IDE/Plugin/App Setting
    • LobeChat 配置教程
    • Cherry Studio 调用 Claude MCP
    • CodeX CLI 配置使用教程
    • Claude Code 安装使用教程
    • Gemini CLI 配置使用教程
    • Dify 添加模型
    • Cline 配置教程
    • Aider 配置教程
    • Cursor 配置教程
    • ChatBox(推荐使用)
    • 开源 GPT Academic 配置教程
    • NextChat 设置教程
    • Zotero GPT 配置方法
    • Claude Dev 配置教程
    • 沉浸式翻译 设置 GPT 翻译
    • ChatGPT Sidebar 插件
    • ChatGPT-on-WeChat 配置教程
  • FAQ
    • 问题自查方法
    • 入门必看
      • 我注册了,key 在哪?
      • 如何充值?没有美金能充吗?
      • 可以使用哪些大模型 API ?
      • 如何获取 OpenAI Key ? 如何获取 Claude Key ? 如何获取 Gemini Key ?
      • 怎么更换模型使用?
      • 接口在中国大陆能使用吗?
      • 按量计费还是按月支付?
      • 为什么有 3 个 Base URL 到底用哪个?
      • 使用 Anthropic Claude,填写那个 URL?Claude-3-5-sonnet 模型的 Base URL 要填什么?
      • 怎么检查一次调用消耗了多少 Token?
      • 提示和补全分别指什么?
      • 请问我余额为负了怎么回事?
    • 常见误区
      • Playground 功能好差?
      • 明明余额还有很多,为什么显示令牌无法使用?
      • 接口调用很卡,有办法稳定么?
      • Key 为什么不能用?为什么我调用 API 没反应?
      • 咱们这的接口请求数限制是怎样的,多个 Key 一起跑是不是并发更大?
      • 单个 Key 的并发或 RPM、TPM 有限制吗?
      • 新建令牌参数怎么填?
      • 为什么调用接口返回“无效的令牌”?
    • 使用疑问
      • 可以使用 o1 吗?满血版 o1
      • n1n 支持 Text Embedding 吗?
      • API 接口返回报错,报错代码 400 401 403 404 405 413 429 500 503 504 524 是什么意思?
      • 支持各类开源软件 ChatBox、Dify、Cling 等等接入 n1n 吗?
      • 怎么在 VBA 里对接?代码示例有吗?
      • 能使用 .env 存放 API Key 吗?
      • 示例中用 OpenAI,如果用 Claude 3.5 也可以用吧?
    • 隐私安全
      • 你们会保留对大模型的调用记录和调用内容吗?
      • 请问你们的 API,是真的在调用官方的模型输出,还是魔改的?就怕买的是 OpenAI 的接口,输出的是你们自己训练的开源模型结果。
    • 商务合作问题
      • 企业合作怎么开通,价格如何?
      • 企业合作的话是怎么签订合同?
      • 能开发票吗?开出来的票是什么类目?
      • 企业合作有没有更多折扣?
      • 为什么有的分组价格接近原价?
    • 其他
      • 密码忘记了怎么办?在哪里可以找回密码?
  • LLM Wiki
    • 基础概念
      • 大语言模型(LLM)
      • Token 与分词
  • Help Center
    • AI 返回字段:思考相关
    • HTTP 状态码及其含义
  • Links
    • 大模型API接口企业站
    • 大模型API接口国际站
  • Terms & Privacy
    • Privacy Policy
    • User Agreement
首页工作台模型价格联系我们常见问题官方文档官方博客大模型调试大模型百科大模型国际站
首页工作台模型价格联系我们常见问题官方文档官方博客大模型调试大模型百科大模型国际站
WeChat
QQ
Telegram
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Fal-ai

/fal-ai/imagen4/preview

POST
https://api.n1n.ai/fal-ai/imagen4/preview
Last modified:2025-10-08 16:55:40
官方文档: https://fal.ai/models/fal-ai/imagen4/preview

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
  "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"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.n1n.ai/fal-ai/imagen4/preview' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "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"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "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
}
Modified at 2025-10-08 16:55:40
Previous
/fal-ai/vidu/reference-to-image
Next
/fal-ai/qwen-image-edit-lora
Built with