1. fal-ai
梧柏API使用文档
WHBAI · Fal.ai
  • WHBAI · Google Gemini 原生 (v1alpha)
  • WHBAI · Google Gemini 原生
  • WHBAI · Ideogram
  • WHBAI · Ideogram V3
  • WHBAI · Midjourney
  • WHBAI · Jimeng
  • WHBAI · Kling
  • WHBAI · Luma
  • WHBAI · Luma V1
  • WHBAI · Omni 视频
  • WHBAI · Pixverse
  • WHBAI · Runway
  • WHBAI · Sora2
  • WHBAI · 统一视频 VEO
  • WHBAI · Vidu
  • WHBAI · 豆包 Volc
  • WHBAI · Suno
  • WHBAI · Playground
  • WHBAI · 账号与令牌
  • WHBAI · 阿里 Pix
  • WHBAI · 阿里百炼
  • WHBAI · 私域人像
  • WHBAI · Fal.ai
  • WHBAI · Replicate
  • WHBAI · 腾讯云 VOD
  • WHBAI · MiniMax
  • WHBAI · 支持模型列表
  • WHBAI · Grok Imagine
  • WHBAI · Seedance 2.0
  • WHBAI · TypeSafe
  • WHBAI · OpenAI 兼容
  • Fal.ai
    • 提交 Fal.ai 任务
      POST
    • 查询 Fal.ai 任务
      GET
    • 获取请求结果
      GET
    • /fal-ai/nano-banana 文生图
      POST
    • /fal-ai/nano-banana/edit 图片编辑
      POST
    • /fal-ai/veo3
      POST
    • /fal-ai/veo3/fast/image-to-video
      POST
    • /fal-ai/veo3/fast
      POST
    • /fal-ai/veo3/requests/{request_id}
      GET
    • /fal-ai/veo3/image-to-video
      POST
    • /fal-ai/flux-1/dev
      POST
    • /fal-ai/flux-1/schnell
      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/flux-pro/kontext/max/text-to-image
      POST
    • /fal-ai/flux-pro/kontext/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
    • /fal-ai/flux-1/dev/image-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
  • 数据模型
    • FalAITaskResponse
    • FalAIResultResponse
    • FalAiSampleRequest
    • PostFalAiNanoBananaRequest
    • PostFalAiNanoBananaResponse
    • PostFalAiNanoBananaEditRequest
    • PostFalAiNanoBananaEditResponse
    • PostFalAiVeo3Request
    • PostFalAiVeo3FastImageToVideoRequest
    • PostFalAiVeo3FastRequest
    • PostFalAiVeo3ImageToVideoRequest
    • PostFalAiVeo3ImageToVideoResponse
    • PostFalAiFlux1DevRequest
    • PostFalAiFlux1DevResponse
    • PostFalAiFlux1DevReduxRequest
    • PostFalAiFlux1SchnellReduxRequest
    • PostFalAiFluxProKontextRequest
    • PostFalAiFluxProKontextTextToImageRequest
    • PostFalAiFluxProKontextMaxRequest
    • PostFalAiFluxProKontextMaxMultiRequest
    • PostFalAiWanV22A14bImageToImageRequest
    • PostFalAiBytedanceSeedreamV4EditRequest
    • PostFalAiViduReferenceToImageRequest
    • NewApiError
  1. fal-ai

/fal-ai/imagen4/preview

POST
/fal-ai/imagen4/preview
官方文档: https://fal.ai/models/fal-ai/imagen4/preview

请求参数

Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
or
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 '/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",
    "metrics": {},
    "queue_position": 0
}
🟠400请求有误
🟠401没有权限
修改于 2026-10-24 18:33:04
上一页
/fal-ai/flux-1/dev/image-to-image
下一页
/fal-ai/qwen-image-edit-lora
Built with