Key4U
Trang chủGiá cảĐăng nhậpĐăng ký
Trang chủGiá cảĐăng nhậpĐăng ký
  1. Nền tảng tích hợp Replicate
  • README
  • Giới thiệu
  • Gửi Request
  • Liên hệ
  • Bắt đầu
    • Bắt đầu nhanh với API
    • Bảng So Sánh Nhóm API
    • Tính Đặc Thù của Nhóm API & Khác Biệt Về Giá
  • Chat
    • OpenAI Cient
      • Audio
        • GPT-4o-audio
        • whisper-1
        • gpt-4o-transcribe
        • text-to-speech
        • translations
      • Chat
        • Chat object
        • Chat stream object
        • Streaming
        • Non-steaming
        • Chat image streaming
        • Chat image with base64 streaming
        • Chat image with base64 non-streaming
        • Tạo ảnh non-streaming
        • Gọi hàm (Function calling)
        • Nhiều output (n output)
        • Danh sách model
        • Gọi hàm (Function calling) non-streaming
        • Output có cấu trúc (structured output)
        • Kiểm soát mức độ suy luận
        • Chat text qwen-mt-turbo
        • Chat text deepseek v3.1 với thinking
      • Completions
        • Completions object
        • Completions
      • Embeddings
        • Embedding object
        • Embeddings
      • Web search
        • web-search
    • Anthropic Claude
      • Chat Completion Object
      • Chat Completion Chunk Object
      • Tạo chat completion (stream) [raw]
      • Gọi hàm Function calling(stream) [raw]
      • Tạo chat suy luận - Reasoning [raw]
      • Tạo chat suy luận
      • Tạo chat completion (stream)
      • Tạo chat completion (non-stream)
      • Tạo chat image(stream)
      • Tạo chat image (non-stream)
    • Gemini
      • Raw
        • Chỉnh sửa hình ảnh [định dạng gốc] gemini-2.5-flash-image-preview
        • Chat API [raw]
        • Chat API - stream [raw]
        • Tạo image [raw]
        • Chỉnh sửa ảnh [raw]
        • Đọc ảnh [raw]
        • Output có cấu trúc (structured output) [raw]
        • Gọi hàm (Function calling) [raw]
        • Đọc hiểu tài liệu [raw]
        • Đọc hiểu Video dạng base64 [raw]
        • Đọc hiểu trang web [developing]
        • Đọc hiểu Video qua url [developing]
        • Tạo ảnh bằng Imagen 3
      • Tương thích OpenAI Client
        • Tạo image
        • Chat
        • Đọc hiểu hình ảnh
        • Chat + Đọc hiểu file
  • Responses
    • Responses API so với Chat API
    • Tạo chat responses
    • Tạo chat responses (stream)
    • Kiểm soát mức độ suy luận
    • Truy vấn tìm kiếm chuyên sâu (rất đắt, mỗi lần tốn vài chục đô, nên cẩn trọng khi dùng)
    • Tạo tìm kiếm trên Internet
  • Model hình ảnh
    • README
    • Đối tượng hình ảnh
    • Midjourney
      • Gửi ảnh lên (Upload ảnh)
      • Gửi task "Imagine" (tạo ảnh từ mô tả)
      • Tra cứu trạng thái task theo ID
      • Truy vấn nhiều task theo danh sách ID
      • Lấy seed của ảnh trong task
      • Upscalers (Action)
      • Gửi task hòa trộn ảnh (Blend)
      • Gửi task Describe
      • Gửi task Zoom Out
      • Gửi task kiểu Modal (có thể là chế độ giao diện hoặc cấu hình riêng)
      • Gửi task hoán đổi khuôn mặt (Face Swap)
    • Ideogram
      • Tạo ảnh từ văn bản (Generate)
      • Chỉnh sửa ảnh (Edit)
      • Tái tạo ảnh (Remix)
      • Tái cấu trúc ảnh (Reframe)
      • Thay nền ảnh (Replace Background)
      • Tạo ảnh từ văn bản (Ideogram)
      • Trộn ảnh (Remix)
      • Phóng to ảnh độ nét cao (Upscale)
      • Mô tả ảnh (Describe)
    • GPT Image-1
      • Tạo ảnh
      • Chỉnh sửa ảnh
      • Tạo mặt nạ (mask)
    • DALL·E 3
      • Tạo ảnh DALL·E 3
    • FLUX
      • Tương thích với OpenAI
        • Tạo ảnh tương thích với OpenAI Dall-e-3
        • Chỉnh sửa ảnh tương thích OpenAI Dall-e-3
      • Tương thích Replicate
        • Hướng dẫn tích hợp
        • Tỉ lệ của Flux
        • Tạo hình ảnh black-forest-labs/flux-kontext-dev
        • Truy vấn task
      • Tương thích với Fal.ai
        • Hướng dẫn
        • Truy vấn kết quả
        • /fal-ai/flux-pro/kontext
        • /fal-ai/flux-pro/kontext/max
        • /fal-ai/flux-pro/kontext/max/multi(Chỉnh sửa nhiều hình ảnh - Thử nghiệm)
        • FLUX.1 [Dev] Chỉnh sửa hình ảnh từ văn bản
        • FLUX.1 [Dev] Chỉnh sửa hình ảnh từ văn bản
        • FLUX.1 [Dev] Redux
        • FLUX.1 [Schell] Redux
        • FLUX.1 Kontext [Pro]
        • FLUX.1 Kontext [Max] Chuyển văn bản thành hình ảnh
        • FLUX.1 Kontext [Multi](Chỉnh sửa nhiều hình ảnh – thử nghiệm)
        • FLUX.1 Kontext [Max]
        • FLUX.1 Kontext [Max] Chuyển văn bản thành hình ảnh
        • FLUX.1 Kontext [Max Multi](Chỉnh sửa nhiều hình ảnh – thử nghiệm)
        • /fal-ai/nano-banana Tạo hình ảnh
        • /fal-ai/nano-banana Chỉnh sửa hình ảnh
  • Mô hình video
    • Tạo video với veo
      • Truy vấn task
      • Tạo video kèm hình ảnh
      • Tạo video
    • Tạo video với luma
      • Truy vấn thông tin một task
      • Truy vấn thông tin nhiều task
      • Gửi tác vụ tạo video
      • Mở rộng video
    • Tạo video với Kling
      • Callback
      • Tạo hình ảnh
      • Tạo video từ văn bản
      • Tạo video từ hình ảnh
      • Truy vấn task
    • Tạo video với Runway
      • Gửi task tạo video
      • Truy vấn task
      • Gửi task tạo video - định dạng chat
    • Tạo video với Jimeng
      • Gửi task tạo video
      • Truy vấn task
    • Tạo video với Minimax
      • Gửi task tạo video
      • Truy vấn video (miễn phí)
  • GPTs liên quan
    • Giới thiệu
    • gpt-4-all (Phân tích hình ảnh)
    • gpt-4-all(Tạo hình ảnh)
    • GPTs Đối thoại
  • Text-to-music với Suno
    • Hướng dẫn
    • Tham số
    • Call API
      • Tạo bài hát (Chế độ cảm hứng)
      • Tạo bài hát (Chế độ tùy chỉnh)
      • Tạo bài hát (Chế độ tiếp tục)
      • Tạo bài hát (Theo phong cách ca sĩ)
      • Tạo bài hát (Remix từ bài hát đã tải lên)
      • Tạo bài hát (Ghép bài hát)
      • Tạo lời bài hát
      • Ghép bài hát
    • Truy vấn
      • Lấy nhiều task cùng lúc
      • Lấy thông tin của một task
  • Mô hình sắp xếp lại (Rerank)
    • Tái sắp xếp thứ tự
  • Nền tảng tích hợp Replicate
    • Hướng dẫn
    • Tỉ lệ hình ảnh của Flux
    • Truy vấn task
      GET
    • Tạo một task - version (predictions)
      POST
    • Tạo task stability-ai/stable-diffusion
      POST
    • Tạo task stability-ai/sdxl
      POST
    • Tạo task stability-ai/stable-diffusion-inpainting
      POST
    • Tạo task stability-ai/stable-diffusion-img2img
      POST
    • Tạo task black-forest-labs/flux-kontext-dev
      POST
    • Tạo task lucataco/flux-schnell-lora
      POST
    • Tạo task lucataco/flux-dev-lora
      POST
    • Tạo task ideogram-ai/ideogram-v2-turbo
      POST
    • Tạo task andreasjansson/stable-diffusion-animation
      POST
    • Tạo task lucataco/animate-diff
      POST
    • Tạo task sujaykhandekar/object-removal
      POST
    • Tạo task cjwbw/rembg
      POST
    • Tạo task minimax/video-01-live
      POST
    • Tạo task minimax/video-01
      POST
    • Tạo task recraft-ai/recraft-v3
      POST
    • Tạo task recraft-ai/recraft-v3-svg
      POST
    • Tạo task black-forest-labs/flux-1.1-pro-ultra
      POST
    • Tạo task black-forest-labs/flux-kontext-pro
      POST
    • Tạo task black-forest-labs/flux-kontext-max
      POST
    • Tạo task flux-kontext-apps/multi-image-kontext-max
      POST
    • Tạo task flux-kontext-apps/multi-image-kontext-pro
      POST
    • Tạo task lucataco/remove-bg
      POST
    • Tạo task riffusion/riffusion
      POST
    • Tạo task black-forest-labs/flux-fill-dev
      POST
    • Tạo task black-forest-labs/flux-fill-pro
      POST
    • Tạo task google/imagen-4-fast
      POST
    • Tạo task google/imagen-4-ultra
      POST
    • Tạo task google/imagen-4
      POST
    • Tạo task prunaai/vace-14b
      POST
  • Sử dụng với PHP
    • Ví dụ sử dụng trong PHP
  • Sử dụng với Node.js
    • Hướng dẫn
  • Sử dụng với Python
    • Thư viện của OpenAI (sử dụng AutoGPT, langchain, v.v.)
    • Trò chuyện liên tục
    • Chuyển giọng nói thành văn bản
    • Chuyển văn bản thành lời nói
    • Sử dụng Embeddings để tìm kiếm tương tự
    • DALL·E
    • Gọi đơn giản openai function-calling demo
    • Gọi openai demo với langchain đơn giản
    • Cấu hình llama_index
    • Trò chuyện cơ bản
    • Sử dụng gpt-4o nhận diện ảnh - ảnh cục bộ
    • Sử dụng gpt-4o nhận diện ảnh
    • Sử dụng Claude nhận diện ảnh
    • Xuất dữ liệu dạng luồng
    • gpt sử dụng mô hình thời gian thực (gpt realtime)
    • Request gửi yêu cầu, demo xuất luồng
    • Sử dụng gpt-image-1 để tạo/chỉnh sửa ảnh
  • Hướng dẫn sử dụng các loại plugin/phần mềm
    • Hướng dẫn cài đặt và sử dụng Claude Code
    • Hướng dẫn sử dụng với Dify
    • Hướng dẫn cấu hình Cline
    • Sử dụng với Aider AI (Terminal Coding)
    • Hướng dẫn sử dụng LobeChat
    • Sử dụng trong extension trình duyệt ChatGPT Sidebar
    • Hướng dẫn cấu hình ChatGPT GPT Academic để tối ưu cho học thuật
  • Trung tâm hỗ trợ
    • Dữ liệu phản hồi của AI: Thông tin liên quan đến suy luận
    • Các mã trạng thái HTTP (HTTP Status code)
  1. Nền tảng tích hợp Replicate

Tạo task google/imagen-4-fast

POST
https://api.key4u.shop/replicate/v1/models/google/imagen-4-fast/predictions
Tài liệu chính thức: https://replicate.com/google/imagen-4-fast

Request

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

Body Params application/json

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

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.key4u.shop/replicate/v1/models/google/imagen-4-fast/predictions' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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"
    }
  }'

Responses

🟢200Thành công
application/json
Body

Example
{
    "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"
    }
}
Modified at 2025-08-06 14:40:57
Previous
Tạo task black-forest-labs/flux-fill-pro
Next
Tạo task google/imagen-4-ultra
Built with