1. Replicate 聚合平台
CokeAPI
  • 聊天(Chat)
    • ChatGpt 接口
      • ChatGPT音频(Audio)
        • GPT-4o-audio
        • 音频转文字 whisper-1
        • 创建语音 gpt-4o-mini-tts
        • 创建翻译 (不支持)
      • ChatGPT聊天(Chat)
        • 列出模型
      • ChatGPT自动补全(Completions)
        • 创建完成
      • ChatGPT嵌入(Embeddings)
        • 创建嵌入
    • Anthropic Claude 接口
      • 原生格式
        • 创建聊天补全 (流式)
    • 谷歌Gemini 接口
      • 原生格式
        • 文本生成
        • 文本生成-流
        • 文本生成+思考-流
        • 图片生成
        • 图片生成 gemini-2.5-flash-image
        • 图片生成 gemini-3-pro-image-preview 控制宽高比 +清晰度
        • 图片编辑
        • URL context [原生格式]
        • TTS 文本转语音
        • 文本生成 gemini-3-pro-preview:generateContent
        • Imagen 生成图片
        • gemini-tts文本转语音
        • 文本嵌入
  • 聊天(Responses)
    • 创建函数调用
      POST
  • 绘画模型
    • Midjourney
      • 上传图片
      • 提交Imagine任务
      • 根据任务ID 查询任务状态
      • 获取任务图片的seed
      • 提交Blend任务
      • 提交Describe任务
      • 提交Modal
    • Ideogram
      • Generate 3.0(图片编辑)Edit
      • Generate 3.0(图片重制)Remix
      • Generate 3.0(图片重构)Reframe
      • Generate 3.0(替换背景) Replace Background
      • ideogram(文生图)
      • Remix(混合图)
      • Upscale(放大高清)
      • Describe(描述)
    • GPT Image-1
      • 创建 gpt-image-1
      • 编辑 gpt-image-1
    • FLUX 系列
      • Replicate 官方格式
        • 创建任务 black-forest-labs/flux-kontext-dev
        • 查询任务
    • Fal.ai平台
      • 获取请求结果
      • /fal-ai/nano-banana/edit 图片编辑
    • 腾讯AIGC生图
      • 获取请求结果
  • 视频模型
    • veo 视频生成
      • 视频统一格式
        • 创建视频
        • 查询任务
      • OpenAI 视频格式
        • openai 查询任务
        • openai 下载视频
    • luma 视频生成
      • 官方API格式
        • 提交生成视频任务
        • 扩展视频
      • 查询任务
        • 查询单个任务
        • 批量获取任务
    • Runway 视频生成
      • 提交视频生成任务
      • 查询视频任务(免费)
    • 海螺 视频生成
      • 视频任务状态查询
      • 首尾帧视频
    • 豆包 视频生成
      • 创建任务
      • 查询视频生成任务列表-搜索多个任务 ID
      • 查询单个任务
      • doubao-2.0 查询视频生成任务 API
    • sora 视频生成
      • 统一视频格式
        • 创建角色
      • OpenAI官方视频格式
        • 创建视频
        • openai 编辑视频
    • grok 视频生成
      • 视频统一格式
        • 扩展视频
    • 通义万象 视频生成
      • 生成视频
      • 视频查询
    • 豆包 视频生成(官)
      • doubao-2.0 查询视频生成任务列表
  • 系统API
    • 获取令牌列表
    • 修改令牌
    • 获取令牌使用情况
    • 批量修改令牌
  • 文生音乐 Suno
    • 任务提交
      • 生成歌曲(自定义模式)
      • 生成歌词
      • 请求上传授权
      • s3上传示例
      • 场景二: 自定义.歌词歌名
    • 查询接口
      • 批量获取任务
      • 获取wav
      • 场景详情获取
  • 可灵 Kling 平台
    • 文生视频
      • 文生视频
    • 图生视频
      • 图生视频
    • Omni-Video
      • Omni-Video
    • 多图参考生视频
      • 多图参考生视频
    • 多模态视频编辑
      • 初始化待编辑视频
      • 删减视频选区
      • 多模态视频
    • 视频延长
      • 视频延长
    • 视频特效
      • 视频特效
    • 图像生成
      • 图像生成
    • 多图参考生图
      • 多图参考生图
    • Omni-Image
      • Omni-Image
    • 扩图
      • 扩图
    • 图像识别
      • 图像识别
    • 数字人
      • 查询任务(单个)
    • 文生音效
      • 查询任务(单个)
    • 视频生音效
      • 查询任务(单个)
    • 虚拟试穿
      • 虚拟试穿
    • 对口型
      • 人脸识别
      • 查询任务(单个)
    • 自定义音色
      • 查询自定义音色(单个)
      • 删除自定义音色
    • 动作控制
      • 查询任务(单个)
    • 主体
      • 主体(新版本)
      • 查询官方主体(列表新版本)
  • Replicate 聚合平台
    • 创建任务-通过模型version(predictions)
      POST
    • 创建任务 ideogram-ai/ideogram-v2-turbo
      POST
    • 创建任务 minimax/video-01-live
      POST
    • 创建任务 minimax/video-01
      POST
    • 创建任务 recraft-ai/recraft-v3
      POST
    • 创建任务 recraft-ai/recraft-v3-svg
      POST
    • 创建任务 black-forest-labs/flux-1.1-pro-ultra
      POST
    • 创建任务 black-forest-labs/flux-kontext-pro
      POST
    • 创建任务 black-forest-labs/flux-kontext-max
      POST
    • 创建任务 flux-kontext-apps/multi-image-kontext-max
      POST
    • 创建任务 flux-kontext-apps/multi-image-kontext-pro
      POST
    • 创建任务 riffusion/riffusion
      POST
    • 创建任务 black-forest-labs/flux-fill-dev
      POST
    • 创建任务 black-forest-labs/flux-fill-pro
      POST
    • 创建任务 google/imagen-4-fast
      POST
    • 创建任务 google/imagen-4-ultra
      POST
    • 创建任务 google/imagen-4
      POST
    • 创建任务 prunaai/vace-14b
      POST
    • 创建任务 bytedance/seedream-4
      POST
  • MiniMax官方
    • 同步语音合成 V2
    • 上传示例音频
    • 音色快速复刻
    • 查询语音生成任务状态
    • 音色设计
  • Vidu 官方视频生成、图片生成、音频生成
    • 创建图生视频任务
    • 创建图片生成任务
    • 创建文生音频任务
    • 语音合成
    • 创建参考生视频任务(主体调用)
    • 创建首尾帧生视频任务
    • 获取请求结果
  • Fal-ai 聚合平台
    • falai-veo3 视频生成
      • /fal-ai/veo3/fast/image-to-video
      • /fal-ai/veo3/fast
      • /fal-ai/veo3/requests/{request_id}
    • /fal-ai/flux-1/dev/image-to-image
    • /fal-ai/flux-1/dev/redux
    • /fal-ai/flux-1/schnell/redux
    • /fal-ai/flux-pro/kontext
    • /fal-ai/flux-pro/kontext/text-to-image
    • /fal-ai/flux-pro/kontext/max
    • /fal-ai/flux-pro/kontext/max/multi
    • /fal-ai/wan/v2.2-a14b/image-to-image
    • /fal-ai/bytedance/seedream/v4/text-to-image
    • /fal-ai/bytedance/seedream/v4/edit
    • /fal-ai/vidu/reference-to-image
    • /fal-ai/imagen4/preview
    • /fal-ai/qwen-image-edit-lora
    • /fal-ai/qwen-image-edit-plus
    • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
    • /fal-ai/kling-video/v2.5-turbo/pro/image-to-video
    • /fal-ai/flux-lora
    • /fal-ai/flux-lora/image-to-image
    • /fal-ai/flux-lora/inpainting
  • 帮助中心
    • 上传图片到图床
  • 报告上传完毕
    POST
  • 查询上传处理状态
    GET
  • 初始化音频文件
    POST
  1. Replicate 聚合平台

