Key4UAPI Interface Integration
Trang chủDashboardGiá cảModel HubAPI KeysVí
Trang chủDashboardGiá cảModel HubAPI KeysVí
  1. Native format
  • Key4U English
    • Key4U English
      • Introduction
      • Contact
      • Quick Start with API
      • API Group Comparison Table
      • API Group Characteristics & Pricing Differences
      • Key4U Agent registration
      • Chat
        • ChatGPT API
          • ChatGPT Audio
            • GPT-4o-audio
            • Audio to Text whisper-1
            • Audio to Text gpt-4o-transcribe
            • Create voice gpt-4o-mini-tts
            • Create translation (not supported)
          • ChatGPT Chat
            • Chat Completion Object
            • Chat completion chunk object
            • Create Chat Completion (Streaming)
            • Create Chat Completion (Non-Streaming)
            • Create Chat Image Recognition (Streaming)
            • Create Chat Image Recognition (Streaming) best64
            • Create Chat Image Recognition (Non-streaming)
            • Create Chat Generation Diagram (Non-streaming)
            • Official Function Calling Invocation
            • Official N Testing
            • List models
            • Create Chat Function Call
            • Create Structured Output
            • Controlling Reasoning Model Effort Level
            • Create chat completion qwen-mt-turbo
            • Create Chat Completion - DeepSeek v3.1 Thinking Level (Streaming)
            • deepseek-ocr recognition
          • ChatGPT Auto-Completion (Completions)
            • Completion object
            • Creation completed
          • ChatGPT Embeddings
            • Embedded Object
            • Create Embedding
          • Web Search
            • web search
        • Anthropic Claude API
          • Chat Completion Object
          • Chat completion chunk object
          • Native format
            • Create Chat Completion (Streaming)
            • Create Function Call (Streaming)
            • Creating Formatted Output
            • Create Thinking Chat
            • PDF Support
            • PDF supports base64 format
            • Online Search
          • chat-compatible format
            • Create Thinking Chat
            • Create Chat Completion (Streaming)
            • Create Chat Completion (Non-Streaming)
            • Create Chat Image Recognition (Streaming)
            • Create Chat Image Recognition (Non-Streaming)
        • Google Gemini API
          • Native format
            • Text Generation
              POST
            • Text Generation - Stream
              POST
            • Text Generation + Thinking Stream
              POST
            • Image Generation
              POST
            • Image Generation gemini-2.5-flash-image
              POST
            • Image Generation gemini-2.5-flash-image Control Aspect Ratio
              POST
            • Image Generation gemini-3-pro-image-preview Control Aspect Ratio + Clarity
              POST
            • Image Editing
              POST
            • Image Understanding
              POST
            • Formatted Output
              POST
            • Function call
              POST
            • Document Understanding
              POST
            • URL context [native format]
              POST
            • Code Execution
              POST
            • google search
              POST
            • Video Understanding
              POST
            • URL context
              POST
            • Audio Understanding
              POST
            • Embeddings
              POST
            • TTS Text-to-Speech
              POST
            • Text generation gemini-3-pro-preview:generateContent
              POST
            • Imagen Generate Images
              POST
            • gemini-tts text-to-speech
              POST
            • Text Embedding
              POST
          • chat-compatible format
            • Gemini Image Generation API [Chat-Compatible Format]
            • Chat Interface [chat compatible format]
            • Chat Interface - Thought 1 [chat compatible format]
            • Chat Interface - Thought 2 [chat compatible format]
            • Image Recognition API [chat-compatible format]
            • Chat + Read File Interface [chat compatible format]
            • Text Embedding [chat compatible format]
      • Chat (Responses)
        • Responses API vs Chat API Comparison
        • Create Model Response
        • Create function call
        • Create Model Response (Streaming Return)
        • Create Model Response (Control Thinking Length)
        • Create Web Search
        • Create model response gpt-5 enable thinking
        • Create Function Call Copy
      • Drawing Model
        • README
        • Image Object
        • Midjourney
          • Upload Image
          • Submit Imagine Task
          • Query task status by task ID
          • Query tasks by ID list
          • Get the seed of the task image
          • Execute Action
          • Submit Blend Task
          • Submit Describe Task
          • Submit Modal
        • Ideogram
          • Generate 3.0 (Text-to-Image) Generate
          • Generate 3.0 (Image Editing) Edit
          • Generate 3.0 (Image Remaster) Remix
          • Generate 3.0 (Image Reconstruction) Reframe
          • Generate 3.0 (Replace Background) Replace Background
          • ideogram (text-to-image)
          • Remix (Blend Image)
          • Upscale (Enhance to High Definition)
          • Describe
        • GPT Image Series
          • Create gpt-image-1
          • Edit gpt-image-1
          • Mask gpt-image-1
          • Create gpt-image-1.5
          • Edit gpt-image-1.5
          • Mask gpt-image-1.5
        • DALL·E 3
          • Create DALL·E 3
        • FLUX Series
          • GPT compatible format
            • Flux Image Creation (OpenAI dall-e-3 Format)
            • Flux Editor (OpenAI DALL-E-3 Format)
          • Replicate Official Format
            • Flux Resolution
            • Integration Tutorial
            • Create task black-forest-labs/flux-kontext-dev
            • Query Task
        • Doubao Series
          • 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-multi-image-to-image
          • doubao-seedream-4-5-251128 Text-to-Image (Pure Text Input, Single Image Output)
          • doubao-seedream-4-5-251128 Image-to-Image Generation (Single Image Input, Single Image Output)
          • doubao-seedream-4-5-251128 Multi-image Fusion (Multiple Image Input, Single Image Output)
          • doubao-seedream-4-5-251128 Image Group Output (Multiple Image Output)
          • doubao-seedream-4-5-251128 Single Image to Image Group
          • doubao-seedream-4-5-251128 Multiple reference image generation group image
        • Fal.ai platform
          • Status Code
          • Get request result
          • /fal-ai/nano-banana Text-to-Image
          • /fal-ai/nano-banana/edit Image Editing
        • Tencent AIGC Image Generation
          • Status Code
          • Get request result
          • Create Task
        • Qwen Series
          • qwen-image-max
          • z-image-turbo
          • qwen-image-edit-2509
      • Video Model
        • veo video generation
          • Unified Video Format
            • Status Code
            • Create Video
            • Create video with images
            • Query Task
            • Create Video (Reference Image)
          • OpenAI Video Format
            • OpenAI create video with image
            • OpenAI Query Task
            • openai download video
        • Luma video generation
          • Official API Format
            • Status Code
            • Submit Video Generation Task
            • Extended Video
          • Query Task
            • Query a Single Task
            • Batch Retrieve Tasks
        • Runway Video Generation
          • Status Code
          • Submit video generation task
          • Query Video Task (Free)
        • Minimax Video Generation
          • Status Code
          • Submit video generation task
          • Video Task Status Query
          • Image-to-Video
          • First and Last Frame Video
        • Doubao Video Generation
          • Text-to-Video Example
          • Image-to-Video - First Frame
          • seedance-lite-first-and-last-frames
          • Image to Video - Base64 Encoding
          • seedance-lite-reference image
          • Query a Single Task
          • Query Video Generation Task List - Default
          • Query Video Generation Task List - Search Multiple Task IDs
          • seedance-1-5-pro-first-and-last-frames
          • seedance-1-5-pro
        • Sora video generation
          • Unified Video Format
            • Query Task
            • Create video with images sora-2
            • Create video sora-2
            • Create video sora-2-pro
            • Create Video (with Character)
          • chat format
            • Create Video
            • Create video with images
            • Continuous Modification Video Generation
          • OpenAI Official Video Format
            • OpenAI create video with image
            • Creating Videos with Storyboards
            • OpenAI create video with image private mode
            • OpenAI Create Video (with Character)
            • OpenAI video editing
            • openai download video
            • OpenAI Query Task
          • Create Role
        • Grok Video Generation
          • Unified Video Format
            • Status Code
            • Create Video
            • Query Task
        • Tongyi Wanxiang Video Generation
          • Generate Video
          • Video Query
        • Tencent AIGC Video Generation
          • Status Code
          • Create Task
          • Get request result
      • GPTs Related
        • Introduction
        • GPTs Conversation
      • Text-to-Music Suno
        • Instructions
        • parameter
        • Task Submission
          • Generate Song (Inspiration Mode)
          • Generate Song (Custom Mode)
          • Generate Song (Continuation Mode)
          • Generate Song (Artist Style)
          • Generate Song (Upload Song for Secondary Creation)
          • Generate Song (Concatenate Song)
          • Generate Lyrics
          • Song Concatenation
          • Report upload completed
          • Query Upload Processing Status
          • Initialize audio file
          • Request Upload Authorization
          • S3 Upload Example
          • Scenario 1: Inspiration Mode
          • Scenario 2: Custom.Lyrics.SongName
          • Scenario 3: Pure Music - Custom
        • Query Interface
          • Batch Retrieve Tasks
          • Query a Single Task
          • Get WAV
          • Timing: Lyrics, Audio Timeline
          • Get Scene Details
      • Python Configuration Methods
        • Python Speech-to-Text
        • Python Text-to-Speech
        • Python Using Embeddings for Vectorization
        • Python Calling DALL·E
        • Simple Python OpenAI Function-Calling Demo
        • Simple Python LangChain calling OpenAI demo
        • Python llama_index Configuration
        • Python Fundamentals Conversation
        • Python uses gpt-4o to recognize images - local images
        • Using Python with GPT-4o to Recognize Images
        • Using Claude to Recognize Images in Python
        • Python library streaming output
        • GPT Realtime Model Invocation
        • Python request streaming output demo
        • Python using gpt-image-1 to create and edit images
        • Python OpenAI official library (using AutoGPT, langchain, etc.)
        • Python continuous conversation
      • Rerank Reranking Model
        • Reordering
      • Kling Platform
        • Callback Protocol
        • Text-to-video
          • Text-to-video
          • Query Task (Single)
        • Image-to-Video
          • Image-to-Video
          • Query Task (Single)
        • Omni-Video
          • Omni-Video
          • Query Task (Single)
        • Multi-image reference video
          • Multi-image reference video
          • Query Task (Single)
        • Multimodal Video Editing
          • Initialize video to be edited
          • Add Video Selection
          • Delete Video Selection
          • Preview Selected Region Video
          • Multimodal Video
          • Query Task (Single)
        • Video Extension
          • Video Extension
          • Query Task (Single)
        • Video Effects
          • Video Effects
          • Query Task (Single)
        • Image Generation
          • Image Generation
          • Query Task (Single)
        • Multi-image reference image generation
          • Multi-image reference image generation
          • Query Task (Single)
        • Omni-Image
          • Omni-Image
          • Query Task (Single)
        • Expand image
          • Expand image
          • Query Task (Single)
        • Image Recognition
          • Image Recognition
        • Digital human
          • Digital human
          • Query Task (Single)
        • Text-to-Speech Sound Effects
          • Text-to-Speech Sound Effects
          • Query Task (Single)
        • Video-to-Audio
          • Video-to-Audio
          • Query Task (Single)
        • Speech Synthesis
          • Speech Synthesis
        • Virtual Try-On
          • Virtual Try-On
          • Query Task (Single)
        • lip-sync
          • Face Recognition
          • lip-sync
          • Query Task (Single)
        • Custom Voice
          • Custom Voice
          • Query Custom Voice (Single)
          • Query Official Voice
          • Delete Custom Voice
        • Action Control
          • Action Control
          • Query Task (Single)
        • subject
          • subject
      • Replicate Aggregation Platform
        • Integration Tutorial
        • Flux Resolution
        • Query Task
        • Create Task - Via Model Version (predictions)
        • Create task stability-ai/stable-diffusion
        • Create task stability-ai/sdxl
        • Create Task stability-ai/stable-diffusion-inpainting
        • Create task stability-ai/stable-diffusion-img2img
        • Create task lucataco/flux-schnell-lora
        • Create task lucataco/flux-dev-lora
        • Create task andreasjansson/stable-diffusion-animation
        • Create task sujaykhandekar/object-removal
        • Create task cjwbw/rembg
        • Create task lucataco/animate-diff
        • Create task ideogram-ai/ideogram-v2-turbo
        • Create task black-forest-labs/flux-kontext-dev
        • Create task minimax/video-01-live
        • Create task minimax/video-01
        • Create task recraft-ai/recraft-v3
        • Create task recraft-ai/recraft-v3-svg
        • Create task black-forest-labs/flux-1.1-pro-ultra
        • Create task black-forest-labs/flux-kontext-pro
        • Create task black-forest-labs/flux-kontext-max
        • Create task flux-kontext-apps/multi-image-kontext-max
        • Create task flux-kontext-apps/multi-image-kontext-pro
        • Create task lucataco/remove-bg
        • Create task riffusion/riffusion
        • Create task black-forest-labs/flux-fill-dev
        • Create task black-forest-labs/flux-fill-pro
        • Create task google/imagen-4-fast
        • Create task google/imagen-4-ultra
        • Create task google/imagen-4
        • Create task prunaai/vace-14b
        • Create task bytedance/seedream-4
      • Minimax Platform
        • Create Asynchronous Text-to-Speech Task V2
        • Synchronous Text-to-Speech V2
        • Text-to-Image-to-Video Generation Task
        • Upload Reproduced Audio
        • Upload Sample Audio
        • First and Last Frame Video Generation
        • Timbre Quick Replication
        • Query video generation task status
        • Retrieval (for video download, asynchronous audio download)
        • Text Synthesis
        • Query Speech Synthesis Task Status
        • Timbre Design
      • Vidu Platform: Video Generation, Image Generation, Audio Generation
        • Status Code
        • Create a text-to-video task
        • Create Image-to-Video Task
        • Create Image Generation Task
        • Create Text-to-Speech Audio Task
        • Speech Synthesis
        • Create Reference Video Task
        • Create First and Last Frame Generated Video Task
        • Get request result
      • Fal-ai Aggregation Platform
        • Integration 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
        • Get request result
        • /fal-ai/flux-1/dev
        • /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
        • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
        • /fal-ai/qwen-image-edit-lora
      • PHP Configuration Methods
        • PHP Image Editing Demo
      • Node.js configuration methods
        • Node.js Basic Conversation
      • Tutorials for Various Plugins/Software
      • Help Center
        • AI return field: thinking-related
        • HTTP Status Codes and Their Meanings
        • Self-hosted Image Hosting API
      • minimax-voice (TTS)
        • Generate speech from Minimax
      • Tutorials for using various plugins/software
        • Guide to using API Key4U with Clawdbot (MobtBot)
        • Guide to using Key4u with Opencode
        • Guide to configuring Codex
        • Guide to installing and using Claude Code
        • Guide to using with Dify
        • Guide to configuring Cline
        • Using with Aider AI (Terminal Coding)
        • Guide to using LobeChat
        • Using the ChatGPT Sidebar browser extension
        • Guide to configuring ChatGPT GPT Academic for academic optimization
  • Key4U Việt Nam
    • Key4U Tiếng Việt
      • Giới thiệu
      • Liên hệ
      • Bắt đầu nhanh với API
      • Bảng so sánh nhóm API
      • Đặc điểm & Sự khác biệt giá của nhóm API
      • Đăng ký đại lý Key4U
      • Trò chuyện (Chat)
        • Giao diện ChatGPT
          • ChatGPT Audio (Âm thanh)
            • GPT-4o-audio
            • Chuyển đổi âm thanh thành văn bản whisper-1
            • Chuyển đổi âm thanh thành văn bản gpt-4o-transcribe
            • Tạo giọng nói gpt-4o-mini-tts
            • Tạo bản dịch (không được hỗ trợ)
          • ChatGPT Trò chuyện (Chat)
            • Đối tượng hoàn thành chat
            • Đối tượng khối hoàn thành chat
            • Tạo cuộc trò chuyện (streaming)
            • Tạo chat (không phải stream)
            • Tạo chat nhận diện hình ảnh (streaming)
            • Tạo chat nhận diện hình ảnh (streaming) best64
            • Tạo chat nhận diện hình ảnh (không phải streaming)
            • Tạo biểu đồ sáng tạo trò chuyện (không phải luồng)
            • Gọi Function calling chính thức
            • Bản kiểm thử N chính thức
            • Liệt kê mô hình
            • Tạo gọi hàm trò chuyện
            • Tạo đầu ra có cấu trúc
            • Kiểm soát mô hình suy luận
            • Tạo trò chuyện qwen-mt-turbo
            • Tạo chat DeepSeek v3.1 mức độ suy nghĩ (streaming)
            • deepseek-ocr nhận dạng
          • ChatGPT Completions
            • đối tượng hoàn thành
            • Tạo Completions (cũ)
          • ChatGPT Embeddings (Nhúng)
            • Đối tượng nhúng
            • Tạo embed
          • Tìm kiếm Web
            • tìm kiếm web
        • Giao diện Anthropic Claude
          • Đối tượng hoàn thành chat
          • Đối tượng khối hoàn thành chat
          • định dạng gốc
            • Tạo cuộc trò chuyện (streaming)
            • Tạo lệnh gọi hàm (streaming)
            • Tạo đầu ra được định dạng
            • Tạo cuộc trò chuyện suy nghĩ
            • Hỗ trợ PDF
            • PDF hỗ trợ định dạng base64
            • tìm kiếm trên internet
          • định dạng tương thích chat
            • Tạo cuộc trò chuyện suy nghĩ
            • Tạo cuộc trò chuyện (streaming)
            • Tạo chat (không phải stream)
            • Tạo chat nhận diện hình ảnh (streaming)
            • Tạo chat nhận dạng hình ảnh (không phải streaming)
        • Giao diện Google Gemini
          • định dạng gốc
            • Sinh tạo văn bản
            • Sinh tạo văn bản - Luồng
            • Sinh thành văn bản + Luồng tư duy
            • Tạo hình ảnh
            • Tạo hình ảnh gemini-2.5-flash-image
            • Tạo hình ảnh gemini-2.5-flash-image kiểm soát tỷ lệ khung hình
            • Tạo hình ảnh gemini-3-pro-image-preview Kiểm soát tỷ lệ khung hình + Độ sắc nét
            • Chỉnh sửa hình ảnh
            • Hiểu biết hình ảnh
            • Xuất dữ liệu được định dạng
            • gọi hàm
            • Hiểu biết tài liệu
            • URL context [định dạng gốc]
            • Thực thi mã
            • google search
            • Hiểu biết video
            • URL context
            • Hiểu biết âm thanh
            • Embeddings
            • TTS - Chuyển đổi văn bản thành giọng nói
            • Tạo nội dung gemini-3-pro-preview:generateContent
            • Imagen - Tạo hình ảnh
            • gemini-tts chuyển đổi văn bản thành giọng nói
            • nhúng văn bản
          • định dạng tương thích chat
            • Giao diện tạo hình ảnh Gemini [định dạng tương thích chat]
            • Giao diện chat [định dạng tương thích chat]
            • Giao diện trò chuyện - Suy nghĩ 1 [định dạng tương thích chat]
            • Giao diện trò chuyện - Suy nghĩ 2 [định dạng tương thích chat]
            • API nhận diện hình ảnh [định dạng tương thích chat]
            • Giao diện trò chuyện + đọc tệp [định dạng tương thích chat]
            • Nhúng văn bản [định dạng tương thích chat]
      • Trò chuyện (Responses)
        • So sánh Responses API và Chat API
        • Tạo phản hồi mô hình
        • Tạo lệnh gọi hàm
        • Tạo phản hồi mô hình (trả về theo luồng)
        • Tạo phản hồi mô hình (kiểm soát độ dài suy nghĩ)
        • Tạo tìm kiếm web
        • Tạo phản hồi mô hình gpt-5 bật chế độ suy nghĩ
        • Tạo lệnh gọi hàm Sao chép
      • Mô hình ảnh
        • README
        • Object
        • Midjourney
          • Tải lên hình ảnh
          • Gửi tác vụ Imagine
          • Truy vấn trạng thái tác vụ theo ID tác vụ
          • Truy vấn tác vụ theo danh sách ID
          • Lấy seed của hình ảnh nhiệm vụ
          • Thực thi Action
          • Gửi tác vụ Blend
          • Gửi nhiệm vụ Describe
          • Modal Gửi
        • Ideogram
          • Generate 3.0 (sinh hình từ văn bản) Generate
          • Generate 3.0(Chỉnh sửa hình ảnh)Edit
          • Generate 3.0 (Tái tạo hình ảnh) Remix
          • Generate 3.0(Tái cấu trúc hình ảnh)Reframe
          • Generate 3.0(Thay thế nền) Replace Background
          • ideogram (sinh hình từ văn bản)
          • Remix (biểu đồ hỗn hợp)
          • Upscale (phóng to độ phân giải cao)
          • Describe(Mô tả)
        • GPT Image
          • Tạo gpt-image-1
          • Chỉnh sửa gpt-image-1
          • Mask gpt-image-1
          • Tạo gpt-image-1.5
          • Chỉnh sửa gpt-image-1.5
          • Mask gpt-image-1.5
        • DALL·E 3
          • Tạo DALL·E 3
        • FLUX
          • định dạng tương thích GPT
            • Tạo Flux (định dạng OpenAI dall-e-3)
            • Trình chỉnh sửa Flux (định dạng OpenAI dall-e-3)
          • Định dạng chính thức của Replicate
            • Độ phân giải Flux
            • Hướng dẫn tích hợp
            • Tạo tác vụ black-forest-labs/flux-kontext-dev
            • Truy vấn nhiệm vụ
        • Douyin
          • doubao-seedream-3-0-t2i-250415
          • doubao-seededit-3-0-i2i-250628
          • doubao-seedream-4-0-250828-sinh-hình-từ-văn-bản
          • doubao-seedream-4-0-250828-hình-sinh-hình
          • doubao-seedream-4-0-250828-sinh hình từ nhiều hình ảnh
          • doubao-seedream-4-5-251128 Sinh hình từ văn bản (đầu vào chỉ văn bản, đầu ra hình ảnh đơn)
          • doubao-seedream-4-5-251128 Tạo hình ảnh từ hình ảnh và văn bản (đầu vào hình ảnh đơn, đầu ra hình ảnh đơn)
          • doubao-seedream-4-5-251128 Hợp nhất đa hình ảnh (đầu vào đa hình ảnh, đầu ra đơn hình ảnh)
          • doubao-seedream-4-5-251128 Đầu ra hình ảnh nhóm (Đầu ra nhiều hình ảnh)
          • doubao-seedream-4-5-251128 Tạo nhóm hình từ một hình ảnh duy nhất
          • doubao-seedream-4-5-251128 Tham khảo thêm hình ảnh tạo ra nhóm hình ảnh
        • Nền tảng Fal.ai
          • mã trạng thái
          • Lấy kết quả yêu cầu
          • /fal-ai/nano-banana Sinh hình từ văn bản
          • /fal-ai/nano-banana/edit Chỉnh sửa hình ảnh
        • Tencent AIGC
          • mã trạng thái
          • Lấy kết quả yêu cầu
          • Tạo nhiệm vụ
        • Qwen
          • qwen-image-max
          • z-image-turbo
          • qwen-image-edit-2509
      • Mô hình video
        • Veo - Tạo video
          • Định dạng video thống nhất
            • mã trạng thái
            • Tạo video
            • Tạo video, kèm hình ảnh
            • Truy vấn nhiệm vụ
            • Tạo video (tham khảo hình ảnh)
          • Định dạng video OpenAI
            • OpenAI tạo video, kèm hình ảnh
            • Truy vấn tác vụ OpenAI
            • tải video từ OpenAI
        • Luma - Tạo video
          • Định dạng API chính thức
            • mã trạng thái
            • Gửi tác vụ tạo video
            • Mở rộng video
          • Truy vấn nhiệm vụ
            • Truy vấn một nhiệm vụ
            • Lấy nhiều tác vụ cùng lúc
        • Runway - Tạo video
          • mã trạng thái
          • Gửi tác vụ tạo video
          • Truy vấn tác vụ video (miễn phí)
        • Minimax - Tạo video
          • mã trạng thái
          • Gửi tác vụ tạo video
          • Truy vấn trạng thái tác vụ video
          • Video từ hình ảnh
          • video khung đầu-cuối
        • Doubao - Tạo video
          • Ví dụ về tạo video từ văn bản
          • Video từ hình ảnh - Khung hình đầu tiên
          • seedance-lite-khung đầu và khung cuối
          • Tạo video từ hình ảnh - mã hóa base64
          • seedance-lite-hình ảnh tham khảo
          • Truy vấn một nhiệm vụ
          • Danh sách tác vụ tạo video - Mặc định
          • Truy vấn danh sách tác vụ tạo video - Tìm kiếm nhiều ID tác vụ
          • seedance-1-5-pro-khung đầu cuối
          • seedance-1-5-pro
        • Sora - Tạo video
          • Thống nhất định dạng video
            • Truy vấn nhiệm vụ
            • Tạo video, kèm hình ảnh sora-2
            • Tạo video sora-2
            • Tạo video sora-2-pro
            • Tạo video (có Character)
          • định dạng chat
            • Tạo video
            • Tạo video, kèm hình ảnh
            • Liên tục sửa đổi tạo video
          • Định dạng video chính thức của OpenAI
            • OpenAI tạo video, kèm hình ảnh
            • Tạo video bằng storyboard
            • OpenAI tạo video, kèm hình ảnh, chế độ riêng tư
            • OpenAI tạo video (có Character)
            • OpenAI chỉnh sửa video
            • tải video từ OpenAI
            • Truy vấn tác vụ OpenAI
          • Tạo vai trò
        • Grok - Tạo video
          • Định dạng video thống nhất
            • mã trạng thái
            • Tạo video
            • Truy vấn nhiệm vụ
        • AIGC - Tạo video
          • Tạo video
          • Truy vấn video
        • Tencent - Tạo video
          • mã trạng thái
          • Tạo nhiệm vụ
          • Lấy kết quả yêu cầu
      • Liên quan đến GPTs
        • Giới thiệu
        • Cuộc hội thoại GPTs
      • Âm nhạc sinh từ văn bản Suno
        • Hướng dẫn
        • tham số
        • Gửi nhiệm vụ
          • 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 viết)
          • Tạo bài hát (Phong cách ca sĩ)
          • Tạo bài hát (Tải lên bài hát để sáng tạo lại)
          • Tạo bài hát (nối ghép bài hát)
          • Tạo lời bài hát
          • Ghép nối bài hát
          • Báo cáo đã tải lên xong
          • Truy vấn trạng thái xử lý tải lên
          • Khởi tạo tệp âm thanh
          • Yêu cầu ủy quyền tải lên
          • Ví dụ tải lên S3
          • Tình huống 1: Chế độ Cảm hứng
          • Kịch bản 2: Tùy chỉnh.Lời bài hát Tên bài hát
          • Kịch bản ba: Nhạc thuần túy.Tùy chỉnh
        • giao diện truy vấn
          • Lấy nhiều tác vụ cùng lúc
          • Truy vấn một nhiệm vụ
          • Lấy wav
          • Timing: lời bài hát, dòng thời gian âm thanh
          • Lấy chi tiết kịch bản
      • Cách cấu hình Python
        • Python sử dụng chuyển đổi giọng nói thành văn bản
        • Python sử dụng chuyển đổi văn bản thành giọng nói
        • Python sử dụng Embeddings để vector hóa
        • Python gọi DALL·E
        • Demo gọi hàm OpenAI đơn giản bằng Python
        • Demo gọi OpenAI với LangChain đơn giản bằng Python
        • Cấu hình Python llama_index
        • Hội thoại cơ bản Python
        • Sử dụng Python với gpt-4o để nhận diện hình ảnh - Hình ảnh cục bộ
        • Sử dụng Python và gpt-4o để nhận diện hình ảnh
        • Sử dụng Python và Claude để nhận diện hình ảnh
        • Thư viện Python xuất dữ liệu theo luồng
        • Gọi mô hình GPT Realtime
        • Python request - demo đầu ra luồng
        • Python sử dụng gpt-image-1 để tạo và chỉnh sửa hình ảnh
        • Thư viện chính thức Python OpenAI (sử dụng AutoGPT, langchain, v.v.)
        • Hội thoại liên tục Python
      • Rerank - Mô hình Reranking
        • Rerank
      • Nền tảng Kling
        • Giao thức Callback
        • sinh video từ văn bản
          • sinh video từ văn bản
          • Truy vấn tác vụ (đơn lẻ)
        • Video từ hình ảnh
          • Video từ hình ảnh
          • Truy vấn tác vụ (đơn lẻ)
        • Omni-Video
          • Omni-Video
          • Truy vấn tác vụ (đơn lẻ)
        • Video tham khảo đa hình ảnh
          • Video tham khảo đa hình ảnh
          • Truy vấn tác vụ (đơn lẻ)
        • Chỉnh sửa video đa phương thức
          • Khởi tạo video chờ chỉnh sửa
          • Thêm vùng chọn video
          • Xóa vùng chọn video
          • Xem trước video vùng đã chọn
          • video đa phương thức
          • Truy vấn tác vụ (đơn lẻ)
        • Kéo dài video
          • Kéo dài video
          • Truy vấn tác vụ (đơn lẻ)
        • hiệu ứng video
          • hiệu ứng video
          • Truy vấn tác vụ (đơn lẻ)
        • Sinh tạo hình ảnh
          • Sinh tạo hình ảnh
          • Truy vấn tác vụ (đơn lẻ)
        • Tham khảo nhiều hình ảnh để tạo ra hình ảnh mới
          • Tham khảo nhiều hình ảnh để tạo ra hình ảnh mới
          • Truy vấn tác vụ (đơn lẻ)
        • Omni-Image
          • Omni-Image
          • Truy vấn tác vụ (đơn lẻ)
        • mở rộng hình ảnh
          • mở rộng hình ảnh
          • Truy vấn tác vụ (đơn lẻ)
        • nhận dạng hình ảnh
          • nhận dạng hình ảnh
        • nhân vật số
          • nhân vật số
          • Truy vấn tác vụ (đơn lẻ)
        • Sinh âm thanh từ văn bản
          • Sinh âm thanh từ văn bản
          • Truy vấn tác vụ (đơn lẻ)
        • Tạo âm thanh từ video
          • Tạo âm thanh từ video
          • Truy vấn tác vụ (đơn lẻ)
        • tổng hợp giọng nói
          • tổng hợp giọng nói
        • thử quần áo ảo
          • thử quần áo ảo
          • Truy vấn tác vụ (đơn lẻ)
        • khớp hình dạng miệng
          • nhận diện khuôn mặt
          • khớp hình dạng miệng
          • Truy vấn tác vụ (đơn lẻ)
        • Âm sắc tùy chỉnh
          • Âm sắc tùy chỉnh
          • Truy vấn âm sắc tùy chỉnh (đơn)
          • Truy vấn giọng nói chính thức
          • Xóa âm sắc tùy chỉnh
        • Điều khiển hành động
          • Điều khiển hành động
          • Truy vấn tác vụ (đơn lẻ)
        • chủ thể
          • chủ thể
      • Replicate nền tảng tổng hợp
        • Hướng dẫn tích hợp
        • Độ phân giải Flux
        • Truy vấn nhiệm vụ
        • Tạo tác vụ - thông qua phiên bản mô hình (predictions)
        • Tạo tác vụ stability-ai/stable-diffusion
        • Tạo tác vụ stability-ai/sdxl
        • Tạo tác vụ stability-ai/stable-diffusion-inpainting
        • Tạo tác vụ stability-ai/stable-diffusion-img2img
        • Tạo tác vụ lucataco/flux-schnell-lora
        • Tạo tác vụ lucataco/flux-dev-lora
        • Tạo tác vụ andreasjansson/stable-diffusion-animation
        • Tạo tác vụ sujaykhandekar/object-removal
        • Tạo tác vụ cjwbw/rembg
        • Tạo tác vụ lucataco/animate-diff
        • Tạo tác vụ ideogram-ai/ideogram-v2-turbo
        • Tạo tác vụ black-forest-labs/flux-kontext-dev
        • Tạo tác vụ minimax/video-01-live
        • Tạo tác vụ minimax/video-01
        • Tạo tác vụ recraft-ai/recraft-v3
        • Tạo tác vụ recraft-ai/recraft-v3-svg
        • Tạo tác vụ black-forest-labs/flux-1.1-pro-ultra
        • Tạo tác vụ black-forest-labs/flux-kontext-pro
        • Tạo tác vụ black-forest-labs/flux-kontext-max
        • Tạo tác vụ flux-kontext-apps/multi-image-kontext-max
        • Tạo tác vụ flux-kontext-apps/multi-image-kontext-pro
        • Tạo tác vụ lucataco/remove-bg
        • Tạo tác vụ riffusion/riffusion
        • Tạo tác vụ black-forest-labs/flux-fill-dev
        • Tạo tác vụ black-forest-labs/flux-fill-pro
        • Tạo tác vụ google/imagen-4-fast
        • Tạo tác vụ google/imagen-4-ultra
        • Tạo tác vụ google/imagen-4
        • Tạo tác vụ prunaai/vace-14b
        • Tạo tác vụ bytedance/seedream-4
      • Nền tảng Minimax
        • Tạo tác vụ tổng hợp giọng nói không đồng bộ V2
        • Tổng hợp giọng nói đồng bộ V2
        • Tác vụ tạo video từ văn bản
        • Tải lên âm thanh được sao chép
        • Tải lên âm thanh ví dụ
        • Video được tạo từ khung hình đầu và cuối
        • Sao chép nhanh âm sắc
        • Truy vấn trạng thái tác vụ tạo video
        • Truy xuất (dùng cho tải video, tải audio không đồng bộ)
        • Tổng hợp văn bản
        • Truy vấn trạng thái tác vụ tạo giọng nói
        • thiết kế âm sắc
      • vidu - Nền tảng tạo video, tạo hình ảnh, tạo âm thanh
        • mã trạng thái
        • Tạo tác vụ tạo video từ văn bản
        • Tạo tác vụ video từ hình ảnh
        • Tạo tác vụ tạo hình ảnh
        • Tạo tác vụ chuyển đổi văn bản thành âm thanh
        • tổng hợp giọng nói
        • Tạo tác vụ video tham chiếu
        • Tạo tác vụ video sinh từ khung đầu và khung cuối
        • Lấy kết quả yêu cầu
      • Nền tảng tổng hợp Fal-ai (Không còn dùng nữa)
        • Hướng dẫn tích hợp
        • falai-veo3 Tạo video
          • /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
        • Lấy kết quả yêu cầu
        • /fal-ai/flux-1/dev
        • /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
        • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
        • /fal-ai/qwen-image-edit-lora
      • Cách cấu hình PHP
        • Demo chỉnh sửa hình ảnh bằng PHP
      • Cách cấu hình Node.js
        • Hội thoại cơ bản Node.js
      • Hướng dẫn sử dụng các plugin/phần mềm khác nhau
      • Trung tâm trợ giúp
        • Trường được trả về từ AI: thinking_related
        • Mã trạng thái HTTP và ý nghĩa của chúng
        • API tự xây dựng lưu trữ hình ảnh
      • minimax-voice (TTS)
        • Tạo giọng nói từ Minimax
      • Hướng dẫn sử dụng các plugin/phần mềm
        • Hướng dẫn sử dụng API Key4U với Clawdbot (MobtBot)
        • Hướng dẫn sử dụng Key4U với Opencode
        • Hướng dẫn cấu hình Codex
        • 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 (Lập trình qua Terminal)
        • Hướng dẫn sử dụng LobeChat
        • Sử dụng tiện ích mở rộng ChatGPT Sidebar trên trình duyệt
        • Hướng dẫn cấu hình ChatGPT GPT Academic để tối ưu nghiên cứu học thuật
Trang chủDashboardGiá cảModel HubAPI KeysVí
Trang chủDashboardGiá cảModel HubAPI KeysVí
  1. Native format

Image Generation gemini-3-pro-image-preview Control Aspect Ratio + Clarity

POST
https://api.key4u.shop/v1beta/models/gemini-3-pro-image-preview:generateContent
Official documentation: https://ai.google.dev/gemini-api/docs/image-generation?hl=en#gemini-image-editing

Request

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

Header Params

Body Params application/json

Example
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "'Hi, This is a picture of me. Can you add a llama next to me"
        },
        {
          "inline_data": {
            "mime_type": "image/jpeg",
            "data": "iVBORw0KGgoAAAA..."
          }
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": [
      "TEXT",
      "IMAGE"
    ],
    "imageConfig": {
      "aspectRatio": "9:16",
      "imageSize":"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 -g --request POST 'https://api.key4u.shop/v1beta/models/gemini-3-pro-image-preview:generateContent?key={{YOUR_API_KEY}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "'\''Hi, This is a picture of me. Can you add a llama next to me"
        },
        {
          "inline_data": {
            "mime_type": "image/jpeg",
            "data": "iVBORw0KGgoAAAA..."
          }
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": [
      "TEXT",
      "IMAGE"
    ],
    "imageConfig": {
      "aspectRatio": "9:16",
      "imageSize":"1K"
    }
  }
}'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2026-03-08 05:42:12
Previous
Image Generation gemini-2.5-flash-image Control Aspect Ratio
Next
Image Editing
Built with