创建任务 google/imagen-4-fast

POST
/replicate/v1/models/google/imagen-4-fast/predictions
官方文档:https://replicate.com/google/imagen-4-fast

请求参数

Authorization
Header 参数

Body 参数application/json

示例
{
    "input": {
        "prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the dynamic energy of a high-octane action film. The focus is a young woman with wind-swept dark hair streaked with pink highlights and determined features, looking directly and intently into the camera lens, she is slightly off-center. She wears a fitted pink and gold racing jacket over a black tank top with \"Imagen 4 Fast\" in motion-stylized lettering and on the next line \"on Replicate\" emblazoned across the chest and aviator sunglasses pushed up on her head. The lighting is dramatic with motion blur streaks and neon reflections from passing city lights, creating dynamic lens flares and light trails (they do not cover her face). The background shows a blurred urban nightscape with streaking car headlights and illuminated skyscrapers rushing past, rendered with heavy motion blur and shallow depth of field. High contrast lighting, vibrant neon color palette with deep blues and electric yellows, and razor-sharp focus on her intense eyes enhance the fast-paced, electrifying atmosphere. She is illuminated while the background is darker.",
        "aspect_ratio": "4:3",
        "output_format": "jpg",
        "safety_filter_level": "block_only_high"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://www.cokeapi.com/v1/replicate/v1/models/google/imagen-4-fast/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "input": {
        "prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the dynamic energy of a high-octane action film. The focus is a young woman with wind-swept dark hair streaked with pink highlights and determined features, looking directly and intently into the camera lens, she is slightly off-center. She wears a fitted pink and gold racing jacket over a black tank top with \"Imagen 4 Fast\" in motion-stylized lettering and on the next line \"on Replicate\" emblazoned across the chest and aviator sunglasses pushed up on her head. The lighting is dramatic with motion blur streaks and neon reflections from passing city lights, creating dynamic lens flares and light trails (they do not cover her face). The background shows a blurred urban nightscape with streaking car headlights and illuminated skyscrapers rushing past, rendered with heavy motion blur and shallow depth of field. High contrast lighting, vibrant neon color palette with deep blues and electric yellows, and razor-sharp focus on her intense eyes enhance the fast-paced, electrifying atmosphere. She is illuminated while the background is darker.",
        "aspect_ratio": "4:3",
        "output_format": "jpg",
        "safety_filter_level": "block_only_high"
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "id": "20z778rke5rm80crb5982z0m1g",
    "model": "google/imagen-4-fast",
    "version": "hidden",
    "input": {
        "aspect_ratio": "4:3",
        "output_format": "jpg",
        "prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the dynamic energy of a high-octane action film. The focus is a young woman with wind-swept dark hair streaked with pink highlights and determined features, looking directly and intently into the camera lens, she is slightly off-center. She wears a fitted pink and gold racing jacket over a black tank top with \"Imagen 4 Fast\" in motion-stylized lettering and on the next line \"on Replicate\" emblazoned across the chest and aviator sunglasses pushed up on her head. The lighting is dramatic with motion blur streaks and neon reflections from passing city lights, creating dynamic lens flares and light trails (they do not cover her face). The background shows a blurred urban nightscape with streaking car headlights and illuminated skyscrapers rushing past, rendered with heavy motion blur and shallow depth of field. High contrast lighting, vibrant neon color palette with deep blues and electric yellows, and razor-sharp focus on her intense eyes enhance the fast-paced, electrifying atmosphere. She is illuminated while the background is darker.",
        "safety_filter_level": "block_only_high"
    },
    "logs": "",
    "output": null,
    "data_removed": false,
    "error": null,
    "status": "starting",
    "created_at": "2025-07-30T03:13:27.921Z",
    "urls": {
        "cancel": "https://api.replicate.com/v1/predictions/20z778rke5rm80crb5982z0m1g/cancel",
        "get": "https://api.replicate.com/v1/predictions/20z778rke5rm80crb5982z0m1g",
        "stream": "https://stream.replicate.com/v1/files/bcwr-blsi6mnoqvfndurpci2t2i77xl2s3k3xb5r5hru3xwyrev6v7uca",
        "web": "https://replicate.com/p/20z778rke5rm80crb5982z0m1g"
    }
}
修改于 2026-07-22 15:38:26
上一页
创建任务 black-forest-labs/flux-fill-pro
下一页
创建任务 google/imagen-4-ultra
Built with